forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocument_charter.html
More file actions
263 lines (263 loc) · 10 KB
/
document_charter.html
File metadata and controls
263 lines (263 loc) · 10 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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load static %}
{% load ietf_filters %}
{% load person_filters textfilters %}
{% block pagehead %}
<link rel="alternate"
type="application/atom+xml"
href="/feed/group-changes/{{ group.acronym }}/">
{% endblock %}
{% block title %}{{ doc.title }}{% endblock %}
{% block content %}
{% origin %}
{{ top|safe }}
{% include "doc/revisions_list.html" %}
<div id="timeline"></div>
{% if doc.rev|charter_major_rev != latest_rev|charter_major_rev %}
<div class="alert alert-warning my-3">
The information below is for an older
{% if doc.rev|charter_minor_rev %}
proposed
{% else %}
approved
{% endif %}
charter
</div>
{% else %}
{% if doc.rev != latest_rev %}
{% if doc.rev|charter_minor_rev %}
<div class="alert alert-warning my-3">
The information below is for an older version of the current proposed rechartering effort
</div>
{% else %}
<div class="alert alert-warning my-3">
The information below is for the currently approved charter, but newer proposed charter text exists
</div>
{% endif %}
{% else %}
{% if doc.rev|charter_minor_rev and doc.rev|charter_major_rev != '00' %}
<div class="alert alert-info my-3">
The information below is for a proposed recharter. The current approved charter is version {{ doc.rev|charter_major_rev }}
</div>
{% endif %}
{% endif %}
{% endif %}
<table class="table table-sm table-borderless">
<tbody class="meta border-top">
<tr>
<th class="col-1">Document</th>
<th class="col-2">
{% if doc.get_state_slug != "approved" %}
Proposed charter
{% else %}
Charter
{% endif %}
</th>
<td class="edit"></td>
<th class="col-9">
{{ group.name }} {{ group.type.name }}
<a href="{{ group.about_url }}">({{ group.acronym }})</a>
{% if snapshot %}<span class="badge bg-warning">Snapshot</span>{% endif %}
</th>
</tr>
<tr>
<td></td>
<th>Title</th>
<td class="edit">
{% if not snapshot and can_manage %}
{% doc_edit_button 'ietf.doc.views_charter.change_title' name=doc.name %}
{% endif %}
</td>
<td>{{ doc.title }}</td>
</tr>
<tr>
<td></td>
<th>Last updated</th>
<td class="edit"></td>
<td>{{ doc.time|date:"Y-m-d" }}</td>
</tr>
<tr>
<td></td>
<th>
<a href="{% url 'ietf.doc.views_help.state_help' type='charter' %}">State</a>
</th>
<td class="edit">
{% if not snapshot and can_manage %}
{% doc_edit_button 'ietf.doc.views_charter.change_state' name=doc.name %}
{% endif %}
</td>
<td>
{% if doc.get_state %}
<span title="{{ doc.get_state.desc }}" class="{% if doc.get_state.name|slugify == 'approved' %}text-success{% endif %}">{{ doc.get_state.name }}</span>
{% else %}
No document state
{% endif %}
{% if chartering == "initial" %}<span class="badge bg-info">Initial chartering</span>{% endif %}
{% if chartering == "rechartering" %}<span class="badge bg-info">Rechartering</span>{% endif %}
</td>
</tr>
</tbody>
<tbody class="meta border-top">
<tr>
<th>{{ group.type.name }}</th>
<th>State</th>
<td class="edit"></td>
<td>
<span class="{% if group.state.name|slugify == 'active' %}text-success{% endif %}">
{{ group.state.name }}
</span>
</td>
</tr>
</tbody>
<tbody class="meta border-top">
{% if group.type_id != "rg" %}
<tr>
<th>IESG</th>
<th>Responsible AD</th>
<td>
</td>
<td>
{% person_link group.ad_role.person %}
</td>
</tr>
<tr>
<th>
</th>
<th>
Charter edit AD
</th>
<td class="edit">
{% if can_manage %}
{% doc_edit_button 'ietf.doc.views_charter.edit_ad' name=doc.name %}
{% endif %}
</td>
<td>
{% person_link doc.ad %}
</td>
</tr>
{% endif %}
{% if not snapshot and chartering %}
<tr>
<td>
</td>
<th>
Telechat date
</th>
<td class="edit">
{% if can_manage %}
{% doc_edit_button 'ietf.doc.views_doc.telechat_date;charter' name=doc.name %}
{% endif %}
</td>
<td>
{% if not telechat %}
<span class="text-muted">(None)</span>
{% else %}
On agenda of {{ telechat.telechat_date|date:"Y-m-d" }} IESG telechat
{% endif %}
{% if ballot_summary %}
<br>
<i>{{ ballot_summary }}</i>
{% endif %}
</td>
</tr>
{% endif %}
<tr>
<td>
</td>
<th>
Send notices to
</th>
<td class="edit">
{% if can_manage %}
{% doc_edit_button 'ietf.doc.views_doc.edit_notify;charter' name=doc.name %}
{% endif %}
</td>
<td>
{{ doc.notify|default:"<span class='text-muted'>(None)</span>" }}
</td>
</tr>
</tbody>
</table>
<p class="buttonlist">
{% if not snapshot and can_manage %}
{% if chartering %}
{% url 'ietf.doc.views_charter.change_state' name=doc.name option='abandon' as abandon_url %}
{% if abandon_url %}
<a class="btn btn-danger" href="{{ abandon_url }}">
Abandon chartering
</a>
{% endif %}
{% if user|has_role:"Secretariat" %}
{% url 'ietf.doc.views_charter.approve' name=doc.name as approve_url %}
{% if approve_url %}
<a class="btn btn-primary" href="{{ approve_url }}">
Approve charter
</a>
{% endif %}
{% endif %}
{% else %}
{% if group.state_id == "proposed" or group.state_id == "bof" %}
{% url 'ietf.doc.views_charter.submit' name=doc.name option='initcharter' as start_url %}
{% if start_url %}
<a class="btn btn-primary" href="{{ start_url }}">
Start chartering
</a>
{% endif %}
{% else %}
{% url 'ietf.doc.views_charter.submit' name=doc.name option='recharter' as recharter_url %}
{% if recharter_url %}
<a class="btn btn-primary" href="{{ recharter_url }}">
Recharter
</a>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
</p>
{% if not snapshot and can_manage and chartering and group.state_id != "conclude" %}
<p>
<a class="btn btn-primary"
href="{% url 'ietf.doc.views_charter.submit' name=doc.name %}">
Change charter text
</a>
</p>
{% endif %}
{% if doc.rev != "" %}
<div class="card mt-5">
<div class="card-header">
{{ doc.canonical_name }}-{{ doc.rev }}
</div>
<div class="card-body">
<pre>{{ content|maybewordwrap|linkify|urlize_ietf_docs }}</pre>
</div>
</div>
{% endif %}
{% if not snapshot and chartering %}
<h2 class="my-3">
Proposed milestones
</h2>
{% if can_manage %}
<p>
<a class="btn btn-primary"
href="{% url 'ietf.group.milestones.edit_milestones;charter' group_type=doc.group.type_id acronym=doc.group.acronym %}">
Edit milestones
</a>
</p>
{% endif %}
{% if milestones %}
{% include "group/milestones.html" with heading=True %}
{% else %}
<p>
No milestones for charter found.
</p>
{% endif %}
{% endif %}
{% endblock %}
{% block js %}
<script src="{% static 'ietf/js/d3.js' %}">
</script>
<script src="{% static 'ietf/js/document_timeline.js' %}">
</script>
{% endblock %}