Add last updated column (formatted) in view providers table

This commit is contained in:
Imdad Ahad
2017-01-17 15:21:05 +00:00
parent dfc751ef02
commit ac3467c1b5
3 changed files with 27 additions and 13 deletions

View File

@@ -11,10 +11,6 @@ Providers GOV.UK Notify
<div class="column-two-thirds">
<h1 class="heading-large">Providers</h1>
<p>
Providers on Notify
</p>
<h2 class="heading-medium">SMS</h2>
{% call(item, row_number) list_table(
@@ -22,7 +18,7 @@ Providers GOV.UK Notify
caption="SMS providers",
caption_visible=False,
empty_message='No email providers',
field_headings=['Provider', 'Priority', 'Active', ''],
field_headings=['Provider', 'Priority', 'Active', 'Last Updated', ''],
field_headings_visible=True
) %}
@@ -32,8 +28,15 @@ Providers GOV.UK Notify
{{ text_field(item.active) }}
{% if item.updated_at %}
{{ text_field(item.updated_at|format_datetime_short) }}
{% else %}
{{ text_field('None') }}
{% endif %}
{{ link_field('change', url_for('main.view_provider', provider_id=item.id)) }}
{% endcall %}
<h2 class="heading-medium">Email</h2>