forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathview_feedback_pending.html
More file actions
184 lines (153 loc) · 5.27 KB
/
view_feedback_pending.html
File metadata and controls
184 lines (153 loc) · 5.27 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
{% extends "nomcom/nomcom_private_base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load bootstrap3 %}
{% load static %}
{% load nomcom_tags %}
{% block pagehead %}
{{ formset.media.css }}
{% endblock %}
{% block subtitle %} - Feeback pending{% endblock %}
{% block morecss %}
.nominee_multi_select { resize: vertical; }
{% endblock %}
{% block nomcom_content %}
{% origin %}
<h2>Feedback pending from email list</h2>
{% if formset.forms %}
<form method="post">
{% csrf_token %}
{% if extra_ids %}
<input type="hidden" name="extra_ids" value="{{ extra_ids }}">
{% endif %}
{% bootstrap_form formset.management_form %}
{% if extra_step %}
<p>Please indicate which nominees and/or topics this feedback should be associated with.</p>
{% for form in formset.forms %}
<dl class="dl-horizontal">
<dt>Date</dt>
<dd>{{ form.instance.time|date:"r" }}</dd>
<dt>Author</dt>
<dd>{{ form.instance.author }}</dd>
<dt>Subject</dt>
<dd>{{ form.instance.subject }}</dd>
<dt>Type</dt>
<dd><span class="label label-info">{{ form.feedback_type }}</span></dd>
<dt>Feedback</dt>
<dd>
<pre>{% decrypt form.instance.comments request year 1 %}</pre>
</dd>
<dt>Information</dt>
<dd>
{% bootstrap_form form %}
</dd>
</dl>
{% if not forloop.last %}<hr>{% endif %}
{% endfor %}
{% buttons %}
<input class="btn btn-primary" type="submit" value="Save feedback" name="end">
<a class="btn btn-default" href="{% url 'ietf.nomcom.views.view_feedback_pending' year %}">Cancel & leave unclassified</a>
{% endbuttons %}
{% else %}
<table class="table table-condensed">
<thead>
<tr><th>Code</th><th>Explanation</th></tr>
</thead>
<tbody>
<tr><th>U</th><td>Unclassified</td></tr>
{% for legend, t in type_dict.items %}
<tr>
<th>{{ legend }}</th>
<td>{{ t.name }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<table class="table table-condensed table-striped">
<thead>
<tr>
<th>Date</th>
<th>U</th>
{% for t in type_dict.keys %}
<th>{{ t }}</th>
{% endfor %}
<th>Author</th>
<th>Subject</th>
<th></th>
</tr>
</thead>
<tbody>
{% for form in formset.forms %}
{% if form.errors %}
<tr>
<td colspan="5" class="info-message-error">Please correct the following errors</td>
</tr>
{% endif %}
<tr>
<td>{{ form.instance.time|date:"r" }}</td>
{{ form.id }}
{% for choice in form.type.field.choices %}
<td>
<input type="radio" name="{{ form.type.html_name }}" value="{{ choice.0 }}" {% if not choice.0 %}checked="checked"{% endif %} title="{{ choice.1 }}">
</td>
{% endfor %}
<td>{{ form.instance.author }}</td>
<td>{{ form.instance.subject }}</td>
<td>
<button type="button" class="btn btn-default btn-xs" data-toggle="modal" data-target="#modal{{ form.instance.id }}">View</button>
</td>
</tr>
<div class="modal fade" id="modal{{ form.instance.id }}" tabindex="-1" role="dialog" aria-labelledby="label{{ form.instance.id }}" 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">
<span aria-hidden="true">×</span>
<span class="sr-only">Close</span>
</button>
<h4 class="modal-title" id="label{{ form.instance.id }}">
{{ form.instance.subject }}
</h4>
</div>
<div class="modal-body">
<pre>{% decrypt form.instance.comments request year 1 %}</pre>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</tr>
{% endfor %}
</tbody>
</table>
<div class="pagination text-center col-md-12 col-sm-12">
<span class="step-links">
{% if page.has_previous %}
<a href="?page={{ page.previous_page_number }}">< </a>
{% else %}
|
{% endif %}
<span class="current">
Page {{ page.number }} of {{ page.paginator.num_pages }}
</span>
{% if page.has_next %}
<a href="?page={{ page.next_page_number }}"> ></a>
{% else %}
|
{% endif %}
</span>
</div>
{% buttons %}
<input class="btn btn-primary" type="submit" value="Classify">
{% endbuttons %}
{% endif %}
</form>
{% else %}
<p>There is no pending feedback.</p>
{% endif %}
{% endblock %}
{% block js %}
{{ formset.media.js }}
{% endblock %}