password_reset.html
86 lines
| 2.7 KiB
| text/html
|
HtmlLexer
r547 | ## -*- coding: utf-8 -*- | |||
r1157 | <%inherit file="base/root.html"/> | |||
<%def name="title()"> | ||||
Bradley M. Kuhn
|
r4116 | ${_('Password Reset')} | ||
%if c.rhodecode_name: | ||||
· ${c.rhodecode_name} | ||||
%endif | ||||
r1157 | </%def> | |||
r547 | ||||
Bradley M. Kuhn
|
r4116 | |||
<div id="header"> | ||||
<div id="header-inner" class="title"> | ||||
<div id="logo"> | ||||
<div class="header"> | ||||
<a href="${h.url('home')}"><img src="/images/rhodecode-logo-white-216x60.png" alt="RhodeCode"/></a> | ||||
</div> | ||||
%if c.rhodecode_name: | ||||
<div class="branding">- ${c.rhodecode_name}</div> | ||||
%endif | ||||
</div> | ||||
</div> | ||||
</div> | ||||
r1157 | <div id="register"> | |||
Bradley M. Kuhn
|
r4116 | <%include file="/base/flash_msg.html"/> | ||
<div class="title withlogo"> | ||||
%if c.rhodecode_name: | ||||
<h5>${_('Reset your Password to %s') % c.rhodecode_name}</h5> | ||||
%else: | ||||
<h5>${_('Reset your Password')}</h5> | ||||
%endif | ||||
Mads Kiilerich
|
r3197 | </div> | ||
<div class="inner"> | ||||
${h.form(url('password_reset'))} | ||||
<div class="form"> | ||||
<!-- fields --> | ||||
<div class="fields"> | ||||
r1888 | ||||
Mads Kiilerich
|
r3197 | <div class="field"> | ||
<div class="label"> | ||||
Bradley M. Kuhn
|
r4116 | <label for="email">${_('Email Address')}:</label> | ||
Mads Kiilerich
|
r3197 | </div> | ||
<div class="input"> | ||||
${h.text('email')} | ||||
</div> | ||||
</div> | ||||
r1888 | ||||
Bradley M. Kuhn
|
r4116 | %if c.captcha_active: | ||
<div class="field"> | ||||
<div class="label"> | ||||
<label for="email">${_('Captcha')}:</label> | ||||
</div> | ||||
<div class="input"> | ||||
${h.hidden('recaptcha_field')} | ||||
<div id="recaptcha"></div> | ||||
</div> | ||||
</div> | ||||
%endif | ||||
Mads Kiilerich
|
r3197 | <div class="buttons"> | ||
<div class="nohighlight"> | ||||
Bradley M. Kuhn
|
r4116 | ${h.submit('send',_('Send password reset email'),class_="btn")} | ||
Mads Kiilerich
|
r3197 | <div class="activation_msg">${_('Password reset link will be send to matching email address')}</div> | ||
</div> | ||||
</div> | ||||
</div> | ||||
</div> | ||||
${h.end_form()} | ||||
Bradley M. Kuhn
|
r4116 | %if c.captcha_active: | ||
<script type="text/javascript" src="https://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script> | ||||
%endif | ||||
r1202 | <script type="text/javascript"> | |||
Bradley M. Kuhn
|
r4116 | $(document).ready(function(){ | ||
$('#email').focus(); | ||||
%if c.captcha_active: | ||||
Recaptcha.create("${c.captcha_public_key}", "recaptcha", | ||||
{ | ||||
theme: "white", | ||||
} | ||||
); | ||||
%endif | ||||
}); | ||||
r1888 | </script> | |||
Mads Kiilerich
|
r3197 | </div> | ||
r1157 | </div> | |||