reverted some bs3 changes

This commit is contained in:
mdipierro
2014-03-03 08:13:37 -06:00
parent 666a389718
commit ae0749d6b8
3 changed files with 39 additions and 54 deletions
+2 -2
View File
@@ -75,8 +75,8 @@
* this over and over... all will be bound to the document * this over and over... all will be bound to the document
*/ */
/*adds btn class to buttons*/ /*adds btn class to buttons*/
$('button', target).addClass('btn').addClass('btn-default'); $('button', target).addClass('btn');
$('form input[type="submit"], form input[type="button"]', target).addClass('btn').addClass('btn-default'); $('form input[type="submit"], form input[type="button"]', target).addClass('btn');
/* javascript for PasswordWidget*/ /* javascript for PasswordWidget*/
$('input[type=password][data-w2p_entropy]', target).each(function () { $('input[type=password][data-w2p_entropy]', target).each(function () {
web2py.validate_entropy($(this)); web2py.validate_entropy($(this));
+2 -2
View File
@@ -75,8 +75,8 @@
* this over and over... all will be bound to the document * this over and over... all will be bound to the document
*/ */
/*adds btn class to buttons*/ /*adds btn class to buttons*/
$('button', target).addClass('btn').addClass('btn-default'); $('button', target).addClass('btn');
$('form input[type="submit"], form input[type="button"]', target).addClass('btn').addClass('btn-default'); $('form input[type="submit"], form input[type="button"]', target).addClass('btn');
/* javascript for PasswordWidget*/ /* javascript for PasswordWidget*/
$('input[type=password][data-w2p_entropy]', target).each(function () { $('input[type=password][data-w2p_entropy]', target).each(function () {
web2py.validate_entropy($(this)); web2py.validate_entropy($(this));
+35 -50
View File
@@ -1,50 +1,35 @@
{{left_sidebar_enabled,right_sidebar_enabled=False,('message' in globals())}} {{left_sidebar_enabled,right_sidebar_enabled=False,('message' in globals())}}
{{extend 'layout.html'}} {{extend 'layout.html'}}
{{block head}} {{if 'message' in globals():}}
<style> <h3>{{=message}}</h3>
#w2padmin-btn {margin:30px 0 30px 0;}
</style> <h4>{{=T('How did you get here?')}}</h4>
{{end head}} <ol>
<li>{{=T('You are successfully running web2py')}}</li>
{{if 'message' in globals():}} <li>{{=XML(T('You visited the url %s', A(request.env.path_info,_href=request.env.path_info)))}}</li>
<h2>{{=message}}</h2> <li>{{=XML(T('Which called the function %s located in the file %s',
<p class="lead">{{=T('How did you get here?')}}</p> (A(request.function+'()',_href='#'),
<ol> A('web2py/applications/%(application)s/controllers/%(controller)s.py'%request,
<li>{{=T('You are successfully running web2py')}}</li> _href=URL('admin','default','peek', args=(request.application,'controllers',request.controller+'.py'))))))}}</li>
<li>{{=XML(T('You visited the url %s', A(request.env.path_info,_href=request.env.path_info)))}}</li> <li>{{=XML(T('The output of the file is a dictionary that was rendered by the view %s',
<li>{{=XML(T('Which called the function %s located in the file %s', A('web2py/applications/%(application)s/views/%(controller)s/index.html'%request,
(A(request.function+'()',_href='#'), _href=URL('admin','default','peek',args=(request.application,'views',request.controller,'index.html')))))}}</li>
A('web2py/applications/%(application)s/controllers/%(controller)s.py'%request, <li>{{=T('You can modify this application and adapt it to your needs')}}</li>
_href=URL('admin','default','peek', args=(request.application,'controllers',request.controller+'.py'))))))}}</li> </ol>
<li>{{=XML(T('The output of the file is a dictionary that was rendered by the view %s', {{elif 'content' in globals():}}
A('web2py/applications/%(application)s/views/%(controller)s/index.html'%request, {{=content}}
_href=URL('admin','default','peek',args=(request.application,'views',request.controller,'index.html')))))}}</li> {{else:}}
<li>{{=T('You can modify this application and adapt it to your needs')}}</li> {{=BEAUTIFY(response._vars)}}
</ol> {{pass}}
{{elif 'content' in globals():}}
{{=content}} {{block right_sidebar}}
{{else:}} {{=A(T("Administrative Interface"), _href=URL('admin','default','index'), _class='btn',
{{=BEAUTIFY(response._vars)}} _style='margin-top: 1em;')}}
{{pass}} <h6>{{=T("Don't know what to do?")}}</h6>
<ul>
{{block right_sidebar}} <li>{{=A(T("Online examples"), _href=URL('examples','default','index'))}}</li>
<button id="w2padmin-btn" class="btn btn-primary btn-lg btn-block"> <li><a href="http://web2py.com">web2py.com</a></li>
<i class="glyphicon glyphicon-cog"></i> {{=T("Administrative Interface")}}</button> <li><a href="http://web2py.com/book">{{=T('Documentation')}}</a></li>
<div class="panel panel-info"> </ul>
<div class="panel-heading">{{=T("Don't know what to do?")}}</div> {{end}}
<ul class="list-group">
<li class="list-group-item">{{=A(T("Online examples"), _href=URL('examples','default','index'))}}</li>
<li class="list-group-item"><a href="http://web2py.com">web2py.com</a></li>
<li class="list-group-item"><a href="http://web2py.com/book">{{=T('Documentation')}}</a></li>
</ul>
</div>
{{end}}
{{block page_js}}
<script>
$('#w2padmin-btn').click(function() {
window.location = "{{=URL('admin','default','index')}}";
});
</script>
{{end}}