Files @ 556e98fd06d2
Branch filter:

Location: kallithea/kallithea/templates/register.html

Thomas De Schampheleire
pullrequests on different repos: default to same destination/source branch

When a pull request is initiated between two different repositories, instead
of using the current tip as destination branch, use the same branch as on
the source repository.
## -*- coding: utf-8 -*-
<%inherit file="base/root.html"/>

<%block name="title">
    ${_('Sign Up')}
    %if c.site_name:
        &middot; ${c.site_name}
    %endif
</%block>

<div id="register">
    <%include file="/base/flash_msg.html"/>
    <div class="title withlogo">
        %if c.site_name:
            <h5>${_('Sign Up to %s') % c.site_name}</h5>
        %else:
            <h5>${_('Sign Up')}</h5>
        %endif
    </div>
    <div class="inner">
        ${h.form(url('register'))}
        <div class="form">
            <!-- fields -->
            <div class="fields">
                <div class="field">
                    <div class="label">
                        <label for="username">${_('Username')}:</label>
                    </div>
                    <div class="input">
                        ${h.text('username',class_="medium")}
                    </div>
                </div>

                <div class="field">
                    <div class="label">
                        <label for="password">${_('Password')}:</label>
                    </div>
                    <div class="input">
                        ${h.password('password',class_="medium",autocomplete="off")}
                    </div>
                </div>

                <div class="field">
                    <div class="label">
                        <label for="password">${_('Re-enter password')}:</label>
                    </div>
                    <div class="input">
                        ${h.password('password_confirmation',class_="medium",autocomplete="off")}
                    </div>
                </div>

                <div class="field">
                    <div class="label">
                        <label for="firstname">${_('First Name')}:</label>
                    </div>
                    <div class="input">
                        ${h.text('firstname',class_="medium")}
                    </div>
                </div>

                <div class="field">
                    <div class="label">
                        <label for="lastname">${_('Last Name')}:</label>
                    </div>
                    <div class="input">
                        ${h.text('lastname',class_="medium")}
                    </div>
                </div>

                <div class="field">
                    <div class="label">
                        <label for="email">${_('Email')}:</label>
                    </div>
                    <div class="input">
                        ${h.text('email',class_="medium")}
                    </div>
                </div>

                %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

                <div class="buttons">
                    <div class="nohighlight">
                      ${h.submit('sign_up',_('Sign Up'),class_="btn")}
                      %if c.auto_active:
                          <div class="activation_msg">${_('Registered accounts are ready to use and need no further action.')}</div>
                      %else:
                          <div class="activation_msg">${_('Please wait for an administrator to activate your account.')}</div>
                      %endif
                    </div>
                </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(){
            $('#username').focus();

            %if c.captcha_active:
            Recaptcha.create("${c.captcha_public_key}", "recaptcha",
                {
                  theme: "white"
                }
            );
            %endif
        });
        </script>
    </div>
 </div>