Skip to content

Commit 6b997bc

Browse files
committed
Add a defer/undefer button to the edit_position dialog
- Legacy-Id: 2944
1 parent 077067c commit 6b997bc

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

rjs/ietf/idrfc/views_ballot.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
from ietf.idrfc.mails import *
2222
from ietf.idrfc.utils import *
2323
from ietf.idrfc.lastcall import request_last_call
24+
from ietf.idrfc.idrfc_wrapper import BallotWrapper
25+
2426

2527
BALLOT_CHOICES = (("yes", "Yes"),
2628
("noobj", "No Objection"),
@@ -186,6 +188,7 @@ def edit_position(request, name):
186188
comment=comment,
187189
ad=ad,
188190
return_to_url=return_to_url,
191+
ballot=BallotWrapper(doc.idinternal)
189192
),
190193
context_instance=RequestContext(request))
191194

rjs/ietf/templates/idrfc/edit_position.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,18 @@
3232
<h1>Change position for {{ ad }} on {{ doc }}</h1>
3333

3434
<form class="position-form" action="" method="POST">
35+
36+
<div>
3537
<div class="position">{{ form.position }}</div>
3638

39+
{% if ballot.was_deferred %}
40+
<div style="margin-top:8px; margin-bottom:8px;"><span id="doc_undefer_ballot_button" class="yui-button yui-link-button"><span class="first-child"><a href="{% url doc_undefer_ballot name=doc %}">Undefer ballot</a></span></span></div>
41+
<div style="margin-top:8px; margin-bottom:8px;">Ballot deferred by {{ ballot.deferred_by }} on {{ ballot.deferred_date }}.</div>
42+
{% else %}
43+
<div style="margin-top:8px; margin-bottom:8px;"><span id="doc_defer_ballot_button" class="yui-button yui-link-button"><span class="first-child"><a href="{% url doc_defer_ballot name=doc %}">Defer ballot</a></span></span></div>
44+
{% endif %}
45+
</div>
46+
3747
<div style="clear:left"></div>
3848

3949
<div class="discuss-widgets">

0 commit comments

Comments
 (0)