File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121from ietf .idrfc .mails import *
2222from ietf .idrfc .utils import *
2323from ietf .idrfc .lastcall import request_last_call
24+ from ietf .idrfc .idrfc_wrapper import BallotWrapper
25+
2426
2527BALLOT_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
Original file line number Diff line number Diff line change 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 ">
You can’t perform that action at this time.
0 commit comments