{% extends "base.html" %} {% block title %}{{ t('account_delete.title') }} {{ account.subject }} — painfree{% endblock %} {% block body %} {# The same shape as replaying an order, and for the same reason: a page whose whole job is to name what is about to happen. Replaying re-sends a file the bank deduplicates; this stops a person signing in, and it was the one with no page in front of it. #}
{{ account.subject }}?| {{ t('access.subject') }} | {{ account.subject }} |
| {{ t('access.name') }} | {{ account.display_name or '—' }} |
| {{ t('api.role') }} | {{ account.role.value }} |
| {{ t('accounts.status') }} | {% if account.disabled %}{{ t('accounts.suspended') }} {% else %}{{ t('accounts.active') }}{% endif %} |
| {{ t('accounts.password_set') }} | {{ account.password_changed_at | moment }} |
{{ t('account_delete.grants_stay') }} {{ t('accounts.delete_keeps_grants') }}
{% if grants.grants or grants.oversight %}| {{ t('access.oversight_heading') }} | oversight {{ t('access.every_connection_readonly') }} |
{{ connection_id }} |
{{ level.value }} |
{{ t('account_delete.no_grants') }}
{% endif %}{{ t('account_delete.suspend_instead') }}
{# The confirmation is the subject itself. A hidden field carrying a fixed word is a field the form fills in, and what it guards against is nothing; typing the name is the operator saying *which* account, which is the fact a misclick gets wrong. #}