Skip to content

Commit bd9b28d

Browse files
author
Martin Qvist
committed
New abandon event description, renamed some buttons
- Legacy-Id: 3439
1 parent a1a3949 commit bd9b28d

4 files changed

Lines changed: 21 additions & 4 deletions

File tree

ietf/templates/wgcharter/by_area.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<h1>Working Groups for {{ area_name }}</h1>
1010

1111
<p>
12-
<span id="create_wg" class="yui-button yui-link-button" style="margin-left:2px;"><span class="first-child"><a href="/wgcharter/create/">Create WG</a></span></span>
12+
<span id="create_wg" class="yui-button yui-link-button" style="margin-left:2px;"><span class="first-child"><a href="/wgcharter/create/">Start new WG charter effort</a></span></span>
1313
</p>
1414

1515
{% if not recs %}

ietf/templates/wgcharter/in_process.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<h1>Working Groups in IESG process</h1>
1010

1111
<p>
12-
<span id="create_wg" class="yui-button yui-link-button" style="margin-left:2px;"><span class="first-child"><a href="/wgcharter/create/">Create WG</a></span></span>
12+
<span id="create_wg" class="yui-button yui-link-button" style="margin-left:2px;"><span class="first-child"><a href="/wgcharter/create/">Start new WG charter effort</a></span></span>
1313
</p>
1414

1515
{% if not recs %}

ietf/wgcharter/views_edit.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,19 @@ def change_state(request, name, option=None):
9797
charter.charter_state = charter_state
9898
charter.rev = charter_rev
9999

100-
e = log_state_changed(request, charter, login, prev, comment)
100+
if option != "abandon":
101+
e = log_state_changed(request, charter, login, prev, comment)
102+
else:
103+
# Special log for abandoned efforts
104+
e = DocEvent(doc=charter, by=login)
105+
e.type = "changed_document"
106+
e.desc = u"IESG has abandoned the chartering effort and reverted to the previously approved charter"
107+
108+
if comment:
109+
e.desc += "<br>%s" % comment
110+
111+
e.save()
112+
101113
charter.time = datetime.now()
102114
charter.save()
103115
else:

static/js/wg-change-state.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
jQuery(document).ready(function () {
2+
23
function setMessageDraft(state) {
34
if (jQuery("#id_state").val() == "conclude") {
45
jQuery("#id_message").val("");
@@ -19,6 +20,10 @@ jQuery(document).ready(function () {
1920
setMessageDraft(jQuery("#id_charter_state").val());
2021
});
2122

22-
jQuery("#id_charter_state").click();
23+
var prev_mesg = jQuery("#id_message").val();
24+
25+
if (prev_mesg == "") {
26+
jQuery("#id_charter_state").click();
27+
}
2328

2429
});

0 commit comments

Comments
 (0)