<commit_before>{% set pagetitle = 'Enter your username and password'|trans %}

{% extends "@core/base.twig" %}

{% block content %}
    {% if errorcode -%}
    <div class="pure-g">
        <div class="pure-u-1">
            <div class="message-box error">

                {% set errtitles = errorcodes['title'] %}
                {% set errtitle = errtitles[errorcode] %}

                <h3>{{ errtitle|trans(errorparams) }}</h3>

                {% set errdescs = errorcodes['descr'] %}
                {% set errdesc = errdescs[errorcode] %}

                <p>{{ errdesc|trans(errorparams) }}</p>

            </div>
        </div>
    </div>
    {%- endif %}

    <h1>{{ 'Enter your username and password'|trans }}</h1>

    <p>{{ 'A service has requested you to authenticate yourself. Please enter your username and password in the form below.'|trans }}</p>
    <br>
    <div class="center">
        <form class="pure-form pure-form-aligned center-form" action="?" method="post" name="f">
            <div class="form-align">

                <div class="show-for-medium v-center-right">
                    <img class="pure-img" src="/{{ baseurlpath }}resources/icons/experience/gtk-dialog-authentication.48x48.png"
                         alt=""/>
                </div>

                <div class="pure-control-group">
                    <label for="username">{{ 'Username'|trans }}</label>
                    <input id="username" {{ forceUsername ? 'disabled="disabled"' }} placeholder="{{ username }}" type="text" name="username" class="edge"
            {%- if not forceUsername %} tabindex="1" value="{{ username }}" {% endif %}
            {%- if not forceUsername and not username %} autofocus {% endif %} />
                {% if rememberUsernameEnabled and not forceUsername -%}
                </div>
                <div class="pure-controls pure-form-message">
                    <label for="remember_username" class="pure-checkbox">
                        <input id="remember_username" type="checkbox" tabindex="4"
                                {{ rememberUsernameChecked ? 'checked="checked"' }} name="remember_username" value="Yes"/>
                        <small>{{ 'Remember my username'|trans }}</small>
                    </label>
                {%- endif %}
                </div>

                <div class="pure-control-group">
                    <label for="password">{{ 'Password'|trans}}</label>
                    <input id="password" type="password" tabindex="2" name="password" class="edge"
                    {%- if forceUsername or username %} autofocus {% endif %} />

                {% if rememberMeEnabled -%}
                </div>
                <div class="pure-controls pure-form-message">
                    <label for="remember_me" class="pure-checkbox">
                    <input id="remember_me" type="checkbox" tabindex="5"
                            {{ rememberMeChecked ? 'checked="checked"' }} name="remember_me" value="Yes"/>
                        <small>{{ 'Remember me'|trans }}</small>
                    </label>
                {%- endif %}
                </div>
                {% if organizations is defined -%}
                <div class="pure-control-group">
                    <label for="organization">{{ 'Organization'|trans }}</label>
                    <div class="pure-select right pure-input-1-2 pure-input-sm-1-1">
                        <select name="organization" class="selectize" id="organization" tabindex="3">
                            {{ selectedOrg ?: null }}
                            {%- for id, orgDesc in organizations -%}
                                {% if id == selectedOrg -%}
                                    {%- set selected = 'selected="selected"' %}
                                {%- else -%}
                                    {% set selected = '' -%}
                                {% endif -%}
                                {% if orgDesc -%}
                                    <option value="{{ id }}" {{ selected }}>{{ orgDesc|trans }}</option>
                                {% endif -%}
                            {% endfor %}
                        </select>
                    </div>
                </div> <!--pure-control-group-->
            {%- endif %}

            </div> <!-- form-align-->
            <br><br>
            <button class="pure-button pure-button-red pure-input-1-2 pure-input-sm-1-1 right" type="submit" onclick="this.value='{{ 'Processing...'|trans }}';" tabindex="6">
                {{ 'Login'|trans }}
            </button>

            {% for name, value in stateparams -%}
                <input type="hidden" name="{{ name }}" value="{{ value }}" />
            {%- endfor %}
        </form>
    </div><!--center-->
    {% if links -%}
    <ul>
        {% for link in links -%}
        <li><a href="{{ link.href }}">{{ link['text']|trans }}</a></li>
        {% endfor %}
    </ul>
    {%- endif %}

    <br><br>
    <div class="pure-form-message">
        <strong>{{ 'Help! I don\'t remember my password.'|trans }}</strong>
        <p>{{ 'Without your username and password you cannot authenticate yourself for access to the service. There may be someone that can help you. Consult the help desk at your organization!'|trans }}</p>
    </div>

{% endblock %}
<commit_msg>Adjust template to reflect additions in #855<commit_after>{% set pagetitle = 'Enter your username and password'|trans %}

{% extends "@core/base.twig" %}

