welcome improvements

This commit is contained in:
mdipierro committed 2018-05-01 16:08:40 -05:00
1 parent fda67e1be5
commit 4ed36cfb1f
4 files changed
+38 -36

No files matched your search

+6
View File
@@ -9,6 +9,9 @@
}); });
//--></script> //--></script>
<div class="row">
<div class="col-md-12">
{{if request.function=='index':}} {{if request.function=='index':}}
<h2>{{=T("Available Databases and Tables")}}</h2> <h2>{{=T("Available Databases and Tables")}}</h2>
{{if not databases:}}{{=T("No databases in this application")}}{{pass}} {{if not databases:}}{{=T("No databases in this application")}}{{pass}}
@@ -271,3 +274,6 @@
{{pass}} {{pass}}
</div> </div>
{{pass}} {{pass}}
</div>
</div>
+15 -11
View File
@@ -8,10 +8,12 @@
</div> </div>
{{end}} {{end}}
{{if 'message' in globals():}} <div class="row">
<h2>{{=message}}</h2> <div class="col-md-12">
<p class="lead">{{=T('How did you get here?')}}</p> {{if 'message' in globals():}}
<ol style="word-wrap:break-word;"> <h2>{{=message}}</h2>
<p class="lead">{{=T('How did you get here?')}}</p>
<ol style="word-wrap:break-word;">
<li>{{=T('You are successfully running web2py')}}</li> <li>{{=T('You are successfully running web2py')}}</li>
<li>{{=XML(T('You visited the url %s', A(request.env.path_info,_href=request.env.path_info)))}}</li> <li>{{=XML(T('You visited the url %s', A(request.env.path_info,_href=request.env.path_info)))}}</li>
<li>{{=XML(T('Which called the function %s located in the file %s', <li>{{=XML(T('Which called the function %s located in the file %s',
@@ -22,8 +24,8 @@
A('web2py/applications/%(application)s/views/%(controller)s/index.html' % request, A('web2py/applications/%(application)s/views/%(controller)s/index.html' % request,
_href=URL('admin','default','peek',args=(request.application,'views',request.controller,'index.html')))))}}</li> _href=URL('admin','default','peek',args=(request.application,'views',request.controller,'index.html')))))}}</li>
<li>{{=T('You can modify this application and adapt it to your needs')}}</li> <li>{{=T('You can modify this application and adapt it to your needs')}}</li>
</ol> </ol>
<div class="jumbotron jumbotron-fluid" style="padding:30px;word-wrap:break-word;"> <div class="jumbotron jumbotron-fluid" style="padding:30px;word-wrap:break-word;">
<div class="container center"> <div class="container center">
<a class="btn btn-primary" href="{{=URL('admin','default','index')}}"> <a class="btn btn-primary" href="{{=URL('admin','default','index')}}">
<i class="fa fa-cog"></i> <i class="fa fa-cog"></i>
@@ -36,12 +38,14 @@
<a class="btn btn-secondary" href="{{=URL('default','grid/auth_user')}}">{{=T('Grid Example')}}</a> <a class="btn btn-secondary" href="{{=URL('default','grid/auth_user')}}">{{=T('Grid Example')}}</a>
<a class="btn btn-secondary" href="{{=URL('default','wiki')}}">{{=T('Wiki Example')}}</a> <a class="btn btn-secondary" href="{{=URL('default','wiki')}}">{{=T('Wiki Example')}}</a>
</div> </div>
</div>
{{elif 'content' in globals():}}
{{=content}}
{{else:}}
{{=BEAUTIFY(response._vars)}}
{{pass}}
</div>
</div> </div>
{{elif 'content' in globals():}}
{{=content}}
{{else:}}
{{=BEAUTIFY(response._vars)}}
{{pass}}
+17 -19
View File
@@ -1,28 +1,26 @@
{{extend 'layout.html'}} {{extend 'layout.html'}}
<h2> <div class="row">
{{=T('Sign Up') if request.args(0) == 'register' else T('Log In') if request.args(0) == 'login' else T(request.args(0).replace('_',' ').title())}} <div id="web2py_user_form" class="col-lg-6" style="background-color:white; margin: 0 auto 0 auto; box-shadow: 0 0 5px #a1a1a1; border-radius:5px;padding: 20px">
</h2> <h2>
{{=T('Sign Up') if request.args(0) == 'register' else T('Log In') if request.args(0) == 'login' else T(request.args(0).replace('_',' ').title())}}
<div class="container"> </h2>
<div class="row"> {{=form}}
<div id="web2py_user_form" class="col-lg-6"> {{if request.args(0)=='login' and not 'register' in auth.settings.actions_disabled:}}
{{ <a href="{{=URL('user/register')}}">Register</a>
if request.args(0)=='login': <br/>
if not 'register' in auth.settings.actions_disabled: {{pass}}
form.add_button(T('Sign Up'),URL(args='register', vars={'_next': request.vars._next} if request.vars._next else None),_class='btn btn-default btn-secondary') {{if request.args(0)=='login' and not 'request_reset_password' in auth.settings.actions_disabled:}}
pass <a href="{{=URL('user/request_reset_password')}}">Lost your password?</a>
if not 'request_reset_password' in auth.settings.actions_disabled: {{pass}}
form.add_button(T('Lost Password'),URL(args='request_reset_password'),_class='btn btn-default btn-secondary') {{if request.args(0)=='register':}}
pass <a href="{{=URL('user/login')}}">Login</a>
pass {{pass}}
=form
}}
</div>
</div> </div>
</div> </div>
{{block page_js}} {{block page_js}}
<script> <script>
jQuery("#web2py_user_form input:visible:enabled:first").focus(); jQuery("#web2py_user_form input:visible:enabled:first").focus();
-6
View File
@@ -97,15 +97,9 @@
<!-- Main ========================================= --> <!-- Main ========================================= -->
<!-- Begin page content --> <!-- Begin page content -->
<div class="container-fluid main-container"> <div class="container-fluid main-container">
<div class="row">
<div class="col-md-12">
{{block center}}
{{include}} {{include}}
{{end}}
{{=response.toolbar() if response.show_toolbar else ''}} {{=response.toolbar() if response.show_toolbar else ''}}
</div> </div>
</div>
</div>
{{block footer}} <!-- this is default footer --> {{block footer}} <!-- this is default footer -->
<footer class="footer container-fluid"> <footer class="footer container-fluid">