21 lines
610 B
HTML
21 lines
610 B
HTML
{% extends 'application.html' %}
|
|
|
|
{% block content %}
|
|
<section class="panel test">
|
|
<h1>Update User</h1>
|
|
|
|
<h3>{{ user.first_name }} {{ user.last_name }}</h3>
|
|
{% if user.student %}
|
|
<p>Student ID: {{user.student.student_number}}</p>
|
|
{% endif %}
|
|
<p><a href="{% url 'password_change' %}">Change password</a></p>
|
|
<form method="post" action="{% url 'account-update' user.id %}">
|
|
{% csrf_token %}
|
|
{{ form.as_p }}
|
|
|
|
<input type="submit" value="Save changes"> or
|
|
<a href="{% url 'account-detail' user.id %}">Cancel</a>
|
|
</form>
|
|
</section>
|
|
{% endblock %}
|