dépôts
/
cavote.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Users can see waiting votes, votes can be terminated
[cavote.git]
/
templates
/
admin_vote_edit.html
diff --git
a/templates/admin_vote_edit.html
b/templates/admin_vote_edit.html
index
d2f4ac1
..
a0adb07
100644
(file)
--- a/
templates/admin_vote_edit.html
+++ b/
templates/admin_vote_edit.html
@@
-75,10
+75,12
@@
<input type="checkbox" name="public" {% if vote.is_public == 1 %} checked {% endif %}/>
Le vote est-il visible par tous ?
</label>
<input type="checkbox" name="public" {% if vote.is_public == 1 %} checked {% endif %}/>
Le vote est-il visible par tous ?
</label>
+ {% if not vote.is_terminated == 1 %}
<label class="checkbox">
<input type="checkbox" name="multiplechoice" {% if vote.is_multiplechoice == 1 %} checked {% endif %} disabled/>
Les votants peuvent-ils choisir plusieurs options ?
</label>
<label class="checkbox">
<input type="checkbox" name="multiplechoice" {% if vote.is_multiplechoice == 1 %} checked {% endif %} disabled/>
Les votants peuvent-ils choisir plusieurs options ?
</label>
+ {% endif %}
</div>
</div>
</div>
</div>
</div>
</div>
@@
-89,12
+91,19
@@
<label class="control-label" for="status">Statut</label>
<div class="controls">
<select class="span2" name="status" id="status">
<label class="control-label" for="status">Statut</label>
<div class="controls">
<select class="span2" name="status" id="status">
- {% if vote.is_open %}
- <option>Fermé</option>
- <option selected>Ouvert</option>
+ {% if vote.is_terminated == 1 %}
+ <option>Fermé</option>
+ <option>Ouvert</option>
+ <option selected>Terminé</option>
{% else %}
{% else %}
- <option selected>Fermé</option>
- <option>Ouvert</option>
+ {% if vote.is_open == 1 %}
+ <option>Fermé</option>
+ <option selected>Ouvert</option>
+ <option>Terminé</option>
+ {% else %}
+ <option selected>Fermé</option>
+ <option>Ouvert</option>
+ {% endif %}
{% endif %}
</select>
</div>
{% endif %}
</select>
</div>
@@
-107,6
+116,7
@@
</form>
</div>
</form>
</div>
+ {% if not vote.is_terminated == 1%}
<div class="span5 well pull-right">
<fieldset><legend>Choix</legend>
<table class="table table-stripped table-condensed">
<div class="span5 well pull-right">
<fieldset><legend>Choix</legend>
<table class="table table-stripped table-condensed">
@@
-138,6
+148,7
@@
</table>
</fieldset>
</div>
</table>
</fieldset>
</div>
+ {% endif %}
<div class="span5 well pull-right">
<fieldset><legend>Pièces jointes</legend>
<div class="span5 well pull-right">
<fieldset><legend>Pièces jointes</legend>