mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-08 18:34:24 -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.
18 lines
479 B
HTML
18 lines
479 B
HTML
{% extends "admin_template.html" %}
|
|
|
|
{% block fullwidth_content %}
|
|
<div class="grid-row">
|
|
<div class="column-one-quarter">
|
|
{% include "main_nav.html" %}
|
|
</div>
|
|
<div class="column-three-quarters">
|
|
{{ banner(
|
|
'Your service is in restricted mode. You can only send notifications to yourself.',
|
|
'info'
|
|
) }}
|
|
{% include 'flash_messages.html' %}
|
|
{% block maincolumn_content %}{% endblock %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|