{% extends "base.html" %} {#- Minting a token, and the one page that ever holds a live secret. Two states in one template rather than two files: the form before, the secret after. They are the same page in the same flow, and splitting them would mean the reveal had a URL of its own -- a URL somebody could return to, which is the one thing a write-once secret must not have. -#} {% block content %}

{{ _("New token") }}

{% if secret %}
{# `readonly` rather than disabled: a disabled input cannot be selected, and selecting it is the entire purpose of showing it. #}
{% else %} {% if error %} {% endif %}
{{ _("What this token is for.") }}
{{ _("Space-separated, and yours to define.") }}
{{ _("Leave empty for a token that does not expire.") }}
{{ _("Cancel") }}
{% endif %} {% endblock %}