Added metas to vote view, added attachments table
[cavote.git] / templates / vote.html
index b51896f..3ebec2a 100644 (file)
@@ -1,8 +1,8 @@
 {% extends "layout.html" %}
 {% block body %}
-<h2>{{ vote.title }}</h2>
 <div class="row">
-<div class="span10 offset1">
+<div class="span9">
+<h2 class='page-header'>{{ vote.title }}</h2>
 <table class="table table-condensed table-striped table-bordered">
   <thead>
     <tr>
   </tfoot>
 </table>
 </div>
+
+<div class="span3">
+<h3>Informations</h3>
+<dl class="dl-horizontal">
+  <dt>Publié par <dd><code>maethor</code>
+  <dt>Début le <dd><code>{{ vote.date_begin }}</code>
+  <dt>Fin le <dd><code>{{ vote.date_end }}</code>
+  <dt>Groupe <dd><code>{{ vote.rolename }}</code>
+  <dt>Catégorie <dd><code>{{ vote.category }}</code>
+</dl>
+<dl>
+  <dt>Description : <dd>{{ vote.description }}
+  <dt>Documents :<dd>
+  <ul>
+    {% for attachment in attachments %}
+    <li><a href="{{ attachment.url }}">{{ attachment.url }}</a></li>
+    {% endfor %}
+  </ul>
+  </li>
+</dl>
+</div>
+
 </div>
 {% endblock %}