view kallithea/templates/password_reset.html @ 6422:1f02a239c23c

style: use panel, panel-heading, panel-title, panel-body and settings This imply lots of tweaking of header handling and panel spacing. Not converted yet: codeblock code-header code-body. Based on work by Dominik Ruf.
author Mads Kiilerich <mads@kiilerich.com>
date Mon, 09 Jan 2017 00:41:30 +0100
parents ba18d1f6d081
children 33b71a130b16
line wrap: on
line source

## -*- coding: utf-8 -*-
<%inherit file="base/root.html"/>

<%block name="title">
    ${_('Password Reset')}
</%block>

<%include file="/base/flash_msg.html"/>
<div id="register" class="panel panel-primary">
    <div class="panel-heading">
        %if c.site_name:
            <h5>${_('Reset Your Password to %s') % c.site_name}</h5>
        %else:
            <h5>${_('Reset Your Password')}</h5>
        %endif
    </div>
    <div class="panel-body">
        ${h.form(url('password_reset'))}
        <div class="form">
            <div class="form-horizontal">

                <div class="form-group">
                    <label class="control-label" for="email">${_('Email Address')}:</label>
                    <div>
                        ${h.text('email', class_='form-control')}
                    </div>
                </div>

                %if c.captcha_active:
                <div class="form-group">
                    <label class="control-label" for="recaptcha_field">${_('Captcha')}:</label>
                    <div>
                        ${h.hidden('recaptcha_field')}
                        <div id="recaptcha"></div>
                    </div>
                </div>
                %endif

                <div class="buttons">
                    <div class="nohighlight">
                      ${h.submit('send',_('Send Password Reset Email'),class_="btn btn-default")}
                    </div>
                </div>

                <div class="alert alert-info">
                    ${_('A password reset link will be sent to the specified email address if it is registered in the system.')}
                </div>
            </div>
        </div>
        ${h.end_form()}
        %if c.captcha_active:
        <script type="text/javascript" src="https://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script>
        %endif
        <script type="text/javascript">
         $(document).ready(function(){
            $('#email').focus();
            %if c.captcha_active:
            Recaptcha.create("${c.captcha_public_key}", "recaptcha",
                {
                  theme: "white"
                }
            );
            %endif
         });
        </script>
    </div>
</div>