Files @ dd42c2ad28d7
Branch filter:

Location: kallithea/kallithea/templates/password_reset.html

Mads Kiilerich
style: drop 'input' class inside 'form-group'

As long as we use the old styling, just apply styling to div inside form-group.

Based on work by Dominik Ruf.
## -*- coding: utf-8 -*-
<%inherit file="base/root.html"/>

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

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

                <div class="form-group">
                    <label class="control-label" for="email">${_('Email Address')}:</label>
                    <div>
                        ${h.text('email')}
                    </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>