Skip to content

Commit 88d083f

Browse files
committed
Turn chartering process around so one submits the charter text before
putting the charter document into the review state and emailing the Secretariat. - Legacy-Id: 4404
1 parent 2e4ceb5 commit 88d083f

5 files changed

Lines changed: 10 additions & 8 deletions

File tree

ietf/templates/idrfc/document_charter.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@
5353

5454
{% else %}
5555
{% if group.state_id == "proposed" or group.state_id == "bof" %}
56-
- <a href="{% url charter_startstop_process name=doc.name option='initcharter' %}">Charter</a>
56+
- <a href="{% url charter_submit name=doc.name option='initcharter' %}">Start chartering</a>
5757
{% else %}
58-
- <a href="{% url charter_startstop_process name=doc.name option='recharter' %}">Recharter</a>
58+
- <a href="{% url charter_submit name=doc.name option='recharter' %}">Recharter</a>
5959
{% endif %}
6060
{% endif %}
6161

ietf/templates/wgcharter/change_state.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ <h1>{{ title }}</h1>
6363
<tr>
6464
<td colspan="2" class="actions">
6565
{% if option == "initcharter" or option == "recharter" %}
66-
<input type="submit" value="Save and continue to submission of charter text"/>
66+
<input type="submit" value="Initiate chartering"/>
6767
{% endif %}
6868
{% if not option or option == "abandon" %}
6969
<a href="{% url doc_view name=doc.name %}">Back</a>

ietf/wgcharter/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@
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'),
14+
url(r'^submit/(?P<option>initcharter|recharter)/$', "ietf.wgcharter.views.submit", name='charter_submit'),
1415
)

ietf/wgcharter/views.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ def change_state(request, name, option=None):
132132
e.desc = "Initial review time expires %s" % e.expires.strftime("%Y-%m-%d")
133133
e.save()
134134

135-
if option in ("initcharter", "recharter"):
136-
return redirect('charter_submit', name=charter.name)
137135
return redirect('doc_view', name=charter.name)
138136
else:
139137
if option == "recharter":
@@ -289,7 +287,7 @@ def save(self, wg, rev):
289287
destination.write(self.cleaned_data['content'])
290288

291289
@role_required('Area Director','Secretariat')
292-
def submit(request, name):
290+
def submit(request, name, option=None):
293291
charter = get_object_or_404(Document, type="charter", name=name)
294292
wg = charter.group
295293

@@ -328,7 +326,10 @@ def submit(request, name):
328326
charter.time = datetime.datetime.now()
329327
charter.save()
330328

331-
return HttpResponseRedirect(reverse('doc_view', kwargs={'name': charter.name}))
329+
if option:
330+
return redirect('charter_startstop_process', name=charter.name, option=option)
331+
else:
332+
return redirect("doc_view", name=charter.name)
332333
else:
333334
init = { "content": ""}
334335
c = charter

ietf/wginfo/edit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def diff(attr, name):
241241
wg.save()
242242

243243
if new_wg:
244-
return redirect('charter_startstop_process', name=wg.charter.name, option="initcharter")
244+
return redirect('charter_submit', name=wg.charter.name, option="initcharter")
245245

246246
return redirect('wg_charter', acronym=wg.acronym)
247247
else: # form.is_valid()

0 commit comments

Comments
 (0)