kpsul/gestioncof/templates/survey.html

24 lines
1 KiB
HTML
Raw Normal View History

2012-06-27 23:28:35 +02:00
{% extends "base_title.html" %}
{% block realcontent %}
<h2>Sondage: {{ survey.title }}</h2>
{% if success %}
2012-07-11 17:39:20 +02:00
{% if deleted %}
<p class="success">Votre réponse a bien été supprimée !</p>
{% else %}
2012-06-27 23:28:35 +02:00
<p class="success">Votre réponse a bien été enregistrée ! Vous pouvez cependant la modifier jusqu'à la fin du sondage.</p>
{% endif %}
2012-07-11 17:39:20 +02:00
{% endif %}
2012-06-27 23:28:35 +02:00
{% if survey.details %}
<p>{{ survey.details }}</p>
{% endif %}
2013-09-05 22:22:47 +02:00
<form method="post" action="{% url 'gestioncof.views.survey' survey.id %}">
2012-06-27 23:28:35 +02:00
{% csrf_token %}
{{ form.as_p }}
<input type="submit" class="btn-submit" value="Enregistrer" />
2012-07-11 17:39:20 +02:00
{% if current_answer %}
<input type="submit" name="delete" class="btn-submit" value="Supprimer ma réponse" />
{% endif %}
2012-06-27 23:28:35 +02:00
</form>
{% endblock %}