mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 07:38:26 -04:00
Use page footer for back link
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
{% extends "withoutnav_template.html" %}
|
{% extends "withoutnav_template.html" %}
|
||||||
{% from "components/table.html" import list_table, field, text_field, link_field, right_aligned_field_heading, hidden_field_heading %}
|
{% from "components/table.html" import list_table, field, text_field, link_field, right_aligned_field_heading, hidden_field_heading %}
|
||||||
|
{% from "components/page-footer.html" import page_footer %}
|
||||||
|
|
||||||
{% block per_page_title %}
|
{% block per_page_title %}
|
||||||
Provider versions
|
Provider versions
|
||||||
@@ -11,36 +12,39 @@ Provider versions
|
|||||||
<div class="column-two-thirds">
|
<div class="column-two-thirds">
|
||||||
<h1 class="heading-large">{{ provider_versions[0].display_name }}</h1>
|
<h1 class="heading-large">{{ provider_versions[0].display_name }}</h1>
|
||||||
|
|
||||||
{% call(item, row_number) list_table(
|
{% call(item, row_number) list_table(
|
||||||
provider_versions,
|
provider_versions,
|
||||||
caption='',
|
caption='',
|
||||||
caption_visible=False,
|
caption_visible=False,
|
||||||
empty_message='No history for this provider',
|
empty_message='No history for this provider',
|
||||||
field_headings=['Version', 'Last Updated', 'Updated By', 'Priority', 'Active'],
|
field_headings=['Version', 'Last Updated', 'Updated By', 'Priority', 'Active'],
|
||||||
field_headings_visible=True
|
field_headings_visible=True
|
||||||
) %}
|
) %}
|
||||||
|
|
||||||
{{ text_field(item.version) }}
|
{{ text_field(item.version) }}
|
||||||
|
|
||||||
{% if item.updated_at %}
|
{% if item.updated_at %}
|
||||||
{{ text_field(item.updated_at|format_datetime_short) }}
|
{{ text_field(item.updated_at|format_datetime_short) }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ text_field('None') }}
|
{{ text_field('None') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if item.created_by %}
|
{% if item.created_by %}
|
||||||
{{ text_field(item.created_by.name) }}
|
{{ text_field(item.created_by.name) }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ text_field('None') }}
|
{{ text_field('None') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{{ text_field(item.priority) }}
|
{{ text_field(item.priority) }}
|
||||||
|
|
||||||
{{ text_field(item.active) }}
|
{{ text_field(item.active) }}
|
||||||
|
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
|
|
||||||
<a class="page-footer-back-link" href="{{ url_for('main.view_providers') }}">Back to Providers</a>
|
{{ page_footer(
|
||||||
|
back_link=url_for('main.view_providers'),
|
||||||
|
back_link_text="Back to providers"
|
||||||
|
) }}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user