mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Ensure only one <h1> per page, even with errors
A page should have only one `<h1>` element. So if there’s an error message, which contains a `<h1>`, it should replace the page’s normal `<h1>` element, rather than sit above it.
This commit is contained in:
@@ -23,19 +23,18 @@
|
|||||||
{% endcall %}
|
{% endcall %}
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
<div class="grid-row">
|
||||||
|
<div class="column-two-thirds">
|
||||||
|
<h1 class="heading-large">
|
||||||
|
API keys
|
||||||
|
</h1>
|
||||||
|
</div>
|
||||||
|
<div class="column-one-third">
|
||||||
|
<a href="{{ url_for('.create_api_key', service_id=current_service.id) }}" class="button align-with-heading">Create an API key</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="grid-row">
|
|
||||||
<div class="column-two-thirds">
|
|
||||||
<h1 class="heading-large">
|
|
||||||
API keys
|
|
||||||
</h1>
|
|
||||||
</div>
|
|
||||||
<div class="column-one-third">
|
|
||||||
<a href="{{ url_for('.create_api_key', service_id=current_service.id) }}" class="button align-with-heading">Create an API key</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="body-copy-table">
|
<div class="body-copy-table">
|
||||||
{% call(item, row_number) list_table(
|
{% call(item, row_number) list_table(
|
||||||
keys,
|
keys,
|
||||||
|
|||||||
@@ -27,9 +27,7 @@
|
|||||||
</form>
|
</form>
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% elif template_delete_confirmation_message %}
|
||||||
|
|
||||||
{% if template_delete_confirmation_message %}
|
|
||||||
<div class="bottom-gutter">
|
<div class="bottom-gutter">
|
||||||
{% call banner_wrapper(type='dangerous', subhead=template_delete_confirmation_message[0]) %}
|
{% call banner_wrapper(type='dangerous', subhead=template_delete_confirmation_message[0]) %}
|
||||||
<p>
|
<p>
|
||||||
@@ -41,10 +39,10 @@
|
|||||||
</form>
|
</form>
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
</div>
|
</div>
|
||||||
|
{% else %}
|
||||||
|
<h1 class="heading-large">{{ template.name }}</h1>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<h1 class="heading-large">{{ template.name }}</h1>
|
|
||||||
|
|
||||||
<div class="grid-row">
|
<div class="grid-row">
|
||||||
{% with show_title=False, expanded=True %}
|
{% with show_title=False, expanded=True %}
|
||||||
{% include 'views/templates/_template.html' %}
|
{% include 'views/templates/_template.html' %}
|
||||||
|
|||||||
Reference in New Issue
Block a user