View to show all inbound sms numbers for the platform admin user.

This commit is contained in:
Rebecca Law
2017-08-15 17:04:57 +01:00
parent 27a9180d2a
commit 8aab08d4d2
6 changed files with 54 additions and 22 deletions

View File

@@ -1,6 +1,4 @@
{% extends "withnav_template.html" %}
{% from "components/table.html" import list_table, row, field, hidden_field_heading %}
{% from "components/page-footer.html" import page_footer %}
{% extends "views/platform-admin/_base_template.html" %}
{% block service_page_title %}
Inbound Numbers
@@ -8,7 +6,7 @@ Inbound Numbers
{% set table_headings = {
'field_headings': [
'', 'Number', 'Status', 'Service', 'Created on'
'Number', 'Status', 'Service', 'Created on'
],
'field_headings_visible': True,
'caption_visible': True
@@ -20,7 +18,7 @@ Inbound Numbers
font-weight:normal;
}
{% block maincolumn_content %}
{% block platform_admin_content %}
<div class="grid-row bottom-gutter">
<div class="column-two-thirds">
@@ -31,6 +29,7 @@ Inbound Numbers
</div>
<table class="inbound">
<col style="width:8%">
<col style="width:20%">
@@ -41,14 +40,12 @@ Inbound Numbers
<th>{{table_headings.field_headings[0]}}</th>
<th>{{table_headings.field_headings[1]}}</th>
<th>{{table_headings.field_headings[2]}}</th>
<th>{{table_headings.field_headings[3]}}</th>
</tr>
</thread>
<tbody>
{% for value in inbound_num_list.data: %}
<tr>
<th style="font-weight:normal;">{{loop.index}}</th>
<th style="font-weight:normal;">{{value.number}}</th>
<th style="font-weight:normal;">

View File

@@ -17,7 +17,8 @@
('Trial mode services', url_for('main.trial_services')),
('Providers', url_for('main.view_providers')),
('Organisations', url_for('main.organisations')),
('Letter jobs', url_for('main.letter_jobs'))
('Letter jobs', url_for('main.letter_jobs')),
('Inbound SMS numbers', url_for('main.inbound_sms_admin'))
] %}
<li>
<a href="{{ url }}">