datatracker/ietf/templates/submit/edit_submission.html
Lars Eggert cc723ce449 More fixes.
- Legacy-Id: 19899
2022-01-31 19:17:50 +00:00

102 lines
3.9 KiB
HTML

{# bs5ok #}
{% extends "submit/submit_base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load static %}
{% load django_bootstrap5 %}
{% load submit_tags %}
{% load misc_filters %}
{% block pagehead %}
{{ block.super }}
{{ all_forms|merge_media:'css' }}
{% endblock %}
{% block title %}Adjust meta-data of submitted {{ submission.name }}{% endblock %}
{% block submit_content %}
{% origin %}
<div class="modal fade"
id="twopages"
tabindex="-1"
role="dialog"
aria-labelledby="twopageslabel"
aria-hidden="true">
<div class="modal-dialog modal-dialog-scrollable modal-xl">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="twopageslabel">First two pages of {{ submission.name }}-{{ submission.rev }}</h5>
<button type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"></button>
</div>
<div class="modal-body">{{ submission|two_pages_decorated_with_errors:errors }}</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<h2 class="mt-5">Adjust meta-data of submitted {{ submission.name }}</h2>
<table class="table table-sm table-striped">
<tr>
<th>Document</th>
<td>
{{ submission.name }}
<button class="btn btn-primary btn-sm float-end ms-1"
data-bs-toggle="modal"
data-bs-target="#twopages">
View first two pages
</button>
{% show_submission_files submission %}
</td>
</tr>
<tr>
<th>Submission date</th>
<td>{{ submission.submission_date }}</td>
</tr>
<tr>
<th>Group</th>
<td>
{{ submission.group|default:"Individual Submission" }}
{% if submission.group %}<a href="{{ doc.group.about_url }}">({{ submission.group.acronym|upper }})</a>{% endif %}
{% if errors.group %}
<p class="mt-1 mb-0 text-danger">
<b>{{ errors.group }}</b> (Note: the Secretariat will be notified of this)
</p>
{% endif %}
</td>
</tr>
<tr>
<th>File size</th>
<td>{{ submission.file_size|filesizeformat }}</td>
</tr>
</table>
<h3 class="mt-5">Adjust meta-data</h3>
{% if form_errors %}<div class="alert alert-danger my-3">Please fix the errors in the form below.</div>{% endif %}
<form class="idsubmit" method="post">
{% csrf_token %}
{% bootstrap_form edit_form %}
{% include "submit/submitter_form.html" %}
{% include "submit/replaces_form.html" %}
{% for form in author_forms %}
<div {% if forloop.last %}id="cloner"{% endif %}>
<h3 class="mt-5">Author {{ forloop.counter }}</h3>
{% bootstrap_form form %}
<input type="hidden" name="authors-prefix" value="{{ form.prefix }}">
</div>
{% endfor %}
<input class="btn btn-primary"
type="button"
value="Add another author"
id="add-author">
<br>
<input class="btn btn-primary mt-3"
type="submit"
value="Submit for manual posting">
</form>
<p>
{% include "submit/problem-reports-footer.html" %}
</p>
{% endblock %}
{% block js %}
{{ all_forms|merge_media:'js' }}<script src="{% static "ietf/js/draft-submit.js" %}"></script>
{% endblock %}