{% extends "adminsite/base.html" %} {% import "adminsite/_icons.html" as icons %} {% block page_title %}{{ _('Change password') }} ยท {{ title }}{% endblock %} {% block header_class %}border-b border-base-300 lg:py-5{% endblock %} {% block header %}

{{ _('Change password') }}

{% endblock %} {% block content %} {#- Three boxes, never filled in again after a mistake. The cursor starts in the one that needs another look. -#} {%- set boxes = [ ("current", _('Current password'), "current-password"), ("new", _('New password'), "new-password"), ("repeat", _('Repeat the new password'), "new-password"), ] -%} {%- set focus = (errors|list|first) if errors else "current" -%}
{{ csrf_input | safe if csrf_input }}
{% for name, label, filling in boxes %}
{% if errors.get(name) %}

{{ icons.icon("alert", 14) }}{{ errors[name] }}

{% endif %}
{% endfor %}
{{ _('Cancel') }}
{% endblock %}