{% extends "admin/base_site.html" %} {% load i18n admin_urls static daisy_theme %} {% block title %}{% if form.user.has_usable_password %}{% translate 'Change password' %}{% else %}{% translate 'Set password' %}{% endif %} | {% daisy_config "SITE_TITLE" "Django Administration" %}{% endblock %} {% block breadcrumbs %} {% if not is_popup and daisy_theme.SHOW_BREADCRUMBS %} {% endif %} {% endblock %} {% block content %}
{% if form.errors %}
{% daisy_icon "alert-circle" "w-5 h-5 flex-shrink-0 mt-0.5" %}

{% blocktranslate count counter=form.errors.items|length %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktranslate %}

{% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %}
{% endif %} {% csrf_token %} {% if is_popup %}{% endif %}
{% daisy_icon "key" "w-4 h-4" %}

{% blocktranslate with username=original %}Enter a new password for the user {{ username }}.{% endblocktranslate %}

{% if not form.user.has_usable_password %}

{% blocktranslate %}This action will enable password-based authentication for this user.{% endblocktranslate %}

{% endif %}
{% if form.usable_password %}
{% if form.usable_password.help_text %}
{{ form.usable_password.help_text|safe }}
{% endif %}
{% endif %}
{% if form.password1.errors %}
{{ form.password1.errors }}
{% endif %}
{{ form.password1 }}
{% if form.password1.help_text %}
{% daisy_icon "help-circle" "w-4 h-4 shrink-0 mt-0.5 text-info" %}
{{ form.password1.help_text|safe }}
{% endif %}
{% if form.password2.errors %}
{{ form.password2.errors }}
{% endif %}
{{ form.password2 }}
{% if form.password2.help_text %}
{% daisy_icon "help-circle" "w-3 h-3 shrink-0 mt-0.5 opacity-60" %} {{ form.password2.help_text|safe }}
{% endif %}
{% translate 'Cancel' %}
{% if form.user.has_usable_password %} {% else %} {% endif %}
{% endblock %}