Files @ 880fe0697cd2
Branch filter:

Location: kallithea/kallithea/templates/admin/settings/settings_global.html

mads
style: introduce radio-inline / checkbox-inline for status votes - preparing for Bootstrap but so far not used

Based on work by Dominik Ruf.
${h.form(url('admin_settings_global'), method='post')}
    <div class="form">

        <div class="form-horizontal">

             <div class="form-group">
                <label class="control-label" for="title">${_('Site branding')}:</label>
                <div class="input">
                    ${h.text('title',size=30)}
                    <span class="help-block">${_('Set a custom title for your Kallithea Service.')}</span>
                </div>
             </div>

            <div class="form-group">
                <label class="control-label" for="realm">${_('HTTP authentication realm')}:</label>
                <div class="input">
                    ${h.text('realm',size=30)}
                </div>
            </div>

            <div class="form-group">
                <label class="control-label" for="ga_code">${_('HTML/JavaScript/CSS customization block')}:</label>
                <div class="input">
                    ${h.textarea('ga_code', cols=80, rows=10)}
                    <span class="help-block">${_('HTML (possibly with \
                        JavaScript and/or CSS) that will be added to the bottom \
                        of every page. This can be used for web analytics \
                        systems like Google Analytics or Piwik, but also to \
                        perform instance-specific customizations like adding a \
                        project banner at the top of every page.')}</span>
                </div>
            </div>

            <div class="form-group">
                <label class="control-label" for="captcha_public_key">${_('ReCaptcha public key')}:</label>
                <div class="input">
                    ${h.text('captcha_public_key',size=60)}
                    <span class="help-block">${_('Public key for reCaptcha system.')}</span>
                </div>
            </div>

            <div class="form-group">
                <label class="control-label" for="captcha_private_key">${_('ReCaptcha private key')}:</label>
                <div class="input">
                    ${h.text('captcha_private_key',size=60)}
                    <span class="help-block">${_('Private key for reCaptcha system. Setting this value will enable captcha on registration.')}</span>
                </div>
            </div>

            <div class="form-group">
                <div class="buttons">
                    ${h.submit('save',_('Save Settings'),class_="btn btn-default")}
                    ${h.reset('reset',_('Reset'),class_="btn btn-default")}
                </div>
           </div>
        </div>
    </div>
${h.end_form()}