40 lines
972 B
HTML
40 lines
972 B
HTML
{% extends "base.html" %}
|
|
{% from "components/alert.html" import Alert %}
|
|
|
|
{% block content %}
|
|
<div class='col'>
|
|
|
|
{% if next is not none %}
|
|
{{ Alert('You must complete your profile',
|
|
message='<p>Before continuing, you must complete your profile</p>',
|
|
level='info'
|
|
) }}
|
|
{% endif %}
|
|
|
|
{% if form.errors %}
|
|
{{ Alert('There were some errors',
|
|
message="<p>Please see below.</p>",
|
|
level='error'
|
|
) }}
|
|
{% endif %}
|
|
|
|
{% if updated %}
|
|
{{ Alert('User information updated.', level='success') }}
|
|
{% endif %}
|
|
|
|
<div class='panel'>
|
|
<div class='panel__heading'>
|
|
<h1>
|
|
<div class='h2'>{{ user.first_name }} {{ user.last_name }}</div>
|
|
<div class='h3'>DOD ID: {{ user.dod_id }}</div>
|
|
<div class='subtitle h3'>Edit user details</div>
|
|
</h1>
|
|
</div>
|
|
</div>
|
|
|
|
{% set form_action = url_for('users.update_user', next=next) %}
|
|
{% include "fragments/edit_user_form.html" %}
|
|
|
|
</div>
|
|
{% endblock %}
|