notify-admin-529 remove provider view

This commit is contained in:
Kenneth Kehl
2023-12-06 13:40:15 -08:00
parent 414352ea69
commit d218fd2178
13 changed files with 1 additions and 762 deletions

View File

@@ -19,12 +19,12 @@
<div class="tablet:grid-col-3 margin-top-4">
<nav class="navigation">
<ul class="usa-sidenav">
{% for link_text, url in [
('Summary', ('main.platform_admin')),
('Live services', ('main.live_services')),
('Trial mode services', ('main.trial_services')),
('Organizations', ('main.organizations')),
('Providers', ('main.view_providers')),
('Reports', ('main.platform_admin_reports')),
('Email branding', ('main.email_branding')),
('Inbound SMS numbers', ('main.inbound_sms_admin')),

View File

@@ -1,25 +0,0 @@
{% extends "views/platform-admin/_base_template.html" %}
{% from "components/page-header.html" import page_header %}
{% from "components/page-footer.html" import page_footer %}
{% from "components/form.html" import form_wrapper %}
{% block per_page_title %}
Edit SMS provider priorities
{% endblock %}
{% block platform_admin_content %}
{{ page_header('Edit SMS provider priorities') }}
<p>
If you change one priority you will need to change the others so they add up to 100%.
</p>
{% call form_wrapper() %}
{% for field in form %}
{{ field }}
{% endfor %}
{{ page_footer('Save') }}
{% endcall %}
{% endblock %}

View File

@@ -1,58 +0,0 @@
{% extends "withoutnav_template.html" %}
{% from "components/table.html" import list_table, field, text_field, link_field, right_aligned_field_heading, hidden_field_heading %}
{% from "components/page-header.html" import page_header %}
{% from "components/page-footer.html" import page_footer %}
{% from "components/components/back-link/macro.njk" import usaBackLink %}
{% block per_page_title %}
{{ provider_versions[0].display_name }}
{% endblock %}
{% block backLink %}
{{ usaBackLink({ "href": url_for('main.view_providers') }) }}
{% endblock %}
{% block maincolumn_content %}
<div class="grid-row">
<div class="grid-col-8">
{{ page_header(provider_versions[0].display_name) }}
<p>
Only showing the latest 100 versions.
</p>
{% call(item, row_number) list_table(
provider_versions,
caption='',
caption_visible=False,
empty_message='No history for this provider',
field_headings=['Version', 'Last Updated', 'Updated By', 'Priority', 'Active'],
field_headings_visible=True
) %}
{{ text_field(item.version) }}
{% if item.updated_at %}
{{ text_field(item.updated_at|format_datetime_short) }}
{% else %}
{{ text_field('None') }}
{% endif %}
{% if item.created_by %}
{{ text_field(item.created_by.name) }}
{% else %}
{{ text_field('None') }}
{% endif %}
{{ text_field(item.priority) }}
{{ text_field(item.active) }}
{% endcall %}
</div>
</div>
{% endblock %}

View File

@@ -1,90 +0,0 @@
{% extends "views/platform-admin/_base_template.html" %}
{% from "components/table.html" import list_table, field, text_field, link_field, right_aligned_field_heading, hidden_field_heading, optional_text_field %}
{% from "components/show-more.html" import show_more %}
{% block per_page_title %}
Providers
{% endblock %}
{% block platform_admin_content %}
<h1 class="font-body-2xl">Providers</h1>
<h2 class="font-body-lg">SMS</h2>
<a class="usa-link" href="{{ url_for('main.edit_sms_provider_ratio') }}">Change priority</a>
{% 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', '% monthly traffic', 'Active', 'Last Updated', 'Updated By'],
field_headings_visible=True
) %}
{{ link_field(item.display_name, url_for('main.view_provider', provider_id=item.id)) }}
{{ optional_text_field(item.priority if item.active, default='None') }}
{{ text_field(item.monthly_traffic) }}
{{ text_field(item.active) }}
{{ optional_text_field(
item.updated_at|format_datetime_short if item.updated_at,
default='None'
) }}
{{ optional_text_field(item.created_by_name, default='None') }}
{% endcall %}
<h2 class="font-body-lg">Email</h2>
{% call(item, row_number) list_table(
email_providers,
caption="Email providers",
caption_visible=False,
empty_message='No email providers',
field_headings=['Provider', 'Active', 'Last Updated', 'Updated By'],
field_headings_visible=True
) %}
{{ link_field(item.display_name, url_for('main.view_provider', provider_id=item.id)) }}
{{ text_field(item.active) }}
{{ optional_text_field(
item.updated_at|format_datetime_short if item.updated_at,
default='None'
) }}
{{ optional_text_field(item.created_by_name, default='None') }}
{% endcall %}
<h2 class="font-body-lg">International SMS Providers</h2>
{% 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', 'Active', 'Last Updated', 'Updated By'],
field_headings_visible=True
) %}
{{ link_field(item.display_name, url_for('main.view_provider', provider_id=item.id)) }}
{{ text_field(item.active) }}
{{ optional_text_field(
item.updated_at|format_datetime_short if item.updated_at,
default='None'
) }}
{{ optional_text_field(item.created_by_name, default='None') }}
{% endcall %}
{% endblock %}