Skip to content

Commit 7d0fd4c

Browse files
committed
Merged in [11859] from rjsparks@nostrum.com:
Put WG summary information on the rechartering page. Fixes ietf-tools#2000. - Legacy-Id: 11881 Note: SVN reference [11859] has been migrated to Git commit b6978de
2 parents 2c484d5 + b6978de commit 7d0fd4c

2 files changed

Lines changed: 72 additions & 1 deletion

File tree

ietf/doc/views_charter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
from ietf.utils.mail import send_mail_preformatted
3333
from ietf.utils.textupload import get_cleaned_text_file_content
3434
from ietf.group.mails import email_admin_re_charter
35+
from ietf.group.views import fill_in_charter_info
3536

3637
class ChangeStateForm(forms.Form):
3738
charter_state = forms.ModelChoiceField(State.objects.filter(used=True, type="charter"), label="Charter state", empty_label=None, required=False)
@@ -446,6 +447,8 @@ def submit(request, name, option=None):
446447
except IOError:
447448
pass
448449
form = UploadForm(initial=init)
450+
fill_in_charter_info(group)
451+
449452
return render(request, 'doc/charter/submit.html', {
450453
'form': form,
451454
'next_rev': next_rev,

ietf/templates/doc/charter/submit.html

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,75 @@
1010

1111
{% block content %}
1212
{% origin %}
13-
<h1>Charter submission<br><small>{{ group.acronym }} {{ group.type.name }}</small></h1>
13+
<h1>Charter submission</h1>
14+
15+
<table class="table table-condensed">
16+
<tbody class="meta">
17+
<tr>
18+
<th>{{ group.type.name }}</th>
19+
<th>Name</th>
20+
<td>{{ group.name }}</td>
21+
</tr>
22+
23+
<tr>
24+
<td></td>
25+
<th>Acronym</th>
26+
<td>{{ group.acronym }}</td>
27+
</tr>
28+
29+
<tr>
30+
<td></td>
31+
{% if group.parent and group.parent.type_id == "area" %}
32+
<th>{{ group.parent.type.name }}</th>
33+
<td>{{ group.parent.name }} ({{ group.parent.acronym }})</td>
34+
{% else %}
35+
<th></th><td></td>
36+
{% endif %}
37+
</tr>
38+
<tr>
39+
<td></td>
40+
<th>State</th>
41+
<td>
42+
{{ group.state.name }}
43+
{% if requested_close %}
44+
<div class="label label-info">In the process of being closed</div>
45+
{% endif %}
46+
</td>
47+
</tr>
48+
</tbody>
49+
<tbody class="meta">
50+
{% for slug, label, roles in group.personnel %}
51+
<tr>
52+
{% if forloop.first %}
53+
<th>Personnel</th>
54+
{% else %}
55+
<td></td>
56+
{% endif %}
57+
<th>{{ label }}</th>
58+
<td>
59+
60+
61+
{% for r in roles %}
62+
<span class="fa fa-envelope-o"></span>
63+
<a href="mailto:{{ r.email.address }}">{{ r.person.plain_name }}</a>
64+
<br>
65+
{% endfor %}
66+
</td>
67+
</tr>
68+
{% endfor %}
69+
</tbody>
70+
71+
{% if group.list_email %}
72+
<tbody class="meta">
73+
<tr>
74+
<th>Mailing list</th>
75+
<th>Address</th><td>{{ group.list_email|urlize }}</td>
76+
</tr>
77+
<tr><td></td><th>To subscribe</th><td>{{ group.list_subscribe|urlize }}</td></tr>
78+
<tr><td></td><th>Archive</th><td>{{ group.list_archive|urlize }}</td></tr>
79+
</tbody>
80+
{% endif %}
81+
</table>
1482

1583
<p class="alert alert-info">The text will be submitted as <b>{{ name }}-{{ next_rev }}</b>.</p>
1684

0 commit comments

Comments
 (0)