##// END OF EJS Templates
follow Python conventions for boolean values...
follow Python conventions for boolean values True and False might be singletons and the "default" values for "boolean" expressions, but "all" values in Python has a boolean value and should be evaluated as such. Checking with 'is True' and 'is False' is thus confusing, error prone and unnessarily complex. If we anywhere rely and nullable boolean fields from the database layer and don't want the null value to be treated as False then we should check explicitly for null with 'is None'.

File last commit:

r3582:1f334a68 beta
r3625:260a7a01 beta
Show More
password_reset.html
43 lines | 1.3 KiB | text/html | HtmlLexer
## -*- coding: utf-8 -*-
<%inherit file="base/root.html"/>
<%def name="title()">
${_('Password Reset')} &middot; ${c.rhodecode_name}
</%def>
<div id="register">
<div class="title top-left-rounded-corner top-right-rounded-corner">
<h5>${_('Reset your password to')} ${c.rhodecode_name}</h5>
</div>
<div class="inner">
${h.form(url('password_reset'))}
<div class="form">
<!-- fields -->
<div class="fields">
<div class="field">
<div class="label">
<label for="email">${_('Email address')}:</label>
</div>
<div class="input">
${h.text('email')}
</div>
</div>
<div class="buttons">
<div class="nohighlight">
${h.submit('send',_('Reset my password'),class_="ui-btn large")}
<div class="activation_msg">${_('Password reset link will be send to matching email address')}</div>
</div>
</div>
</div>
</div>
${h.end_form()}
<script type="text/javascript">
YUE.onDOMReady(function(){
YUD.get('email').focus();
})
</script>
</div>
</div>