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

{% block content %}
<p class="muted">Crew-Ansicht</p>
<h2>PIN setzen für <span class="staff-target">{{ tab_user.username }}</span></h2>

<p>Neue 3-stellige PIN eingeben. Eine bestehende PIN wird überschrieben.</p>

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

<form method="post" action="{% url 'suff:staff_pin_reset' tab_user.username %}">
    {% 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" class="btn-primary">PIN speichern</button>
</form>

<div class="logout-form">
    <a href="{% url 'suff:staff_user' tab_user.username %}" class="link-btn link-btn-secondary">Zurück</a>
</div>
{% endblock %}
