forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfirm_submission.html
More file actions
62 lines (47 loc) · 2.17 KB
/
confirm_submission.html
File metadata and controls
62 lines (47 loc) · 2.17 KB
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
{% extends "submit/submit_base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% block title %}Confirm submission of {{ submission.name }}{% endblock %}
{% block submit_content %}
{% origin %}
<h2>Confirm submission of {{ submission.name }}</h2>
{% if submission.state_id != "auth" and submission.state_id != "aut-appr" %}
{% if submission.state_id == "posted" %}
<p>The submission has already been posted. See the <a href="{% url "ietf.doc.views_doc.document_main" name=submission.name %}">draft here</a>.</p>
{% else %}
<p>The submission is not in a state where it can be confirmed.</p>
<p>Go to the <b><a href="{% url "ietf.submit.views.submission_status" submission_id=submission.pk %}">status page</a></b>
to see what has happened to it.</p>
{% endif %}
{% else %}
{% if not key_matched %}
<p class="error">Incorrect authorization key.</p>
<p>Double-check the link you followed. If everything fails, you can go to
the <a href="{% url "ietf.submit.views.submission_status" submission_id=submission.pk %}">status page</a>,
cancel the submission and try again.</p>
{% else %}
<p>Authorization key accepted.</p>
<p>Go to the <b><a href="{% url "ietf.submit.views.submission_status" submission_id=submission.pk %}">status page</a></b>
for submission details and links to the files which will be posted.</p>
<p>Please press the button below to finish posting of
<b>{{ submission.name }}-{{ submission.rev }}</b>.</p>
<form id="confirm-submission" method="post">
{% csrf_token %}
<button class="btn btn-primary" type="submit" name="action" value="confirm">Confirm submission & post draft</button>
<button class="btn btn-danger" type="submit" name="action" value="cancel" >Cancel submission</button>
</form>
{% endif %}
{% endif %}
{% endblock %}
{% block js %}
<script>
$(function () {
$("form.confirm-submission").submit(function() {
if (this.submittedAlready)
return false;
else
this.submittedAlready = true;
});
});
</script>
{% endblock %}