From 8857ba6574cb3296c0c57ec79a84f342d9566fa2 Mon Sep 17 00:00:00 2001
From: Jean-Christophe Engel <lesanges@zaclys.net>
Date: Thu, 3 Oct 2024 14:04:45 +0200
Subject: [PATCH] simplification 06-02

---
 membres.side | 21 ++++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)

diff --git a/membres.side b/membres.side
index 9558537..efca952 100644
--- a/membres.side
+++ b/membres.side
@@ -21712,18 +21712,25 @@
       "target": "var nav = document.querySelector(\".dropdown\"); var li = nav.querySelectorAll(\"li\"); var nb = li.length; for (const l of li) { l.style.display=\"block\"; } return;",
       "targets": [],
       "value": ""
+    }, {
+      "id": "8741f9d2-8e30-4a88-a4d9-42fedee9b32e",
+      "comment": "",
+      "command": "store",
+      "target": "Administrateurs",
+      "targets": [],
+      "value": "categorie"
     }, {
       "id": "54742745-eba2-4afd-80b3-fbd02d3061c9",
-      "comment": "Filtrer : toutes même cachées",
+      "comment": "",
       "command": "click",
-      "target": "xpath=//a[contains(., \"Toutes, même cachées\")]",
+      "target": "xpath=//a[contains(., \"${categorie}\")]",
       "targets": [],
       "value": ""
     }, {
       "id": "58da6287-1e38-467e-8604-95d12fe10cfa",
       "comment": "",
       "command": "storeText",
-      "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small",
+      "target": "xpath=//a[contains(., \"${categorie}\")]//small",
       "targets": [],
       "value": "membres"
     }, {
@@ -21744,7 +21751,7 @@
       "id": "b795d85a-6b5a-46b6-8f1e-53f7c6451d2e",
       "comment": "",
       "command": "click",
-      "target": "xpath=//select[@name=\"action\"]/option[contains(text(), \"Supprimer les membres\")]",
+      "target": "xpath=//select[@name=\"action\"]/option[@value=\"delete\"]",
       "targets": [
         ["name=action", "name"],
         ["css=select", "css:finder"],
@@ -21820,16 +21827,16 @@
       "value": ""
     }, {
       "id": "f2dd9118-10f0-4570-9163-dd0662018d59",
-      "comment": "Filtrer : toutes même cachées",
+      "comment": " ",
       "command": "click",
-      "target": "xpath=//a[contains(., \"Toutes, même cachées\")]",
+      "target": "xpath=//a[contains(., \"${categorie}\")]",
       "targets": [],
       "value": ""
     }, {
       "id": "ceea15ae-7871-4d5d-a680-fdd7611d6731",
       "comment": "",
       "command": "storeText",
-      "target": "xpath=//a[contains(., \"Toutes, même cachées\")]//small",
+      "target": "xpath=//a[contains(., \"${categorie}\")]//small",
       "targets": [],
       "value": "membres"
     }, {