Files
notifications-admin/app/templates/views/jobs/jobs.html
Chris Hill-Scott 38b4b4d994 Fix misaligned upload button when no letter permission
We should add spacing to the right, so if the first button is missing
the second one still sits flush-left.
2020-03-25 15:28:54 +00:00

50 lines
1.9 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-medium">Uploads</h1>
<div class="dashboard">
{% if jobs %}
{% include 'views/dashboard/_jobs.html' %}
{% else %}
<p class="govuk-body">
You have not uploaded any files recently.
</p>
{% 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">
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 %}
{% endif %}
{{ previous_next_navigation(prev_page, next_page) }}
{% if current_user.has_permissions('send_messages') %}
<div class="js-stick-at-bottom-when-scrolling">
{% if current_service.has_permission('letter') %}
{{ govukButton({
"element": "a",
"text": "Upload a letter",
"href": url_for('.upload_letter', service_id=current_service.id),
"classes": "govuk-button--secondary govuk-!-margin-right-3"
}) }}
{% endif %}
{{ govukButton({
"element": "a",
"text": "Upload an emergency contact list",
"href": url_for('.upload_contact_list', service_id=current_service.id),
"classes": "govuk-button--secondary"
}) }}
</div>
{% endif %}
</div>
{% endblock %}