63 lines
2.2 KiB
HTML
63 lines
2.2 KiB
HTML
{% 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 %}
|