mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 15:28:25 -04:00
Scheduled jobs push everything else on the dashboard down, which makes them very prominent. This is exacerbated by people scheduling more jobs simultaneously than we expected when we originally designed the feature. We also want to remove all jobs from the dashboard, in favour of putting them on the uploads page. So this commit replaces them with one of our new dashboard banners (used for received text messages in returned letters) which summarises: - how many scheduled jobs you have - when the first one is going out (i.e. how long you have to stop it, if you need to)
40 lines
1.3 KiB
HTML
40 lines
1.3 KiB
HTML
{% from "components/previous-next-navigation.html" import previous_next_navigation %}
|
||
{% extends "withnav_template.html" %}
|
||
{% from "components/button/macro.njk" import govukButton %}
|
||
|
||
{% block service_page_title %}
|
||
Uploads
|
||
{% endblock %}
|
||
|
||
{% block maincolumn_content %}
|
||
<h1 class="heading-large">Uploads</h1>
|
||
<div class="dashboard">
|
||
{% if show_scheduled_jobs %}
|
||
{% with hide_heading = True %}
|
||
{% include 'views/jobs/_scheduled.html' %}
|
||
{% endwith %}
|
||
{% endif %}
|
||
{% if jobs %}
|
||
{% include 'views/dashboard/_jobs.html' %}
|
||
{% endif %}
|
||
{% if not jobs and not show_scheduled_jobs %}
|
||
{#
|
||
`_jobs.html` will show the ‘You have no jobs’ message when
|
||
passed an empty list of jobs
|
||
#}
|
||
{% include 'views/dashboard/_jobs.html' %}
|
||
{% endif %}
|
||
{{ previous_next_navigation(prev_page, next_page) }}
|
||
{% if current_service.can_upload_letters and current_user.has_permissions('send_messages') %}
|
||
<div class="js-stick-at-bottom-when-scrolling">
|
||
{{ govukButton({
|
||
"element": "a",
|
||
"text": "Upload a letter",
|
||
"href": url_for('.upload_letter', service_id=current_service.id),
|
||
"classes": "govuk-button--secondary"
|
||
}) }}
|
||
</div>
|
||
{% endif %}
|
||
</div>
|
||
{% endblock %}
|