Skip to content
Snippets Groups Projects
Commit f3c01a3a authored by Chris Lawton's avatar Chris Lawton Committed by Fredrik Jonsson
Browse files

add skip report confirmation modal (#1657)

* add skip report confirmation modal
parent 1242ac5c
No related branches found
No related tags found
No related merge requests found
......@@ -22,10 +22,25 @@
{% endif %}
{% if request.user.is_apply_staff and report.can_submit %}
<form action="{% url "apply:projects:reports:skip" pk=report.pk %}" method="post">
{% csrf_token %}
<input type="submit" value="Skip" class="btn data-block__action-link"></input>
</form>
<input data-fancybox data-src="#skip-report-{{report.id}}" type="button" value="Skip" class="btn data-block__action-link"></input>
<!-- Skip report confirmation modal -->
<div class="modal" id="skip-report-{{report.id}}">
<h4 class="modal__header-bar modal__header-bar--no-bottom-space">Skip report</h4>
<div class="modal__copy">
<p>You're skipping the report for <b>{{report.start_date}}</b> &ndash; <b>{{report.end_date}}</b></p>
<p>This will result in a gap in reporting for the project. You can undo this at any time.</p>
</div>
<form action="{% url "apply:projects:reports:skip" pk=report.pk %}" method="post">
{% csrf_token %}
<div class="modal__buttons">
<input type="submit" value="Continue" class="button button--primary button--submit"></input>
<button data-fancybox-close class="button button--submit button--white">Cancel</button>
</div>
</form>
</div>
{% endif %}
</div>
</li>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment