form.add_button(value,link)
This commit is contained in:
@@ -1,17 +1,13 @@
|
||||
{{extend 'layout.html'}}
|
||||
<h2>{{=T( request.args(0).replace('_',' ').capitalize() )}}</h2>
|
||||
<div id="web2py_user_form">
|
||||
{{=form}}
|
||||
{{if request.args(0)=='login':}}
|
||||
{{if not 'register' in auth.settings.actions_disabled:}}
|
||||
<br/>
|
||||
<a href="{{=URL(args='register')}}">{{=T('Register')}}</a>
|
||||
{{pass}}
|
||||
{{if not 'request_reset_password' in auth.settings.actions_disabled:}}
|
||||
<br/>
|
||||
<a href="{{=URL(args='request_reset_password')}}">{{=T('Lost Password')}}</a>
|
||||
{{pass}}
|
||||
{{pass}}
|
||||
{{if request.args(0)=='login':}}
|
||||
{{if not 'register' in auth.settings.actions_disabled:}}
|
||||
{{form.add_button(T('Register'),URL(args='register'))}}
|
||||
{{pass}}
|
||||
{{form.add_button(T('Lost Password'),URL(args='request_reset_password'))}}
|
||||
{{pass}}
|
||||
{{=form}}
|
||||
</div>
|
||||
<script language="javascript"><!--
|
||||
jQuery("#web2py_user_form input:visible:enabled:first").focus();
|
||||
|
||||
Reference in New Issue
Block a user