mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-17 21:20:32 -04:00
Tidy up the jobs template
This commit is contained in:
@@ -9,26 +9,22 @@
|
||||
{% block maincolumn_content %}
|
||||
<h1 class="heading-medium">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 %}
|
||||
{% else %}
|
||||
<p class="govuk-body">
|
||||
You have not uploaded any files recently.
|
||||
</p>
|
||||
{% if current_service.has_permission('upload_letters') %}
|
||||
{% if current_user.has_permissions('send_messages') %}
|
||||
{% if current_service.has_permission('letter') %}
|
||||
<p class="govuk-body">
|
||||
Upload a letter and Notify will print, pack and post it for you.
|
||||
</p>
|
||||
{% endif %}
|
||||
<p class="govuk-body">
|
||||
Upload a letter and Notify will print, pack and post it for you.
|
||||
To upload a list of contact details, first <a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('main.choose_template', service_id=current_service.id) }}">choose a template</a>.
|
||||
</p>
|
||||
{% endif %}
|
||||
<p class="govuk-body">
|
||||
To upload a list of contact details, first <a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('main.choose_template', service_id=current_service.id) }}">choose a template</a>.
|
||||
</p>
|
||||
{% endif %}
|
||||
{{ previous_next_navigation(prev_page, next_page) }}
|
||||
{% if current_user.has_permissions('send_messages') %}
|
||||
|
||||
@@ -65,11 +65,11 @@ def test_all_users_have_upload_contact_list(
|
||||
|
||||
|
||||
@pytest.mark.parametrize('extra_permissions, expected_empty_message', (
|
||||
(['letter'], (
|
||||
([], (
|
||||
'You have not uploaded any files recently. '
|
||||
'To upload a list of contact details, first choose a template.'
|
||||
)),
|
||||
(['letter', 'upload_letters'], (
|
||||
(['letter'], (
|
||||
'You have not uploaded any files recently. '
|
||||
'Upload a letter and Notify will print, pack and post it for you. '
|
||||
'To upload a list of contact details, first choose a template.'
|
||||
|
||||
Reference in New Issue
Block a user