| Revision 593,
1.2 KB
checked in by jdalbey, 6 years ago
(diff) |
|
Add branch LCSv1
|
| Line | |
|---|
| 1 | {{extend 'layout.html'}} |
|---|
| 2 | |
|---|
| 3 | <div class="row"> |
|---|
| 4 | <div id="web2py_user_form" class="col-lg-6" style="background-color:white; margin: 0 auto 5px auto; box-shadow: 0 0 5px #a1a1a1; border-radius:5px;padding: 20px"> |
|---|
| 5 | <h2> |
|---|
| 6 | {{=T('Sign Up') if request.args(0) == 'register' else T('Log In') if request.args(0) == 'login' else T(request.args(0).replace('_',' ').title())}} |
|---|
| 7 | </h2> |
|---|
| 8 | {{=form}} |
|---|
| 9 | {{if request.args(0)=='login' and not 'register' in auth.settings.actions_disabled:}} |
|---|
| 10 | <a href="{{=URL('user/register')}}">{{=T('Register')}}</a> |
|---|
| 11 | <br/> |
|---|
| 12 | {{pass}} |
|---|
| 13 | {{if request.args(0)=='login' and not 'retrieve_password' in auth.settings.actions_disabled:}} |
|---|
| 14 | <a href="{{=URL('user/retrieve_password')}}">{{=T('Lost your password?')}}</a> |
|---|
| 15 | {{pass}} |
|---|
| 16 | {{if request.args(0)=='register':}} |
|---|
| 17 | <a href="{{=URL('user/login')}}">{{=T('Login')}}</a> |
|---|
| 18 | {{pass}} |
|---|
| 19 | </div> |
|---|
| 20 | </div> |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | |
|---|
| 24 | {{block page_js}} |
|---|
| 25 | <script> |
|---|
| 26 | jQuery("#web2py_user_form input:visible:enabled:first").focus(); |
|---|
| 27 | {{if request.args(0)=='register':}} |
|---|
| 28 | web2py_validate_entropy(jQuery('#auth_user_password'),100); |
|---|
| 29 | {{elif request.args(0)=='change_password':}} |
|---|
| 30 | web2py_validate_entropy(jQuery('#no_table_new_password'),100); |
|---|
| 31 | {{pass}} |
|---|
| 32 | </script> |
|---|
| 33 | {{end page_js}} |
|---|
Note: See
TracBrowser
for help on using the repository browser.