~sirodoht/mataroa

1b8b23c102c739e8acecee5d8e4b415adc19edff — Theodore Keloglou 8 days ago 4723c47
fix login page errors
1 files changed, 20 insertions(+), 4 deletions(-)

M main/templates/registration/login.html
M main/templates/registration/login.html => main/templates/registration/login.html +20 -4
@@ 16,16 16,32 @@
    <h1>Log in</h1>

    <form method="post">
        {{ form.non_field_errors }}

        <p>
            <label for="id_username">Username</label>
            <input type="text" name="username" autofocus autocapitalize="none" autocomplete="username" maxlength="150" required id="id_username">
            <label for="id_username">{{ form.username.label }}</label>
            {% if form.username.errors %}
                {% for error in form.username.errors %}
                    <span class="form-error">{{ error|escape }}</span>
                {% endfor %}
            {% endif %}
            {{ form.username }}
            <span class="helptext">This is your blog subdomain.</span>
        </p>

        <p>
            <label for="id_password">Password</label>
            <input type="password" name="password" autocomplete="current-password" required id="id_password">
            <label for="id_password">{{ form.password.label }}</label>
            {% if form.password.errors %}
                {% for error in form.password.errors %}
                    <span class="form-error">{{ error|escape }}</span>
                {% endfor %}
            {% endif %}
            {{ form.password }}
            <span class="helptext">{{ form.password.help_text }}</span>
        </p>

        {% csrf_token %}

        <input type="submit" value="Login">
    </form>