{# Password-reset step 1 — collect the username. Pre-auth, so the
admin chrome isn't available. Context: error (optional). #}
{% extends "rcms_admin/_auth_layout.html" %}
{% block page_title %}{{ "Reset password" | translate(locale=LANG) }} — {{ "CMS Admin" | translate(locale=LANG) }}{% endblock %}
{% block brand_sub %}{{ "Recover access to your account" | translate(locale=LANG) }}{% endblock %}
{% block body %}
<form method="post" action="{{ url(name='rcms-admin:password-reset') }}">
{{ csrf_token | csrf_input | safe }}
<h1>{{ "Reset password" | translate(locale=LANG) }}</h1>
<p class="rcms-lead">{{ "Enter the username for your account. If it exists, we'll email you a reset link." | translate(locale=LANG) }}</p>
{% if error %}<p class="rcms-error">{{ error }}</p>{% endif %}
<label for="reset-username">{{ "Username" | translate(locale=LANG) }}</label>
<input id="reset-username" type="text" name="username" autocomplete="username" autofocus required>
<div class="rcms-actions">
<a class="rcms-forgot" href="/login">{{ "← Back to sign in" | translate(locale=LANG) }}</a>
<button type="submit" class="rcms-btn">{{ "Send reset link" | translate(locale=LANG) }}</button>
</div>
</form>
{% endblock %}