-
Notifications
You must be signed in to change notification settings - Fork 16
/
public_application.html
73 lines (63 loc) · 3.11 KB
/
public_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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{% extends "layouts/public_base.html" %}
{% block page_title %}Application form{% endblock %}
{% set form_id = "new_form" %}
{% set form_action = url_for("apply.public_application") %}
{% set formulaic_after = url_for("apply.application_thanks") %}
{% if obj %}
{% set form_action = url_for("apply.public_application", draft_id=obj.id) %}
{# {% set form_id = url_for("apply.public_application", draft_id=obj.id) %} #}
{% endif %}
{% set js_validation = True %}
{% set auto_save = config.get("PUBLIC_FORM_AUTOSAVE", 0) %}
{% set TAB1 = {"title": "Open access compliance", "fieldsets": ["basic_compliance"]} %}
{% set TAB2 = {"title": "About the Journal", "fieldsets": ["about_the_journal", "publisher", "society_or_institution"]} %}
{% set TAB3 = {"title": "Copyright & licensing", "fieldsets": ["licensing", "embedded_licensing", "copyright"]} %}
{% set TAB4 = {"title": "Editorial", "fieldsets": ["peer_review", "plagiarism", "editorial"]} %}
{% set TAB5 = {"title": "Business model", "fieldsets": ["apc", "apc_waivers", "other_fees"]} %}
{% set TAB6 = {"title": "Best practice", "fieldsets": ["archiving_policy", "deposit_policy", "unique_identifiers"]} %}
{% set FORM = [TAB1, TAB2, TAB3, TAB4, TAB5, TAB6] %}
{% block content scoped %}
<body id="apply">
<div class="container">
{% include "application_form/_backend_validation.html" %}
<div class="row">
<div class="col-md-8">
<section class="page-content">
<form id="{{ form_id }}"
data-context = "{{ formulaic_context.name }}"
class="application_form"
novalidate
action="{{ form_action }}"
method="post"
data-formulaic-after="{{ formulaic_after }}">
{% include "application_form/_fieldsets.html" %}
<div class="tab form-section">
{% include "application_form/07-review/index.html" %}
</div>
<p class="alert alert--danger" id="cannot-submit-invalid-fields" style="display: none">
You cannot submit the application because it contains some invalid fields. Please review your answers and try again.
</p>
{% include "application_form/_buttons.html" %}
{% if obj %}
<input type="hidden" name="id" value="{{ obj.id }}">
{% elif draft_data %}
<input type="hidden" name="id" value="{{ draft_data.id }}">
{% endif %}
</form>
</section>
</div>
<div class="col-md-4">
<div >
{% include "application_form/pagination_menu.html" %}
</div>
<div class="row">
{% include "application_form/aside_menu.html" %}
</div>
</div>
</div>
</div>
</body>
{% endblock %}
{% block extra_js_bottom scoped %}
{% include "application_form/js/_form_js.html" %}
{% endblock %}