mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-08 15:31:21 -04:00
Fix data retention page
This commit is contained in:
@@ -29,27 +29,28 @@
|
|||||||
By default data is kept for 7 days
|
By default data is kept for 7 days
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="user-list">
|
{% if not current_service.data_retention %}
|
||||||
{% if not current_service.data_retention %}
|
<div class="user-list">
|
||||||
<div class="user-list-item">
|
<div class="user-list-item">
|
||||||
<span class="hint">You have not added any data retention</span>
|
<p class="govuk-body user-list-item-blank hint">You have not added any data retention</p>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
</div>
|
||||||
{% call mapping_table(
|
{% else %}
|
||||||
caption='Data retention',
|
{% call mapping_table(
|
||||||
field_headings=['Label', 'Value', 'Action'],
|
caption='Data retention',
|
||||||
field_headings_visible=False,
|
field_headings=['Label', 'Value', 'Action'],
|
||||||
caption_visible=False
|
field_headings_visible=False,
|
||||||
) %}
|
caption_visible=False
|
||||||
{% for item in current_service.data_retention %}
|
) %}
|
||||||
{% call row() %}
|
{% for item in current_service.data_retention %}
|
||||||
{{ text_field(item.notification_type | format_notification_type)}}
|
{% call row() %}
|
||||||
{{ text_field(item.days_of_retention) }}
|
{{ text_field(item.notification_type | format_notification_type)}}
|
||||||
{{ edit_field('Change', url_for('.edit_data_retention', service_id=current_service.id, data_retention_id=item.id)) }}
|
{{ text_field(item.days_of_retention) }}
|
||||||
{% endcall %}
|
{{ edit_field('Change', url_for('.edit_data_retention', service_id=current_service.id, data_retention_id=item.id)) }}
|
||||||
|
{% endcall %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
</div>
|
{% endif %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user