Add temporary link to change priority page

Lets you get to the new page without having to think about the design
of the existing index page.
This commit is contained in:
Chris Hill-Scott
2019-12-04 10:30:40 +00:00
parent 8122fa1d5d
commit 57a602c2ab
2 changed files with 5 additions and 7 deletions

View File

@@ -12,6 +12,8 @@ Providers
<h2 class="heading-medium">SMS</h2>
<a href="{{ url_for('main.edit_sms_provider_ratio') }}">Change priority</a>
{% call(item, row_number) list_table(
domestic_sms_providers,
caption="Domestic SMS providers",
@@ -21,7 +23,7 @@ Providers
field_headings_visible=True
) %}
{{ link_field(item.display_name, url_for('main.view_provider', provider_id=item.id)) }}
{{ text_field(item.display_name) }}
{{ text_field(item.priority) }}
@@ -37,8 +39,6 @@ Providers
{{ optional_text_field(item.created_by_name, default='None') }}
{{ link_field('change', url_for('main.edit_provider', provider_id=item.id)) }}
{% endcall %}
<h2 class="heading-medium">Email</h2>

View File

@@ -174,26 +174,24 @@ def test_should_show_all_providers(
domestic_sms_first_row = domestic_sms_table.tbody.find_all('tr')[0]
table_data = domestic_sms_first_row.find_all('td')
assert table_data[0].find_all("a")[0]['href'] == '/provider/6005e192-4738-4962-beec-ebd982d0b03f'
assert not table_data[0].find_all("a")
assert table_data[0].text.strip() == "Domestic SMS Provider"
assert table_data[1].text.strip() == "1"
assert table_data[2].text.strip() == "42"
assert table_data[3].text.strip() == "True"
assert table_data[4].text.strip() == "16 January at 3:20pm"
assert table_data[5].text.strip() == "Test User"
assert table_data[6].find_all("a")[0]['href'] == '/provider/6005e192-4738-4962-beec-ebd982d0b03f/edit'
domestic_sms_second_row = domestic_sms_table.tbody.find_all('tr')[1]
table_data = domestic_sms_second_row.find_all('td')
assert table_data[0].find_all("a")[0]['href'] == '/provider/0bd529cd-a0fd-43e5-80ee-b95ef6b0d51f'
assert not table_data[0].find_all("a")
assert table_data[0].text.strip() == "Second Domestic SMS Provider"
assert table_data[1].text.strip() == "2"
assert table_data[2].text.strip() == "58"
assert table_data[3].text.strip() == "True"
assert table_data[4].text.strip() == "None"
assert table_data[5].text.strip() == "None"
assert table_data[6].find_all("a")[0]['href'] == '/provider/0bd529cd-a0fd-43e5-80ee-b95ef6b0d51f/edit'
domestic_email_first_row = domestic_email_table.tbody.find_all('tr')[0]
domestic_email_table_data = domestic_email_first_row.find_all('td')