better layout, thanks Paolo

This commit is contained in:
mdipierro
2012-09-17 11:36:00 -05:00
parent db2ef362af
commit 6880727e4f
7 changed files with 439 additions and 295 deletions
+2 -2
View File
@@ -4,10 +4,10 @@
{{
if request.args(0)=='login':
if not 'register' in auth.settings.actions_disabled:
form.add_button(T('Register'),URL(args='register'))
form.add_button(T('Register'),URL(args='register'),_class='btn')
pass
if not 'request_reset_password' in auth.settings.actions_disabled:
form.add_button(T('Lost Password'),URL(args='request_reset_password'))
form.add_button(T('Lost Password'),URL(args='request_reset_password'),_class='btn')
pass
pass
=form
+2 -2
View File
@@ -40,9 +40,9 @@
<!-- include stylesheets -->
{{
response.files.append(URL('static','css/web2py.css'))
response.files.append(URL('static','css/bootstrap.min.css'))
response.files.append(URL('static','css/bootstrap-responsive.min.css'))
response.files.append(URL('static','css/web2py.css'))
response.files.append(URL('static','css/web2py_bootstrap.css'))
}}
@@ -166,7 +166,7 @@
}
jQuery('ul.nav li.dropdown a').click(function(){window.location=jQuery(this).attr('href');});
// make all buttons bootstrap buttons
jQuery('button, form input[type="submit"], form input[type="button"]').addClass('btn').css({'margin-right':'2px','margin-bottom':'2px'});
jQuery('button, form input[type="submit"], form input[type="button"]').addClass('btn');
});
</script>
<script src="{{=URL('static','js/bootstrap.min.js')}}"></script>