src/hdalab/templates/editorial/folders.html
changeset 327 3684db1579ff
child 328 7040f6533c42
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/hdalab/templates/editorial/folders.html	Wed Sep 03 16:43:52 2014 +0200
@@ -0,0 +1,33 @@
+{% extends "base.html" %}
+{% load static %}
+{% load hdabo_tags %}
+{% block title %}HdaLab - Éditorialisation : Tous les dossiers{% endblock %}
+
+{% block css_import %}
+{{block.super}}
+<link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/profile.css' %}" />
+{% endblock %}
+
+{% block main_content %}
+<p><a href="{% url 'add_or_update_folder' %}">Nouveau dossier</a></p>
+<table>
+    <tr class="border_bottom">
+	    <th>Url</th>
+	    <th>Titre</th>
+	    <th>Description</th>
+	    <th>Liste</th>
+	    <th>Éditer</th>
+	    <th>Effacer</th>
+    </tr>
+    {% for f in folders %}
+    <tr class="border_bottom">
+        <td><a href="{{f.url}}" title="{{f.url}}" target="_blank">{{f.url|short_url}}</a></td>
+        <td>{{f.title}}</td>
+        <td>{{f.description}}</td>
+        <td class="list"><ul>{% for d in f.datasheets.all %}<li>{{ d.title }}</li>{% endfor %}</ul></td>
+        <td class="text_centered"><a href="{% url 'hdalab_add_or_update_folder' folder_pk=f.pk %}"><img src="{% static 'hdabo/img/pen.png' %}"/></a></td>
+        <td class="text_centered"><a class="" href="{% url 'hdalab_delete_folder' folder_pk=f.pk %}" onclick="return confirm('Êtes-vous sûr(e) ? Cette action est définitive.')"><img src="{% static 'hdabo/img/tag_remove.png' %}"/></a></td>
+    </tr>
+    {% endfor %}
+</table>
+{% endblock %}