Skip to content

Commit 7538eab

Browse files
committed
Fix flow of approval of charters/announcement of the WG action based
on feedback from Cindy Morgan, now there's a link on the approval page to go to the edit page which sends you back upon saving, and the edit page doesn't provide a button to send the announcement since you should do that on the approve page (instead it provides a link). - Legacy-Id: 4474
1 parent 4cb42fd commit 7538eab

4 files changed

Lines changed: 16 additions & 5 deletions

File tree

ietf/templates/wgcharter/announcement_text.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,20 @@ <h1>WG {{ announcement }} announcement writeup for {{ charter.chartered_group.ac
1818

1919
<div class="actions">
2020
<a href="{{ back_url }}">Back</a>
21-
<input type="submit" name="save_text" value="Save WG {{ announcement }} announcement text" />
22-
<input type="submit" name="regenerate_text" value="Regenerate {{ announcement }} text" />
21+
<input type="submit" name="regenerate_text" value="Regenerate" />
22+
<input type="submit" name="save_text" value="Save" />
2323
</div>
2424

2525
{% load ietf_filters %}
2626
{% if user|has_role:"Secretariat" %}
27+
<h3>Secretariat actions</h3>
28+
2729
<div class="actions">
30+
{% if announcement == "action" %}
31+
<a href="{% url charter_approve name=charter.canonical_name %}">Go to charter approval page</a>
32+
{% else %}
2833
<input type="submit" name="send_text" value="Send WG {{ announcement }} announcement" />
34+
{% endif %}
2935
</div>
3036
{% endif %}
3137

ietf/templates/wgcharter/approve.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
{% endblock %}
2020

2121
{% block content %}
22-
<h1>Approve {{ charter.canonical_name }}</h1>
22+
<h1>Approve {{ charter.canonical_name }}-{{ charter.rev }}</h1>
2323

2424
<div>IETF announcement:</div>
2525

@@ -31,6 +31,7 @@ <h1>Approve {{ charter.canonical_name }}</h1>
3131

3232
<div class="actions">
3333
<a href="{% url doc_view name=charter.name %}">Back</a>
34+
<a href="{% url charter_edit_announcement name=charter.canonical_name,ann="action" %}?next=approve">Go to edit/regenerate announcement page</a>
3435
<input type="submit" value="Send out the announcement, close ballot and update revision"/>
3536
</div>
3637
</form>

ietf/wgcharter/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
url(r'^(?P<option>initcharter|recharter|abandon)/$', "ietf.wgcharter.views.change_state", name='charter_startstop_process'),
88
url(r'^telechat/$', "ietf.wgcharter.views.telechat_date", name='charter_telechat_date'),
99
url(r'^notify/$', "ietf.wgcharter.views.edit_notify", name='charter_edit_notify'),
10-
url(r'^(?P<ann>action|review)/$', "ietf.wgcharter.views.announcement_text"),
10+
url(r'^(?P<ann>action|review)/$', "ietf.wgcharter.views.announcement_text", name="charter_edit_announcement"),
1111
url(r'^ballotwriteupnotes/$', "ietf.wgcharter.views.ballot_writeupnotes"),
1212
url(r'^approve/$', "ietf.wgcharter.views.approve", name='charter_approve'),
1313
url(r'^submit/$', "ietf.wgcharter.views.submit", name='charter_submit'),

ietf/wgcharter/views.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,11 @@ def announcement_text(request, name, ann):
397397

398398
charter.time = e.time
399399
charter.save()
400-
return redirect('doc_writeup', name=charter.name)
400+
401+
if request.GET.get("next", "") == "approve":
402+
return redirect('charter_approve', name=charter.canonical_name())
403+
404+
return redirect('doc_writeup', name=charter.canonical_name())
401405

402406
if "regenerate_text" in request.POST:
403407
if ann == "action":

0 commit comments

Comments
 (0)