{% extends "suff/base.html" %}

{% block content %}
<h2>PIN ändern</h2>

{% if error %}<p class="error">{{ error }}</p>{% endif %}

<form method="post" action="{% url 'suff:change_pin' %}">
    {% csrf_token %}
    <label>
        Neue PIN:
        <input type="text" name="pin" inputmode="numeric" pattern="[0-9]{3}" maxlength="3"
               minlength="3" required autofocus autocomplete="off" />
    </label>
    <button type="submit">PIN speichern</button>
</form>

<p><a href="{% url 'suff:me' %}">Abbrechen</a></p>
{% endblock %}
