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
240 lines (211 loc) · 6.83 KB
/
document_charter.html
File metadata and controls
240 lines (211 loc) · 6.83 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
{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load static %}
{% load ietf_filters %}
{% block pagehead %}
<link rel="alternate" type="application/atom+xml" href="/feed/group-changes/{{ group.acronym }}/">
<script src="{% static 'd3/d3.min.js' %}"></script>
<script src="{% static 'jquery/jquery.min.js' %}"></script>
<script src="{% static 'ietf/js/document_timeline.js' %}"></script>
{% endblock %}
{% block title %}{{ doc.title }}{% endblock %}
{% block content %}
{% origin %}
{{ top|safe }}
{% include "doc/revisions_list.html" %}
<div id="timeline"></div>
<table class="table table-condensed">
<thead id="message-row">
<tr>
{% if doc.rev|charter_major_rev != latest_rev|charter_major_rev %}
<th colspan="4" class="alert-warning">The information below is for an older {% if doc.rev|charter_minor_rev %}proposed{% else %}approved{% endif %} charter</th>
{% else %}
{% if doc.rev != latest_rev %}
{% if doc.rev|charter_minor_rev %}
<th colspan="4" class="alert-warning">The information below is for an older version of the current proposed rechartering effort</th>
{% else %}
<th colspan="4" class="alert-info">The information below is for the currently approved charter, but newer proposed charter text exists</th>
{% endif %}
{% else %}
{% if doc.rev|charter_minor_rev and doc.rev|charter_major_rev != '00' %}
<th colspan="4" class="alert-info">The information below is for a proposed recharter. The current approved charter is version {{ doc.rev|charter_major_rev }}</th>
{% else %}
<th colspan="4"></th>
{% endif %}
{% endif %}
{% endif %}
</tr>
</thead>
<tbody class="meta">
<tr>
<th>Document</th>
<th>
{% if doc.get_state_slug != "approved" %}
Proposed charter
{% else %}
Charter
{% endif %}
</th>
<td class="edit"></td>
<td>
{{ group.name }} {{ group.type.name }}
<a href="{{ group.about_url }}">({{ group.acronym }})</a>
{% if snapshot %}
<span class="label label-warning">Snapshot</span>
{% endif %}
</td>
</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 }}">{{ doc.get_state.name }}</span>
{% else %}
No document state
{% endif %}
{% if chartering == "initial" %}
<span class="label label-info">Initial chartering</span>
{% endif %}
{% if chartering == "rechartering" %}
<span class="label label-info">Rechartering</span>
{% endif %}
</td>
</tr>
</tbody>
<tbody class="meta">
<tr>
<th>{{ group.type.name }}</th>
<th>State</th>
<td class="edit"></td>
<td>{{ group.state.name }}</td>
</tr>
</tbody>
<tbody class="meta">
{% if group.type_id != "rg" %}
<tr>
<th>IESG</th>
<th>Responsible AD</th>
<td></td>
<td>
{{ group.ad_role.person.plain_name|default:"(None)" }}
</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>
{{ doc.ad|default:"(None)" }}
</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 %}
(None)
{% 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:"(None)" }}
</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-default" 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-default" href="{{ recharter_url }}">Recharter</a>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
</p>
<h2>Charter<br><small>{{ doc.canonical_name }}-{{ doc.rev }}</small></h2>
{% if not snapshot and can_manage and chartering and group.state_id != "conclude" %}
<p><a class="btn btn-default" href="{% url 'ietf.doc.views_charter.submit' name=doc.name %}">Change charter text</a></p>
{% endif %}
{% if doc.rev != "" %}
{# this content is already wrapped in 'pre' #}
{{ content|sanitize|maybewordwrap|safe }}
{% endif %}
{% if not snapshot and chartering %}
<h2>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" %}
{% else %}
<p>No milestones for charter found.</p>
{% endif %}
{% endif %}
{% endblock %}