2017-07-21 10:30:55 +01:00
|
|
|
{% extends "views/platform-admin/_base_template.html" %}
|
2019-05-02 09:25:57 +01:00
|
|
|
{% from "components/table.html" import list_table, field, text_field, link_field, right_aligned_field_heading, hidden_field_heading, optional_text_field %}
|
2017-03-02 22:53:32 +00:00
|
|
|
{% from "components/show-more.html" import show_more %}
|
|
|
|
|
|
|
|
|
|
{% block per_page_title %}
|
|
|
|
|
Providers
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
{% block platform_admin_content %}
|
2017-03-02 22:53:32 +00:00
|
|
|
|
2020-04-23 11:08:43 +01:00
|
|
|
<h1 class="heading-medium">Providers</h1>
|
2017-03-02 22:53:32 +00:00
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
<h2 class="heading-medium">SMS</h2>
|
2017-03-02 22:53:32 +00:00
|
|
|
|
2019-12-06 07:53:46 +00:00
|
|
|
<a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('main.edit_sms_provider_ratio') }}">Change priority</a>
|
2019-12-04 10:30:40 +00:00
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
{% call(item, row_number) list_table(
|
|
|
|
|
domestic_sms_providers,
|
|
|
|
|
caption="Domestic SMS providers",
|
|
|
|
|
caption_visible=False,
|
|
|
|
|
empty_message='No domestic sms providers',
|
2019-04-26 16:47:16 +01:00
|
|
|
field_headings=['Provider', 'Priority', '% monthly traffic', 'Active', 'Last Updated', 'Updated By'],
|
2017-07-21 10:30:55 +01:00
|
|
|
field_headings_visible=True
|
|
|
|
|
) %}
|
2017-03-02 22:53:32 +00:00
|
|
|
|
2019-12-04 10:30:40 +00:00
|
|
|
{{ text_field(item.display_name) }}
|
2017-03-02 22:53:32 +00:00
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
{{ text_field(item.priority) }}
|
2017-03-02 22:53:32 +00:00
|
|
|
|
2019-04-26 16:47:16 +01:00
|
|
|
{{ text_field(item.monthly_traffic) }}
|
|
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
{{ text_field(item.active) }}
|
2017-03-02 22:53:32 +00:00
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
{% if item.updated_at %}
|
|
|
|
|
{{ text_field(item.updated_at|format_datetime_short) }}
|
|
|
|
|
{% else %}
|
|
|
|
|
{{ text_field('None') }}
|
|
|
|
|
{% endif %}
|
2017-03-02 22:53:32 +00:00
|
|
|
|
2019-05-02 09:25:57 +01:00
|
|
|
{{ optional_text_field(item.created_by_name, default='None') }}
|
2017-03-02 22:53:32 +00:00
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
{% endcall %}
|
2017-03-02 22:53:32 +00:00
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
<h2 class="heading-medium">Email</h2>
|
2017-03-02 22:53:32 +00:00
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
{% call(item, row_number) list_table(
|
|
|
|
|
email_providers,
|
|
|
|
|
caption="Email providers",
|
|
|
|
|
caption_visible=False,
|
|
|
|
|
empty_message='No email providers',
|
|
|
|
|
field_headings=['Provider', 'Priority', 'Active', 'Last Updated', 'Updated By'],
|
|
|
|
|
field_headings_visible=True
|
|
|
|
|
) %}
|
2017-03-02 22:53:32 +00:00
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
{{ link_field(item.display_name, url_for('main.view_provider', provider_id=item.id)) }}
|
2017-03-02 22:53:32 +00:00
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
{{ text_field(item.priority) }}
|
2017-03-02 22:53:32 +00:00
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
{{ text_field(item.active) }}
|
2017-03-02 22:53:32 +00:00
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
{% if item.updated_at %}
|
|
|
|
|
{{ text_field(item.updated_at|format_datetime_short) }}
|
|
|
|
|
{% else %}
|
|
|
|
|
{{ text_field('None') }}
|
|
|
|
|
{% endif %}
|
2017-03-02 22:53:32 +00:00
|
|
|
|
2019-05-02 09:25:57 +01:00
|
|
|
{{ optional_text_field(item.created_by_name, default='None') }}
|
2017-03-02 22:53:32 +00:00
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
{{ link_field('change', url_for('main.edit_provider', provider_id=item.id)) }}
|
2017-03-02 22:53:32 +00:00
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
{% endcall %}
|
2017-03-02 22:53:32 +00:00
|
|
|
|
2020-04-23 11:08:43 +01:00
|
|
|
<h1 class="heading-medium">International SMS Providers</h1>
|
2017-04-25 11:10:59 +01:00
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
{% call(item, row_number) list_table(
|
|
|
|
|
intl_sms_providers,
|
|
|
|
|
caption="International SMS providers",
|
|
|
|
|
caption_visible=False,
|
|
|
|
|
empty_message='No international sms providers',
|
|
|
|
|
field_headings=['Provider', 'Priority', 'Active', 'Last Updated', 'Updated By'],
|
|
|
|
|
field_headings_visible=True
|
|
|
|
|
) %}
|
2017-04-25 11:10:59 +01:00
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
{{ link_field(item.display_name, url_for('main.view_provider', provider_id=item.id)) }}
|
2017-04-25 11:10:59 +01:00
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
{{ text_field(item.priority) }}
|
2017-04-25 11:10:59 +01:00
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
{{ text_field(item.active) }}
|
2017-04-25 11:10:59 +01:00
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
{% if item.updated_at %}
|
|
|
|
|
{{ text_field(item.updated_at|format_datetime_short) }}
|
|
|
|
|
{% else %}
|
|
|
|
|
{{ text_field('None') }}
|
|
|
|
|
{% endif %}
|
2017-04-25 11:10:59 +01:00
|
|
|
|
2019-05-02 09:25:57 +01:00
|
|
|
{{ optional_text_field(item.created_by_name, default='None') }}
|
2017-04-25 11:10:59 +01:00
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
{% endcall %}
|
2017-03-02 22:53:32 +00:00
|
|
|
|
|
|
|
|
{% endblock %}
|