{% extends base %} {% from 'macro.html' import breadcrumbs with context %} {% from 'macro.html' import form_fields with context %} {% block content %}
{{- breadcrumbs([ [url_for('admin_index.index'), _('Administration')], [url_for('admin_authors.index'), _('Authors')] ]) }}

{{ author.username }} {{- author.username -}} {% if not author.is_active %} Read-only {% endif -%}

{% if author.id == current_user.id %}

{{ _("(it's you)") }}

{% endif %} {% if saved %}
{{ _('Saved!') }}
{% endif %}
{% if author.date_joined %}{% else %}N/A{% endif %}
{% if author.last_visit %}{% else %}N/A{% endif %}
{% if not is_system_user %} {{ form_fields(form) }}
{% else %}
{{ _('This is system user account, you cannot edit it.') }}
{% endif %}
{% if author.is_active and author.id != current_user.id %}
{% endif %} {% if not is_system_user %}
{%- if config['DEBUG'] and current_user.is_superuser -%} {{ author.password }} {%- else -%} {{ safe_password_hash(author.password) }} {%- endif -%}
{% if author.last_password_change %}{% else %}N/A{% endif %}
{% if prp_links %}
{% for prp_link in prp_links %} {{ prp_link }}
{% endfor %}
{% endif %} {{ form_fields(password_edit_form) }}
При смене пароля на странице администрирования пользователь не будет разлогинен.

{% endif %} {{- breadcrumbs([ [url_for('admin_index.index'), _('Administration')], [url_for('admin_authors.index'), _('Authors')] ]) }}
{% endblock %}