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
183 lines (183 loc) · 9.02 KB
/
view_feedback_pending.html
File metadata and controls
183 lines (183 loc) · 9.02 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
{% extends "nomcom/nomcom_private_base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load django_bootstrap5 %}
{% load static %}
{% load nomcom_tags person_filters %}
{% block pagehead %}{{ formset.media.css }}{% endblock %}
{% block subtitle %}- Feeback pending{% 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 class="alert alert-info my-3">
Please indicate which nominees and/or topics this feedback should be associated with.
</p>
{% for form in formset.forms %}
<dl class="row">
<dt class="col-sm-2">
Date
</dt>
<dd class="col-sm-10">
{{ form.instance.time|date:"r" }}
</dd>
<dt class="col-sm-2">
Author
</dt>
<dd class="col-sm-10">
{{ form.instance.author }}
</dd>
<dt class="col-sm-2">
Subject
</dt>
<dd class="col-sm-10">
{{ form.instance.subject }}
</dd>
<dt class="col-sm-2">
Type
</dt>
<dd class="col-sm-10">
<span class="badge bg-info">{{ form.feedback_type }}</span>
</dd>
<dt class="col-sm-2">
Feedback
</dt>
<dd class="col-sm-10">
<pre>{% decrypt form.instance.comments request year 1 %}</pre>
</dd>
<dt class="col-sm-2">
Information
</dt>
<dd class="col-sm-10">
{% bootstrap_form form %}
</dd>
</dl>
{% if not forloop.last %}<hr>{% endif %}
{% endfor %}
<input class="btn btn-primary"
type="submit"
value="Save feedback"
name="end">
<a class="btn btn-secondary float-end"
href="{% url 'ietf.nomcom.views.view_feedback_pending' year %}">Back</a>
{% else %}
<table class="table table-sm">
<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-sm table-striped">
<thead>
<tr>
<th>Date</th>
<th class="text-center" title="Unclassified">U</th>
{% for legend, t in type_dict.items %}<th class="text-center" title="{{ t.name }}">{{ legend }}</th>{% endfor %}
<th>Author</th>
<th>Subject</th>
<th></th>
</tr>
</thead>
<tbody>
{% for form in formset.forms %}
{% if form.errors %}
<tr class="table-warning">
<td colspan="5" class="info-message-error">Please correct the following errors</td>
</tr>
{% endif %}
<tr>
<td>{{ form.instance.time|date:"r" }}{{ form.id }}</td>
{% for choice in form.type.field.choices %}
<td class="text-center">
<input type="radio"
class="form-check-input"
name="{{ form.type.html_name }}"
value="{{ choice.0 }}"
{% if not choice.0 %}checked="checked"{% endif %}
title="{{ choice.1 }}">
</td>
{% endfor %}
<td>{% person_link form.instance.author %}</td>
<td>{{ form.instance.subject }}</td>
<td>
<button type="button"
class="btn btn-primary btn-sm"
data-bs-toggle="modal"
data-bs-target="#modal{{ form.instance.id }}">
View
</button>
<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-dialog-scrollable modal-xl">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="label{{ form.instance.id }}">{{ form.instance.subject }}</h5>
<button type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"></button>
</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-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<ul class="pagination pagination-sm mb-3">
<li class="page-item {% if not page.has_previous %}disabled{% endif %}">
<a class="page-link"
href="{% if not page.has_previous %}#{% else %}?page={{ page.previous_page_number }}{% endif %}">
<i class="bi bi-caret-left"></i>
</a>
</li>
<li class="page-item active">
<a class="page-link" href="?page={{ page.number }}">Page {{ page.number }} of {{ page.paginator.num_pages }}</a>
</li>
<li class="page-item {% if not page.has_next %}disabled{% endif %}">
<a class="page-link"
href="{% if not page.has_next %}#{% else %}?page={{ page.next_page_number }}{% endif %}">
<i class="bi bi-caret-right"></i>
</a>
</li>
</ul>
<input class="btn btn-primary" type="submit" value="Classify">
{% endif %}
</form>
{% else %}
<p class="alert alert-success my-3">
There is no pending feedback.
</p>
{% endif %}
{% endblock %}
{% block js %}{{ formset.media.js }}{% endblock %}