mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-24 03:00:56 -04:00
Banners should always be the first thing on the page. Because headers already have padding we don’t want to put padding on the container. So banners should also have top padding to distance then from the red bar. They should also sit in the 3/4 column if the page has side navigation. This commit adds a new template (`withoutnav_template.html`) which extends `admin_template.html`. All views then extend one or the other, never the `admin_template.html` directly. This means that `admin_template.html` doesn’t have to make decisions about where the flash messages are displayed.
36 lines
1.1 KiB
HTML
36 lines
1.1 KiB
HTML
{% extends "withoutnav_template.html" %}
|
|
{% from "components/table.html" import list_table, row, field %}
|
|
|
|
{% block page_title %}
|
|
GOV.UK Notify | Your profile
|
|
{% endblock %}
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
<h1 class="heading-xlarge">Your profile</h1>
|
|
|
|
{% call(item) list_table(
|
|
[
|
|
{'label': 'Name', 'value': current_user.name, 'url': url_for('.user_profile_name')},
|
|
{'label': 'Email address', 'value': current_user.email_address, 'url': url_for('.user_profile_email')},
|
|
{'label': 'Mobile number', 'value': current_user.mobile_number, 'url': url_for('.user_profile_mobile_number')},
|
|
{'label': 'Password', 'value': 'Last changed 1 January 2016, 10:00AM', 'url': url_for('.user_profile_password')},
|
|
],
|
|
caption='Account settings',
|
|
field_headings=['Setting', 'Value', 'Link to change'],
|
|
field_headings_visible=False,
|
|
caption_visible=False
|
|
) %}
|
|
{% call field() %}
|
|
{{ item.label }}
|
|
{% endcall %}
|
|
{% call field() %}
|
|
{{ item.value }}
|
|
{% endcall %}
|
|
{% call field(align='right') %}
|
|
<a href="{{ item.url }}">Change</a>
|
|
{% endcall %}
|
|
{% endcall %}
|
|
|
|
{% endblock %}
|