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
97 lines (79 loc) · 2.92 KB
/
edit_submission.html
File metadata and controls
97 lines (79 loc) · 2.92 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
{% extends "submit/submit_base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load static %}
{% load bootstrap3 %}
{% 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-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="twopageslabel">First two pages of {{ submission.name }}-{{ submission.rev }}</h4>
</div>
<div class="modal-body">
{{ submission|two_pages_decorated_with_errors:errors }}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<h2>Adjust meta-data of submitted {{ submission.name }}</h2>
<table class="table table-condensed table-striped">
<tr>
<th>Document</th>
<td>
{{ submission.name }}
<button class="btn btn-default btn-xs pull-right" data-toggle="modal" data-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 errors.group %}<p class="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>Adjust meta-data</h3>
{% if form_errors %}
<div class="alert alert-danger">
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>Author {{ forloop.counter }}</h3>
{% bootstrap_form form %}
<input type="hidden" name="authors-prefix" value="{{ form.prefix }}">
</div>
{% endfor %}
{% buttons %}
<input class="btn btn-default" type="button" value="Add another author" id="add-author">
<input class="btn btn-primary" type="submit" value="Submit for manual posting">
{% endbuttons %}
</form>
<p>
{% include "submit/problem-reports-footer.html" %}
</p>
{% endblock %}
{% block js %}
{{ all_forms|merge_media:'js' }}
{% endblock %}