From e2065219cb45d374191f7bc0acf83437c2400c83 Mon Sep 17 00:00:00 2001 From: Matthieu Marcillaud Date: Wed, 9 Oct 2019 12:46:54 +0200 Subject: [PATCH] =?UTF-8?q?Une=20page=20de=20configuration,=20et=20une=20a?= =?UTF-8?q?utre=20de=20test=20=C3=A0=20compl=C3=A9ter.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- formulaires/configurer_select2.html | 16 +++++++++++- lang/select2_fr.php | 8 +++--- prive/squelettes/contenu/tester_select2.html | 5 ++++ .../navigation/configurer_select2.html | 23 ++++++++++++++++++ .../squelettes/navigation/tester_select2.html | 1 + prive/themes/spip/images/select2-16.png | Bin 0 -> 602 bytes prive/themes/spip/images/select2-24.png | Bin 0 -> 823 bytes 7 files changed, 49 insertions(+), 4 deletions(-) create mode 100644 prive/squelettes/contenu/tester_select2.html create mode 100644 prive/squelettes/navigation/configurer_select2.html create mode 100644 prive/squelettes/navigation/tester_select2.html create mode 100644 prive/themes/spip/images/select2-16.png create mode 100644 prive/themes/spip/images/select2-24.png diff --git a/formulaires/configurer_select2.html b/formulaires/configurer_select2.html index 8c7d882..121ffe5 100644 --- a/formulaires/configurer_select2.html +++ b/formulaires/configurer_select2.html @@ -1,6 +1,6 @@
-

<:select2:cfg_titre_parametrages:>

+

<:select2:titre_parametrages_select2:>

[

(#ENV*{message_ok})

] [

(#ENV*{message_erreur})

] @@ -9,6 +9,20 @@
#ACTION_FORMULAIRE +
+
+
+ + +
+
+
+ + [(#ENV**{erreurs}|table_valeur{selecteur_commun})] +

<:select2:champ_selecteur_explication:>

+ +
+

 

diff --git a/lang/select2_fr.php b/lang/select2_fr.php index f671934..fb51fc9 100644 --- a/lang/select2_fr.php +++ b/lang/select2_fr.php @@ -11,10 +11,12 @@ $GLOBALS[$GLOBALS['idx_lang']] = array( 'select2_titre' => 'Select2', // C - 'cfg_exemple' => 'Exemple', - 'cfg_exemple_explication' => 'Explication de cet exemple', - 'cfg_titre_parametrages' => 'Paramétrages', + 'champ_active_label' => 'Activer "Select2" dans le site public', + 'champ_selecteur_label' => 'Sélecteur', + 'champ_selecteur_explication' => 'Indiquez la cible des éléments qui déclencheront Select2. (Expression CSS ou étendue jQuery)', // T 'titre_page_configurer_select2' => 'Configurer Select2', + 'titre_page_tester_select2' => 'Tester Select2', + 'titre_parametrages_select2' => 'Paramétrer Select2', ); diff --git a/prive/squelettes/contenu/tester_select2.html b/prive/squelettes/contenu/tester_select2.html new file mode 100644 index 0000000..bdd1a26 --- /dev/null +++ b/prive/squelettes/contenu/tester_select2.html @@ -0,0 +1,5 @@ +[(#AUTORISER{configurer,_select2}|sinon_interdire_acces)] + +

<:select2:titre_page_tester_select2:>

+ +... diff --git a/prive/squelettes/navigation/configurer_select2.html b/prive/squelettes/navigation/configurer_select2.html new file mode 100644 index 0000000..81673ed --- /dev/null +++ b/prive/squelettes/navigation/configurer_select2.html @@ -0,0 +1,23 @@ +[(#BOITE_OUVRIR{[<:select2:select2_titre:>(#CHEMIN_IMAGE{select2-24.png}|balise_img{'',cadre-icone})],simple})] +

[(#VAL{paquet-select2:select2_description}|_T)]

+#BOITE_FERMER + +[(#SET{liste,#LISTE{ + #ARRAY{ + exec,configurer_select2, + libelle,select2:titre_page_configurer_select2, + icone,cfg-16, + }, + #ARRAY{ + exec,tester_select2, + libelle,select2:titre_page_tester_select2, + icone,warning-16, + }, +}})] + \ No newline at end of file diff --git a/prive/squelettes/navigation/tester_select2.html b/prive/squelettes/navigation/tester_select2.html new file mode 100644 index 0000000..8f77652 --- /dev/null +++ b/prive/squelettes/navigation/tester_select2.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/prive/themes/spip/images/select2-16.png b/prive/themes/spip/images/select2-16.png new file mode 100644 index 0000000000000000000000000000000000000000..10573e44da4867360191efe1cdfa305537db9b58 GIT binary patch literal 602 zcmV-g0;TyYz={ez_L?e zTkRina-SBM6=(>EQ^V!byEbvjl0Yp1ZdXm9v=itH%n7Uxfn%*YuOGul1?~&9{sWHH za?B(G3yFeF8jUw9LUvfA>q;OGoB{3t`vHu%hxJqmYcd43N5CclU+~eSfE2Vnr~pqD zz`CDfOt&Y1TaC=b>{>X96`#OrLZb((bjbAIlV#&s4l3Dj??=^Zi4SldMVhU9^ff3eh*5|EF&q~|x-i14 zBW0}Tfi>|ADK`OEeK|P(nV|Rt;Vkjrx_Aws6lfE}IJgZg11|@i7S={E_7boN9A
nu~ zK~zY`t(476R8bg*pZk>#WjcOfWs8(BZbfZeWKJzCk}$}k&A7EqF@5+C^hK>TxJ#AN zO;8vSZTbt^_5sr(kZ?#Hr$&@W$9vA(;@-(|8g-g{;m0{}&v}0DdCz+;loEdUp5RG^_EBZ12Tvzx&4niaVGuUU_m0WQ|~hNmfj z#|6?A!1GEA#Q!o8hzfZB0WOv&5Y59c2&A?Vo>xks*8~m&wOihi;h>#1geYK?(0z3uIlv??#dOwRRO_%}}J~laQQds=N0?g2|!1e>sXTX$^zYHTVx(^HjH2}U@ z#Y}ZOY2AXOeQd3;MB#|W5{*R)TfSlAV*w5q0V0BcGU%a16kk!o;yq;xn>aQc@vfS%)RA>>`g?2 zsGwM)Ks4Q==nzdrd>m0=nY?d1#Pj2wpjD~9cm-U;b7u@-z;gi{8+?B&IKUE+46rvow<0nD zbg@0*0eA4+tVtpXB2##740seeR~qv`Kc0IdJamb|B$92w1aR^n;S<0hp8K6d5