Files @ 1cd6e633bab8
Branch filter:

Location: kallithea/kallithea/templates/password_reset.html

domruf
less: simplify positioning of the +/- symbols on diff lines

As before, we place the +/- symbols in the pre:before so they default to the
same font and styling as the line content.

Instead of giving the pre a wide left margin and put the :before out there
using negative positing and visible overflow, just give the :before a fixed
width on all lines.

This change has been modified by Mads Kiilerich.
## -*- 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-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="form-group">
                    <div class="buttons">
                        ${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>
        ${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(${h.js(c.captcha_public_key)}, "recaptcha",
                {
                  theme: "white"
                }
            );
            %endif
         });
        </script>
    </div>
</div>