Skip to content

Commit 2ec91d3

Browse files
committed
Warn when putting a charter in an unusual state onto a telechat agenda
- Legacy-Id: 4842
1 parent 232652b commit 2ec91d3

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

ietf/templates/wgcharter/edit_telechat_date.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,25 @@
88
form.telechat-date td.actions {
99
padding-top: 1em;
1010
}
11+
.warning {
12+
font-size: 200%;
13+
color: red;
14+
padding-left: 2px;
15+
padding-bottom: 1em;
16+
}
1117
{% endblock %}
1218

1319
{% block content %}
1420
{% load ietf_filters %}
1521
<h1>Set Telechat Date for {{ doc.name }}</h1>
1622

23+
{% if not doc.get_state_slug in okstates %}
24+
<div class="warning">
25+
This charter is currently in the {{ doc.get_state.name }} state.
26+
<br/>
27+
Are you sure you want to put it on a telechat agenda?
28+
</div>
29+
{% endif %}
1730
<form class="telechat-date" action="" method="POST">
1831
<table>
1932
{{ form.as_table }}

ietf/wgcharter/views.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,9 @@ def telechat_date(request, name):
222222
dict(doc=doc,
223223
form=form,
224224
user=request.user,
225-
login=login),
225+
login=login,
226+
okstates=['intrev','extrev','iesgrev'],
227+
),
226228
context_instance=RequestContext(request))
227229

228230
class NotifyForm(forms.Form):

0 commit comments

Comments
 (0)