la configuration en #SAISIES (qui passe en necessite).

This commit is contained in:
cy_altern 2022-09-21 22:03:11 +02:00
parent 966a5c8655
commit 77961b2b1b
3 changed files with 29 additions and 110 deletions

View file

@ -1,46 +1,31 @@
<div class="formulaire_spip formulaire_configurer formulaire_#FORM">
<div class="formulaire_spip formulaire_configurer formulaire_#FORM formulaire_#FORM-#ENV{id,nouveau}">
<h3 class="titrem"><:gamucontact:cfg_titre_parametrages:/></h3>
[<p class="reponse_formulaire reponse_formulaire_ok">(#ENV*{message_ok})</p>]
[<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>]
[<p class="reponse_formulaire reponse_formulaire_ok" role="status">(#ENV*{message_ok})</p>]
[<p class="reponse_formulaire reponse_formulaire_erreur" role="alert">(#ENV*{message_erreur})</p>]
<form method="post" action="#ENV{action}">
<div>
<form method="post" action="#ENV{action}"><div>
[(#REM) declarer les hidden qui declencheront le service du formulaire
parametre : url d'action ]
#ACTION_FORMULAIRE
<input type='submit' class='btn submit' value='<:bouton_enregistrer:>' style="display:none;"/>
<div class="editer_groupe">
#SET{name,liste_emails}
#SET{erreurs,#ENV**{erreurs}|table_valeur{#GET{name}}}
#SET{obli,"obligatoire"}
<div class="editer editer_[(#GET{name})][ (#GET{obli})][ (#GET{erreurs}|oui)erreur]">
<label for="#GET{name}">Liste d'emails</label>
[<span class="erreur_message">(#GET{erreurs})</span>]
<textarea class="textarea Liste_emails" name="#GET{name}" id="#GET{name}">#ENV{#GET{name}}</textarea>
<p class="exlication">Liste d'emails séparés par des ;</p>
<div class="fieldset">
<fieldset id="destinataires">
<legend>Destinataires</legend>
#SAISIE{input, liste_id_auteur, label=Destinaires auteurs SPIP, explication=une liste d'id_auteur séparés par des ;}
#SAISIE{textarea, liste_emails, label=Destinaires sans compte auteur, explication=une liste d'emails séparés par des ;, rows=3}
</fieldset>
<fieldset id="anti-spam">
<legend>Contenus des messages</legend>
#SAISIE{input, nb_lien, defaut=0, label=Nombre maximum de liens autorisés dans un message}
</fieldset>
</div>
</div>
<div class="editer_groupe">
#SET{name,liste_id_auteur}
#SET{erreurs,#ENV**{erreurs}|table_valeur{#GET{name}}}
#SET{obli,"obligatoire"}
<div class="editer editer_[(#GET{name})][ (#GET{obli})][ (#GET{erreurs}|oui)erreur]">
<label for="#GET{name}">Liste d'id_auteur</label>
[<span class="erreur_message">(#GET{erreurs})</span>]
<input type="text" class="text liste_id_auteur" name="#GET{name}" id="#GET{name}" value="#ENV{#GET{name}}" >
<p class="exlication">Liste d'id_auteur séparés par des ;</p>
</div>
</div>
[(#SAISIE{input,nb_lien}
{defaut=0}
{label="Nb de liens Max autorisé dans un texte"})]
<input type="hidden" name="_meta_casier" value="gamucontact" />
<p class="boutons"><span class="image_loading">&nbsp;</span><input type="submit" class="submit" value="<:bouton_enregistrer|attribut_html:/>" /></p>
</div>
</form>
<p class="boutons">
<span class="image_loading">&nbsp;</span>
<input type="submit" class="submit" value="<:bouton_enregistrer:>"/>
</p>
</div></form>
</div>

View file

@ -1,68 +1,3 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
x="0px"
y="0px"
viewBox="0 0 85 92.000031"
id="svg10"
sodipodi:docname="gamucontact-xx.svg"
width="85"
height="92.000031"
inkscape:version="1.0.2 (e86c870879, 2021-01-15, custom)">
<metadata
id="metadata16">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs14" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1276"
inkscape:window-height="1416"
id="namedview12"
showgrid="false"
fit-margin-top="2"
fit-margin-right="2"
fit-margin-bottom="2"
fit-margin-left="2"
inkscape:zoom="4.2975553"
inkscape:cx="35.433747"
inkscape:cy="52.6421"
inkscape:window-x="1280"
inkscape:window-y="20"
inkscape:window-maximized="0"
inkscape:current-layer="svg10" />
<path
style="color:#000000;text-indent:0;text-transform:none;direction:ltr;baseline-shift:baseline;fill:#896a3b;fill-opacity:1;enable-background:accumulate"
d="M 14.01543,2 C 11.34451,2 9.17722,4.16301 9.17722,6.82849 v 7.45058 H 7.12658 C 4.30419,14.27907 2,16.5786 2,19.3953 c 0,2.8168 2.3042,5.1163 5.12658,5.1163 H 9.17722 V 40.8837 H 7.12658 C 4.30419,40.8837 2,43.1833 2,46.00003 c 0,2.8167 2.30419,5.1163 5.12658,5.1163 h 2.05064 v 16.3721 H 7.12658 C 4.30419,67.48843 2,69.78793 2,72.60473 c 0,2.8167 2.30419,5.1162 5.12658,5.1162 h 2.05064 v 7.4186 c -0.0163,2.6731 2.16728,4.8605 4.83821,4.8605 H 78.16179 C 80.83532,90.00003 83,87.80513 83,85.13953 V 6.82849 C 83,4.16301 80.83271,2 78.16179,2 Z M 7.12658,16.3256 h 6.1519 c 1.72181,0 3.07595,1.3514 3.07595,3.0697 0,1.7184 -1.35412,3.0698 -3.07595,3.0698 h -6.1519 c -1.72182,0 -3.07595,-1.3514 -3.07595,-3.0698 0,-1.7183 1.35414,-3.0697 3.07595,-3.0697 z m 38.99407,3.0697 c 5.66267,0 10.25316,4.5813 10.25316,10.2326 0,5.6513 -4.59049,10.2326 -10.25316,10.2326 -5.66267,0 -10.25317,-4.5813 -10.25317,-10.2326 0,-5.6513 4.5905,-10.2326 10.25317,-10.2326 z M 7.12658,42.9302 h 6.1519 c 1.72181,0 3.07595,1.35153 3.07595,3.06983 0,1.7184 -1.35414,3.0698 -3.07595,3.0698 h -6.1519 c -1.72181,0 -3.07595,-1.3514 -3.07595,-3.0698 0,-1.7183 1.35414,-3.06983 3.07595,-3.06983 z m 30.27888,3.06983 h 17.43038 c 5.96714,0 10.76582,4.7038 10.76582,10.5523 v 14.0058 H 26.63964 v -14.0058 c 0,-5.8485 4.79868,-10.5523 10.76582,-10.5523 z M 7.12658,69.53493 h 6.1519 c 1.72181,0 3.07595,1.3514 3.07595,3.0698 0,1.7183 -1.35414,3.0697 -3.07595,3.0697 h -6.1519 c -1.72181,0 -3.07595,-1.3514 -3.07595,-3.0697 0,-1.7184 1.35414,-3.0698 3.07595,-3.0698 z"
fill="#000000"
fill-opacity="1"
stroke="none"
marker="none"
visibility="visible"
display="inline"
overflow="visible"
id="path2" />
<svg viewBox="0 0 85 92" xmlns="http://www.w3.org/2000/svg">
<path d="m14.015 2c-2.6709 0-4.8382 2.163-4.8382 4.8285v7.4506h-2.0506c-2.8224 0-5.1266 2.2995-5.1266 5.1162 0 2.8168 2.3042 5.1163 5.1266 5.1163h2.0506v16.372h-2.0506c-2.8224 0-5.1266 2.2996-5.1266 5.1163 0 2.8167 2.3042 5.1163 5.1266 5.1163h2.0506v16.372h-2.0506c-2.8224 0-5.1266 2.2995-5.1266 5.1163 0 2.8167 2.3042 5.1162 5.1266 5.1162h2.0506v7.4186c-0.0163 2.6731 2.1673 4.8605 4.8382 4.8605h64.146c2.6735 0 4.8382-2.1949 4.8382-4.8605v-78.311c0-2.6655-2.1673-4.8285-4.8382-4.8285zm-6.8888 14.326h6.1519c1.7218 0 3.076 1.3514 3.076 3.0697 0 1.7184-1.3541 3.0698-3.076 3.0698h-6.1519c-1.7218 0-3.076-1.3514-3.076-3.0698 0-1.7183 1.3541-3.0697 3.076-3.0697zm38.994 3.0697c5.6627 0 10.253 4.5813 10.253 10.233s-4.5905 10.233-10.253 10.233-10.253-4.5813-10.253-10.233 4.5905-10.233 10.253-10.233zm-38.994 23.535h6.1519c1.7218 0 3.076 1.3515 3.076 3.0698 0 1.7184-1.3541 3.0698-3.076 3.0698h-6.1519c-1.7218 0-3.076-1.3514-3.076-3.0698 0-1.7183 1.3541-3.0698 3.076-3.0698zm30.279 3.0698h17.43c5.9671 0 10.766 4.7038 10.766 10.552v14.006h-38.962v-14.006c0-5.8485 4.7987-10.552 10.766-10.552zm-30.279 23.535h6.1519c1.7218 0 3.076 1.3514 3.076 3.0698 0 1.7183-1.3541 3.0697-3.076 3.0697h-6.1519c-1.7218 0-3.076-1.3514-3.076-3.0697 0-1.7184 1.3541-3.0698 3.076-3.0698z" overflow="visible" style="color:#000000;fill:#896a3b;"/>
</svg>

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

@ -1,14 +1,13 @@
<paquet
prefix="gamucontact"
categorie="communication"
version="1.0.3"
etat="dev"
version="1.0.4"
etat="test"
compatibilite="[3.2.10;4.1.*]"
logo="./gamucontact-xx.svg"
documentation=""
schema="1.0.5"
>
<nom>GamuContact</nom>
<auteur lien='https://gamuza.fr'>tofulm</auteur>
@ -16,7 +15,7 @@
<licence>GNU/GPL</licence>
<necessite nom="facteur" compatibilite="[4.1.0;[" />
<necessite nom="nospam" compatibilite="[2.2.0;[" />
<necessite nom="saisies" compatibilite="[4.4.0;]" />
<pipeline nom="autoriser" inclure="gamucontact_autorisations.php" />