2016-03-17 11:45:48 +00:00
|
|
|
{% extends "withnav_template.html" %}
|
|
|
|
|
|
2024-01-03 00:26:49 -08:00
|
|
|
{% from "components/table.html" import list_table, field, text_field, link_field, right_aligned_field_heading, hidden_field_heading, row_heading, notification_status_field, notification_carrier_field, notification_carrier_message_field %}
|
2016-06-28 09:21:46 +01:00
|
|
|
{% from "components/ajax-block.html" import ajax_block %}
|
2016-06-28 08:59:08 +01:00
|
|
|
|
2017-02-13 10:45:15 +00:00
|
|
|
{% block service_page_title %}
|
|
|
|
|
Dashboard
|
2016-03-17 11:45:48 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block maincolumn_content %}
|
2016-04-05 11:40:13 +01:00
|
|
|
|
2023-06-08 13:12:00 -04:00
|
|
|
<div class="dashboard margin-bottom-8">
|
2016-04-20 15:37:17 +01:00
|
|
|
|
2023-06-08 13:12:00 -04:00
|
|
|
<h1 class="usa-sr-only">Dashboard</h1>
|
2018-11-05 15:26:59 +00:00
|
|
|
{% if current_user.has_permissions('manage_templates') and not current_service.all_templates %}
|
2018-03-12 15:49:52 +00:00
|
|
|
{% include 'views/dashboard/write-first-messages.html' %}
|
2016-04-01 10:54:55 +01:00
|
|
|
{% endif %}
|
2016-03-17 11:45:48 +00:00
|
|
|
|
2020-04-08 17:55:53 +01:00
|
|
|
{{ ajax_block(partials, updates_url, 'upcoming') }}
|
2016-08-09 10:39:57 +01:00
|
|
|
|
2024-03-21 11:00:44 -04:00
|
|
|
<h2 class="font-body-2xl line-height-sans-2 margin-0">
|
2023-10-31 14:22:00 -04:00
|
|
|
Messages sent
|
2016-05-11 15:05:40 +01:00
|
|
|
</h2>
|
2016-06-28 08:59:08 +01:00
|
|
|
|
2024-06-17 17:34:37 -07:00
|
|
|
<!-- <button id="sevenDaysButton">7 Days</button>
|
|
|
|
|
<canvas id="myChart"></canvas> -->
|
2020-04-08 17:55:53 +01:00
|
|
|
{{ ajax_block(partials, updates_url, 'inbox') }}
|
2017-05-22 17:02:03 +01:00
|
|
|
|
2020-04-08 17:55:53 +01:00
|
|
|
{{ ajax_block(partials, updates_url, 'totals') }}
|
2016-06-28 08:59:08 +01:00
|
|
|
|
2020-04-08 17:55:53 +01:00
|
|
|
{{ ajax_block(partials, updates_url, 'template-statistics') }}
|
2024-01-19 11:44:25 -08:00
|
|
|
<h2 class="margin-top-4 margin-bottom-1">Recent Batches</h2>
|
2024-03-05 09:51:25 -05:00
|
|
|
<div class="table-wrapper">
|
2024-02-12 15:29:26 -08:00
|
|
|
<table class="usa-table usa-table--borderless job-table">
|
2024-01-25 15:32:44 -08:00
|
|
|
<thead class="table-field-headings">
|
|
|
|
|
<tr>
|
2024-02-12 16:33:41 -08:00
|
|
|
<th scope="col" class="table-field-heading-first">
|
2024-01-25 15:32:44 -08:00
|
|
|
<span>File name</span>
|
|
|
|
|
</th>
|
2024-02-12 16:33:41 -08:00
|
|
|
<th scope="col" class="table-field-heading">
|
2024-01-25 15:32:44 -08:00
|
|
|
<span>Template</span>
|
|
|
|
|
</th>
|
2024-02-12 16:33:41 -08:00
|
|
|
<th scope="col" class="table-field-heading">
|
2024-07-10 14:47:29 -07:00
|
|
|
<span>Job status</span>
|
2024-01-25 15:32:44 -08:00
|
|
|
</th>
|
2024-02-12 16:33:41 -08:00
|
|
|
<th scope="col" class="table-field-heading">
|
2024-01-25 15:32:44 -08:00
|
|
|
<span>Sender</span>
|
|
|
|
|
</th>
|
2024-02-12 16:33:41 -08:00
|
|
|
<th scope="col" class="table-field-heading">
|
2024-01-25 15:32:44 -08:00
|
|
|
<span># of Recipients</span>
|
|
|
|
|
</th>
|
2024-02-12 16:33:41 -08:00
|
|
|
<th scope="col" class="table-field-heading">
|
2024-01-25 15:32:44 -08:00
|
|
|
<span>Report</span>
|
|
|
|
|
</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
2024-07-24 15:03:51 -07:00
|
|
|
{% if jobs %}
|
|
|
|
|
{% for job in jobs[:5] %}
|
2024-02-12 15:29:26 -08:00
|
|
|
{% set notification = job.notifications[0] %}
|
2024-02-09 17:09:48 -08:00
|
|
|
<tr class="table-row" id="{{ job.job_id }}">
|
2024-02-12 16:33:41 -08:00
|
|
|
<td class="table-field file-name">
|
2024-07-24 15:03:51 -07:00
|
|
|
{{ job.original_file_name[:12] if job.original_file_name else 'Manually entered number'}}
|
2024-02-09 17:09:48 -08:00
|
|
|
<br>
|
|
|
|
|
<a class="usa-link file-list-filename" href="{{ job.view_job_link }}">View Batch</a>
|
2024-02-12 15:29:26 -08:00
|
|
|
</td>
|
2024-02-12 16:33:41 -08:00
|
|
|
<td class="table-field template">
|
2024-07-24 15:03:51 -07:00
|
|
|
{{ job.template_name }}
|
2024-02-12 15:29:26 -08:00
|
|
|
</td>
|
2024-02-12 16:33:41 -08:00
|
|
|
<td class="table-field time-sent">
|
2024-07-11 12:55:35 -07:00
|
|
|
{{ (job.processing_finished if job.processing_finished else job.processing_started
|
|
|
|
|
if job.processing_started else job.created_at)|format_datetime_table }}
|
2024-02-12 15:29:26 -08:00
|
|
|
</td>
|
2024-02-12 16:33:41 -08:00
|
|
|
<td class="table-field sender">
|
2024-07-24 15:03:51 -07:00
|
|
|
{{ job.created_by.name }}
|
2024-02-12 15:29:26 -08:00
|
|
|
</td>
|
2024-02-12 16:33:41 -08:00
|
|
|
<td class="table-field count-of-recipients">
|
2024-02-09 17:09:48 -08:00
|
|
|
{{ job.notification_count}}
|
2024-02-12 15:29:26 -08:00
|
|
|
</td>
|
2024-02-12 16:33:41 -08:00
|
|
|
<td class="table-field report">
|
2024-07-24 15:03:51 -07:00
|
|
|
{% if job.time_left != "Data no longer available" %}
|
2024-02-09 17:09:48 -08:00
|
|
|
<a class="usa-link file-list-filename" href="{{ job.download_link }}">Download</a>
|
|
|
|
|
<span class="usa-hint">{{ job.time_left }}</span>
|
|
|
|
|
{% elif job %}
|
|
|
|
|
<span>{{ job.time_left }}</span>
|
|
|
|
|
{% endif %}
|
2024-02-12 15:29:26 -08:00
|
|
|
</td>
|
2024-02-09 17:09:48 -08:00
|
|
|
</tr>
|
2024-02-12 15:29:26 -08:00
|
|
|
{% endfor %}
|
|
|
|
|
{% else %}
|
|
|
|
|
<tr class="table-row">
|
|
|
|
|
<td class="table-empty-message" colspan="10">No batched job messages found  (messages are kept for {{ service_data_retention_days }} days).</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% endif %}
|
2024-01-25 15:32:44 -08:00
|
|
|
</tbody>
|
|
|
|
|
</table>
|
2024-01-12 13:32:10 -08:00
|
|
|
</div>
|
|
|
|
|
|
2024-03-28 15:58:02 -04:00
|
|
|
<h2 class="margin-top-4 margin-bottom-1">Message count</h2>
|
2019-10-25 13:27:46 +01:00
|
|
|
{% if current_user.has_permissions('manage_service') %}
|
2023-11-16 12:02:59 -05:00
|
|
|
<h3 class='margin-bottom-0' id="current-year"></h3>
|
2020-04-08 17:55:53 +01:00
|
|
|
{{ ajax_block(partials, updates_url, 'usage') }}
|
2024-03-28 15:58:02 -04:00
|
|
|
<p class="margin-top-0">During the pilot period, each service has an allowance of 250,000 message parts. Once this allowance is met, the
|
|
|
|
|
application will stop delivering messages. There's no monthly charge, no setup fee, and no procurement cost.</p>
|
|
|
|
|
<p class="align-with-heading-copy">
|
|
|
|
|
What counts as 1 text message part?<br />
|
|
|
|
|
See <a class="usa-link" href="{{ url_for('.pricing') }}">pricing</a>.
|
|
|
|
|
</p>
|
2019-10-25 13:27:46 +01:00
|
|
|
{% endif %}
|
2016-04-20 15:37:17 +01:00
|
|
|
</div>
|
|
|
|
|
|
2016-03-17 11:45:48 +00:00
|
|
|
{% endblock %}
|