+ {% endif %}
+
+ <div class="span5 well pull-right">
+ <fieldset><legend>Pièces jointes</legend>
+ <table class="table table-stripped table-condensed">
+ <thead>
+ <tr>
+ <th>Lien
+ <th>Actions
+ </tr>
+ </thead>
+ <tbody>
+ {% for attachment in attachments %}
+ <tr>
+ <td>{{ attachment.url }}</td>
+ <td><a href="{{ url_for('admin_vote_deleteattachment', voteid=vote.id, attachmentid=attachment.id) }}" class="btn btn-small btn-danger">Supprimer</a></td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ <tfoot>
+ <tr>
+ <form action="{{ url_for('admin_vote_addattachment', voteid=vote.id) }}" method="post">
+ <td><input type="text" name="url" value="Nouveau document"
+ onfocus="if(this.value=='Nouveau document')this.value='';"
+ onblur="if(this.value=='')this.value='Nouveau document';" /></td>
+ <td><input type="submit" class="btn btn-small btn-primary" value="+ Ajouter" />
+ </form>
+ </tr>
+ </tfoot>
+ </table>
+ </fieldset>
+ </div>
+