2012-06-27 23:28:35 +02:00
|
|
|
{% extends "base_title.html" %}
|
2016-07-11 21:48:11 +02:00
|
|
|
{% load bootstrap %}
|
2012-06-27 23:28:35 +02:00
|
|
|
|
2016-07-14 19:29:15 +02:00
|
|
|
{% block page_size %}col-sm-8{% endblock %}
|
|
|
|
|
2012-06-27 23:28:35 +02:00
|
|
|
{% block realcontent %}
|
2016-07-14 19:29:15 +02:00
|
|
|
<h2>Sondage: {{ survey.title }}</h2>
|
|
|
|
{% if success %}
|
|
|
|
{% if deleted %}
|
|
|
|
<p class="success">Votre réponse a bien été supprimée !</p>
|
|
|
|
{% else %}
|
|
|
|
<p class="success">Votre réponse a bien été enregistrée ! Vous pouvez cependant la modifier jusqu'à la fin du sondage.</p>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% if survey.details %}
|
|
|
|
<p>{{ survey.details }}</p>
|
|
|
|
{% endif %}
|
|
|
|
<form class="form-horizontal" method="post" action="{% url 'gestioncof.views.survey' survey.id %}">
|
|
|
|
{% csrf_token %}
|
|
|
|
{{ form | bootstrap}}
|
|
|
|
|
|
|
|
<div class="pull-right">
|
|
|
|
{% if current_answer %}
|
|
|
|
<input type="submit" name="delete" class="btn btn btn-default" value="Supprimer ma réponse" />
|
|
|
|
{% endif %}
|
|
|
|
<input type="submit" class="btn btn-primary" value="Enregistrer" />
|
|
|
|
</div>
|
|
|
|
</form>
|
2012-06-27 23:28:35 +02:00
|
|
|
{% endblock %}
|