2018-06-06 15:22:48 +01:00
|
|
|
{% extends "views/platform-admin/_base_template.html" %}
|
|
|
|
|
{% from "components/page-footer.html" import page_footer %}
|
2018-07-03 10:54:33 +01:00
|
|
|
{% from "components/previous-next-navigation.html" import previous_next_navigation %}
|
2018-06-06 15:22:48 +01:00
|
|
|
{% from "components/table.html" import list_table, field, text_field, link_field, right_aligned_field_heading, hidden_field_heading %}
|
|
|
|
|
|
|
|
|
|
{% block per_page_title %}
|
2021-12-30 16:13:49 +00:00
|
|
|
Email complaints
|
2018-06-06 15:22:48 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block platform_admin_content %}
|
|
|
|
|
|
2023-08-16 12:49:36 -04:00
|
|
|
<h1 class="font-body-2xl">
|
2018-06-06 15:22:48 +01:00
|
|
|
Email complaints
|
|
|
|
|
</h1>
|
|
|
|
|
|
2024-07-26 10:38:00 -04:00
|
|
|
<div class="table-overflow-x-auto">
|
2024-07-25 15:36:31 -04:00
|
|
|
{% call(item, row_number) list_table(
|
|
|
|
|
complaints,
|
|
|
|
|
caption="Complaints",
|
|
|
|
|
caption_visible=False,
|
|
|
|
|
empty_message='No complaints',
|
|
|
|
|
field_headings=['Notification Id', 'Service', 'Complaint type', 'Complaint Date'],
|
|
|
|
|
field_headings_visible=True
|
|
|
|
|
) %}
|
2018-06-06 15:22:48 +01:00
|
|
|
|
2024-07-25 15:36:31 -04:00
|
|
|
{{ link_field(item.notification_id, url_for('main.view_notification', service_id=item.service_id, notification_id=item.notification_id)) }}
|
2018-06-06 15:22:48 +01:00
|
|
|
|
2024-07-25 15:36:31 -04:00
|
|
|
{{ link_field(item.service_name, url_for('main.service_dashboard', service_id=item.service_id)) }}
|
2018-06-06 15:22:48 +01:00
|
|
|
|
2024-07-25 15:36:31 -04:00
|
|
|
{{ text_field(item.complaint_type) }}
|
2018-06-06 15:22:48 +01:00
|
|
|
|
2024-07-25 15:36:31 -04:00
|
|
|
{{ text_field(item.complaint_date|format_datetime_table if item.complaint_date else None) }}
|
2018-06-06 15:22:48 +01:00
|
|
|
|
2024-07-25 15:36:31 -04:00
|
|
|
{% endcall %}
|
|
|
|
|
</div>
|
2018-07-03 10:54:33 +01:00
|
|
|
{{ previous_next_navigation(prev_page, next_page) }}
|
2018-06-06 15:22:48 +01:00
|
|
|
|
|
|
|
|
{% endblock %}
|