Fix bug in hiding "external review needed" checkbox.

- Legacy-Id: 4358
This commit is contained in:
Ole Laursen 2012-05-03 15:33:08 +00:00
parent 9717202fed
commit 7c8d018ad4
2 changed files with 3 additions and 2 deletions

View file

@ -48,7 +48,7 @@ form.change-state .actions {
{{ field.errors }}
</td>
</tr>
{% if field.name == "charter_state" and not option == "initcharter" %}
{% if field.name == "charter_state" and chartering_type == "rechartering" %}
<tr class="ballot-wo-extern" style="display:none">
<td></td>
<td><label><input name="ballot_wo_extern" type="checkbox" /> Ask whether external review can be skipped in ballot</label></td>

View file

@ -16,7 +16,7 @@ from ietf.utils.mail import send_mail_text, send_mail_preformatted
from ietf.ietfauth.decorators import has_role, role_required
from ietf.iesg.models import TelechatDate
from ietf.doc.models import *
from ietf.doc.utils import create_ballot_if_not_open, close_open_ballots
from ietf.doc.utils import *
from ietf.name.models import *
from ietf.person.models import *
from ietf.group.models import *
@ -175,6 +175,7 @@ def change_state(request, name, option=None):
prev_charter_state=prev_charter_state,
title=title,
initial_review=initial_review,
chartering_type=get_chartering_type(charter),
messages=simplejson.dumps(messages),
states_for_ballot_wo_extern=simplejson.dumps(list(states_for_ballot_wo_extern)),
),