From 5271f992a7010838316fe0c5b76fe0a8e13ed402 Mon Sep 17 00:00:00 2001 From: afornerot Date: Thu, 17 Jun 2021 15:01:57 +0200 Subject: [PATCH] =?UTF-8?q?replacer=20les=20modifs=20=C3=A9cras=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Resources/views/Alert/list.html.twig | 202 ++++++++++++++---- 1 file changed, 160 insertions(+), 42 deletions(-) diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Alert/list.html.twig b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Alert/list.html.twig index a230a52e..ab9df0f2 100644 --- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Alert/list.html.twig +++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Alert/list.html.twig @@ -11,50 +11,164 @@ Ajouter une Annonce Ajouter une Catégorie

+ +
+
+

En Attente Publication

+
-
- {% for alert in alerts %} -
- - -
- {{ alert.content|raw }} -
+
+
+ {% for alert in alerts if alert.isPending %} + + {% endfor %}
- {% endfor %} +
+
+ +
+
+

En Ligne

+
+ +
+
+ {% for alert in alerts if alert.isOnline %} + + {% endfor %} +
+
+
+ +
+
+

Archivées

+
+ +
+
+ {% for alert in alerts if alert.isArchived %} + + {% endfor %} +
+
@@ -219,7 +333,11 @@ }); } - $( "#list" ).sortable({ + if($(".alertstatut-pending").length==0) $("#listpending").hide(); + if($(".alertstatut-online").length==0) $("#listonline").hide(); + if($(".alertstatut-archived").length==0) $("#listarchived").hide(); + + $( ".list" ).sortable({ axis: "y", placeholder: "list-item placeholder", update: updateItems