forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit_submission.html
More file actions
99 lines (99 loc) · 3.86 KB
/
edit_submission.html
File metadata and controls
99 lines (99 loc) · 3.86 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{% 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="{{ submission.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>
{% include "submit/problem-reports-footer.html" %}
{% endblock %}
{% block js %}
{{ all_forms|merge_media:'js' }}<script src="{% static "ietf/js/draft-submit.js" %}"></script>
{% endblock %}