mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 19:03:30 -05:00
Add big numbers to dashboard
A suggestion of what high-level information users might need on the dashboard page.
This commit is contained in:
@@ -8,5 +8,8 @@ from ._jobs import jobs
|
||||
@main.route("/dashboard")
|
||||
def dashboard():
|
||||
return render_template(
|
||||
'views/dashboard.html', jobs=jobs
|
||||
'views/dashboard.html',
|
||||
jobs=jobs,
|
||||
free_text_messages_remaining=560,
|
||||
spent_this_month='0.00'
|
||||
)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{% extends "withnav_template.html" %}
|
||||
{% from "components/table.html" import table, field %}
|
||||
{% from "components/big-number.html" import big_number %}
|
||||
|
||||
{% block page_title %}
|
||||
GOV.UK Notify | Dashboard
|
||||
@@ -7,11 +8,26 @@
|
||||
|
||||
{% block maincolumn_content %}
|
||||
|
||||
<h1 class="heading-xlarge">Dashboard</h1>
|
||||
<h1 class="heading-xlarge">Service name</h1>
|
||||
|
||||
<ul class="grid-row job-totals">
|
||||
<li class="column-half">
|
||||
{{ big_number(
|
||||
free_text_messages_remaining,
|
||||
'free text messages remaining'
|
||||
)}}
|
||||
</li>
|
||||
<li class="column-half">
|
||||
{{ big_number(
|
||||
'£' + spent_this_month,
|
||||
'spent this month'
|
||||
)}}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
{% call(item) table(
|
||||
jobs[:3],
|
||||
caption="Recent activity",
|
||||
caption="Recent text messages",
|
||||
field_headings=['Job', 'File', 'Time', 'Status']
|
||||
) %}
|
||||
{% call field() %}
|
||||
|
||||
Reference in New Issue
Block a user