{% block content %}
    {% if errorcode -%}
    <div class="pure-g">
        <div class="pure-u-1">
            <div class="message-box error">

                {% set errtitles = errorcodes['title'] %}
                {% set errtitle = errtitles[errorcode] %}

                <h3>{{ errtitle|trans(errorparams) }}</h3>

                {% set errdescs = errorcodes['descr'] %}
                {% set errdesc = errdescs[errorcode] %}

                <p>{{ errdesc|trans(errorparams) }}</p>

            </div>
        </div>
    </div>
    {%- endif %}

    <h1>{{ 'Enter your username and password'|trans }}</h1>

    <p>{{ 'A service has requested you to authenticate yourself. Please enter your username and password in the form below.'|trans }}</p>
    <br>
    <div class="center">
        <form class="pure-form pure-form-aligned center-form" action="?" method="post" name="f">
            <div class="form-align">

                <div class="show-for-medium v-center-right">
                    <img class="pure-img" src="/{{ baseurlpath }}resources/icons/experience/gtk-dialog-authentication.48x48.png"
                         alt=""/>
                </div>

                <div class="pure-control-group">
                    <label for="username">{{ 'Username'|trans }}</label>
                    <input id="username" {{ forceUsername ? 'disabled="disabled"' }} placeholder="{{ username }}" type="text" name="username" class="edge"
            {%- if not forceUsername %} tabindex="1" value="{{ username }}" {% endif %}
            {%- if not forceUsername and not username %} autofocus {% endif %} />
                {% if rememberUsernameEnabled and not forceUsername -%}
                </div>
                <div class="pure-controls pure-form-message">
                    <label for="remember_username" class="pure-checkbox">
                        <input id="remember_username" type="checkbox" tabindex="4"
                                {{ rememberUsernameChecked ? 'checked="checked"' }} name="remember_username" value="Yes"/>
                        <small>{{ 'Remember my username'|trans }}</small>
                    </label>
                {%- endif %}
                </div>

                <div class="pure-control-group">
                    <label for="password">{{ 'Password'|trans}}</label>
                    <input id="password" type="password" tabindex="2" name="password" class="edge"
                    {%- if forceUsername or username %} autofocus {% endif %} />

                {% if rememberMeEnabled -%}
                </div>
                <div class="pure-controls pure-form-message">
                    <label for="remember_me" class="pure-checkbox">
                    <input id="remember_me" type="checkbox" tabindex="5"
                            {{ rememberMeChecked ? 'checked="checked"' }} name="remember_me" value="Yes"/>
                        <small>{{ 'Remember me'|trans }}</small>
                    </label>
                {%- endif %}
                </div>
                {% if organizations is defined -%}
                <div class="pure-control-group">
                    <label for="organization">{{ 'Organization'|trans }}</label>
                    <div class="pure-select right pure-input-1-2 pure-input-sm-1-1">
                        <select name="organization" class="selectize" id="organization" tabindex="3">
                            {{ selectedOrg ?: null }}
                            {%- for id, orgDesc in organizations -%}
                                {% if id == selectedOrg -%}
                                    {%- set selected = 'selected="selected"' %}
                                {%- else -%}
                                    {% set selected = '' -%}
                                {% endif -%}
                                {% if orgDesc -%}
                                    <option value="{{ id }}" {{ selected }}>{{ orgDesc|trans }}</option>
                                {% endif -%}
                            {% endfor %}
                        </select>
                    </div>
                    {% if rememberOrganizationEnabled is defined -%}
                    <div class="pure-controls pure-form-message">
                        <label for="remember_organization" class="pure-checkbox">
 	                    <input type="checkbox" id="remember_organization" tabindex="5" name="remember_organization" value="Yes"
                                {{ rememberOrganizationChecked ? 'checked="checked"' }} />
                            <small>{{ 'Remember my organization'|trans }}</small>
                        </label>
                    </div>
                    {%- endif %}
                </div> <!--pure-control-group-->
            {%- endif %}

            </div> <!-- form-align-->
            <br><br>
            <button class="pure-button pure-button-red pure-input-1-2 pure-input-sm-1-1 right" type="submit" onclick="this.value='{{ 'Processing...'|trans }}';" tabindex="6">
                {{ 'Login'|trans }}
            </button>

            {% for name, value in stateparams -%}
                <input type="hidden" name="{{ name }}" value="{{ value }}" />
            {%- endfor %}
        </form>
    </div><!--center-->
    {% if links -%}
    <ul>
        {% for link in links -%}
        <li><a href="{{ link.href }}">{{ link['text']|trans }}</a></li>
        {% endfor %}
    </ul>
    {%- endif %}

    <br><br>
    <div class="pure-form-message">
        <strong>{{ 'Help! I don\'t remember my password.'|trans }}</strong>
        <p>{{ 'Without your username and password you cannot authenticate yourself for access to the service. There may be someone that can help you. Consult the help desk at your organization!'|trans }}</p>
    </div>

{% endblock %}

{'fraction_non_alphanumeric': 0.15925925925925927, 'fraction_numerical': 0.004409171075837742, 'mean_word_length': 1.5163079653871756, 'pattern_counts': {'":': 0, '<': 170, '<?xml version=': 0, '>': 170, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 21, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5514076', 'n_tokens_mistral': 3204, 'n_tokens_neox': 2806, 'n_words': 696}