welcome improvements
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -8,40 +8,44 @@
|
|||||||
</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>
|
||||||
<li>{{=T('You are successfully running web2py')}}</li>
|
<p class="lead">{{=T('How did you get here?')}}</p>
|
||||||
<li>{{=XML(T('You visited the url %s', A(request.env.path_info,_href=request.env.path_info)))}}</li>
|
<ol style="word-wrap:break-word;">
|
||||||
<li>{{=XML(T('Which called the function %s located in the file %s',
|
<li>{{=T('You are successfully running web2py')}}</li>
|
||||||
(A(request.function+'()',_href='#'),
|
<li>{{=XML(T('You visited the url %s', A(request.env.path_info,_href=request.env.path_info)))}}</li>
|
||||||
A('web2py/applications/%(application)s/controllers/%(controller)s.py' % request,
|
<li>{{=XML(T('Which called the function %s located in the file %s',
|
||||||
_href=URL('admin','default','peek', args=(request.application,'controllers',request.controller+'.py'))))))}}</li>
|
(A(request.function+'()',_href='#'),
|
||||||
<li>{{=XML(T('The output of the file is a dictionary that was rendered by the view %s',
|
A('web2py/applications/%(application)s/controllers/%(controller)s.py' % request,
|
||||||
A('web2py/applications/%(application)s/views/%(controller)s/index.html' % request,
|
_href=URL('admin','default','peek', args=(request.application,'controllers',request.controller+'.py'))))))}}</li>
|
||||||
_href=URL('admin','default','peek',args=(request.application,'views',request.controller,'index.html')))))}}</li>
|
<li>{{=XML(T('The output of the file is a dictionary that was rendered by the view %s',
|
||||||
<li>{{=T('You can modify this application and adapt it to your needs')}}</li>
|
A('web2py/applications/%(application)s/views/%(controller)s/index.html' % request,
|
||||||
</ol>
|
_href=URL('admin','default','peek',args=(request.application,'views',request.controller,'index.html')))))}}</li>
|
||||||
<div class="jumbotron jumbotron-fluid" style="padding:30px;word-wrap:break-word;">
|
<li>{{=T('You can modify this application and adapt it to your needs')}}</li>
|
||||||
<div class="container center">
|
</ol>
|
||||||
<a class="btn btn-primary" href="{{=URL('admin','default','index')}}">
|
<div class="jumbotron jumbotron-fluid" style="padding:30px;word-wrap:break-word;">
|
||||||
<i class="fa fa-cog"></i>
|
<div class="container center">
|
||||||
{{=T("admin")}}
|
<a class="btn btn-primary" href="{{=URL('admin','default','index')}}">
|
||||||
</a>
|
<i class="fa fa-cog"></i>
|
||||||
<a class="btn btn-secondary" href="{{=URL('examples','default','index')}}">{{=T("Online examples")}}</a>
|
{{=T("admin")}}
|
||||||
<a class="btn btn-secondary" href="http://web2py.com">web2py.com</a>
|
</a>
|
||||||
<a class="btn btn-secondary" href="http://web2py.com/book">{{=T('Documentation')}}</a>
|
<a class="btn btn-secondary" href="{{=URL('examples','default','index')}}">{{=T("Online examples")}}</a>
|
||||||
<a class="btn btn-secondary" href="{{=URL('default','api_get_user_email')}}">{{=T('API Example')}}</a>
|
<a class="btn btn-secondary" href="http://web2py.com">web2py.com</a>
|
||||||
<a class="btn btn-secondary" href="{{=URL('default','grid/auth_user')}}">{{=T('Grid Example')}}</a>
|
<a class="btn btn-secondary" href="http://web2py.com/book">{{=T('Documentation')}}</a>
|
||||||
<a class="btn btn-secondary" href="{{=URL('default','wiki')}}">{{=T('Wiki Example')}}</a>
|
<a class="btn btn-secondary" href="{{=URL('default','api_get_user_email')}}">{{=T('API 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>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{elif 'content' in globals():}}
|
||||||
|
{{=content}}
|
||||||
|
{{else:}}
|
||||||
|
{{=BEAUTIFY(response._vars)}}
|
||||||
|
{{pass}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{elif 'content' in globals():}}
|
|
||||||
{{=content}}
|
|
||||||
{{else:}}
|
|
||||||
{{=BEAUTIFY(response._vars)}}
|
|
||||||
{{pass}}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
@@ -97,14 +97,8 @@
|
|||||||
<!-- Main ========================================= -->
|
<!-- Main ========================================= -->
|
||||||
<!-- Begin page content -->
|
<!-- Begin page content -->
|
||||||
<div class="container-fluid main-container">
|
<div class="container-fluid main-container">
|
||||||
<div class="row">
|
{{include}}
|
||||||
<div class="col-md-12">
|
{{=response.toolbar() if response.show_toolbar else ''}}
|
||||||
{{block center}}
|
|
||||||
{{include}}
|
|
||||||
{{end}}
|
|
||||||
{{=response.toolbar() if response.show_toolbar else ''}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{block footer}} <!-- this is default footer -->
|
{{block footer}} <!-- this is default footer -->
|
||||||
|
|||||||
Reference in New Issue
Block a user