Renaming
[cavote.git] / templates / votes.html
diff --git a/templates/votes.html b/templates/votes.html
new file mode 100644 (file)
index 0000000..d770c2b
--- /dev/null
@@ -0,0 +1,30 @@
+{% extends "layout.html" %}
+{% block subtitle %}
+Liste des votes
+{% endblock %}
+{% block body %}
+  {% for vote in votes %}
+  <article>
+    <div class="row well">
+      <div class="span4">
+        <h3><a href="{{ url_for('vote', idvote=vote.id) }}">{{ vote.title }}</a></h3>
+        <div class="progress progress-striped">
+          <div class="bar" style="width: 60{{ vote.percent }}%;"></div>
+        </div>
+      </div>
+      <div class="span3">
+        <h4>Deadline : {{ vote.date_end }} </h4>
+        <h4>Groupe : {{ vote.rolename }}</h4>
+        <h4>Categorie : {{ vote.category }}</h4>
+      </div>
+      <div class="span3">
+      <h4>Notes</h4>
+      <p>
+      {{ vote.description|safe }}
+      </p>
+    </div>
+  </article>
+  {% else %}
+  <div class="alert">Il n'y a pas encore de votes. Désolé.</div>
+  {% endfor %}
+{% endblock %}