{% extends 'base.html' %}

{% block title %} Редактировать пользователя {% endblock %}

{% block menu_links %}
    <li><a href="{% url 'user-detail' user_obj.pk %}">Назад</a></li>
    <li><a href="{% url 'user-change-password' user_obj.pk %}">Смена пароля</a></li>
{% endblock %}

{% block content %}
    <div class="container">
        <h1>Изменить личные данные:</h1>
        <form
            action="{% url 'user-change' user_obj.pk %}"
            method="POST" enctype="multipart/form-data">
            {% csrf_token %}
            {% include 'partial/form.html' with form=form fields_only=True %}
            {% include 'partial/form.html' with form=profile_form  fields_only=True %}
            <br>
            <input type="submit" value="Сохранить">
        </form>
    </div>
{% endblock %}