-
Notifications
You must be signed in to change notification settings - Fork 16
/
maned_application.html
46 lines (39 loc) · 1.97 KB
/
maned_application.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{% extends "admin/admin_base.html" %}
{% set form_id = "maned_form" %}
{% set formulaic_after = url_for("admin.application", application_id=obj.id) %}
{% set form_action = url_for("admin.application", application_id=obj.id) %}
{% set js_validation = True %}
{% set auto_save = 0 %}
{% set notabs = true %}
{% set diff_table = true %}
{% set quick_reject = true %}
{% block page_title %}{% if obj.application_type == constants.APPLICATION_TYPE_UPDATE_REQUEST %}Update Request{% else %}Application{% endif %}: {{ obj.bibjson().title }}{% endblock %}
{% block body_id %}apply{% endblock %}
{% block content scoped %}
{% include "application_form/editorial_form_body.html" %}
{% if obj.application_status not in ["accepted", "rejected"] %}
{% set fs = formulaic_context.fieldset("quick_reject") %}
<div class="modal" id="modal-quick_reject" tabindex="-1" role="dialog" aria-labelledby="modalLabel-quick_reject">
<div class="modal__dialog" role="document">
<header class="flex-space-between modal__heading">
<h3 id="modalLabel-quick_reject" class="modal__title">
“{{ fs.label | safe }}”
</h3>
<span type="button" data-dismiss="modal" class="type-01"><span class="sr-only">Close</span>×</span>
</header>
<p>{{ obj.id }}</p>
<form class="form form--compact" method="post" data-id="{{ obj.id }}" action="{{ url_for('admin.application_quick_reject', application_id=obj.id) }}" id="application_quick_reject_form">
{% for f in fs.fields() %}
{% set field_template = f.template %}
{% include field_template %}
{% endfor %}
<button class="button button--primary" type="submit" id="submit_quick_reject">Quick reject</button>
</form>
</div>
</div>
{% endif %}
{% include "includes/_hotjar.html" %}
{% endblock %}
{% block extra_js_bottom scoped %}
{% include "application_form/js/_form_js.html" %}
{% endblock %}