2017-07-21 10:30:55 +01:00
|
|
|
{% extends "views/platform-admin/_base_template.html" %}
|
2017-03-02 22:53:32 +00:00
|
|
|
{% from "components/table.html" import list_table, field, text_field, link_field, right_aligned_field_heading, hidden_field_heading %}
|
|
|
|
|
{% 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
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
<h1 class="heading-large">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
|
|
|
|
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',
|
|
|
|
|
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
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
{% if item.created_by %}
|
|
|
|
|
{{ text_field(item.created_by.name) }}
|
|
|
|
|
{% else %}
|
|
|
|
|
{{ text_field('None') }}
|
|
|
|
|
{% endif %}
|
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
|
|
|
|
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
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
{% if item.created_by %}
|
|
|
|
|
{{ text_field(item.created_by.name) }}
|
|
|
|
|
{% else %}
|
|
|
|
|
{{ text_field('None') }}
|
|
|
|
|
{% endif %}
|
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
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
<h1 class="heading-large">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
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
{% if item.created_by %}
|
|
|
|
|
{{ text_field(item.created_by.name) }}
|
|
|
|
|
{% else %}
|
|
|
|
|
{{ text_field('None') }}
|
|
|
|
|
{% endif %}
|
2017-04-25 11:10:59 +01:00
|
|
|
|
2017-07-21 10:30:55 +01:00
|
|
|
{{ link_field('change', url_for('main.edit_provider', provider_id=item.id)) }}
|
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 %}
|