Valider 99834ae0 rédigé par brunobergot@gmail.com's avatar brunobergot@gmail.com
Parcourir les fichiers

un formulaire à l'arrache pour gérer une sélection plus "stable" basée sur le prefixe des plugins

parent 53083e21
Chargement en cours
Chargement en cours
Chargement en cours
Chargement en cours
+2 −0
Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff
@@ -18,6 +18,8 @@ extra2/dist.html -text
extra2/plugin.html -text
extra2/sommaire.html -text
footer/dist.html -text
formulaires/configurer_pluginspip.html -text
formulaires/inc-configurer_pluginspip.html -text
formulaires/recherche.html -text
head/depots.html -text
head/plugin.html -text
+1 −23
Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff
@@ -12,29 +12,7 @@
</div>

<BOUCLE_cpaslakermesse(CONDITION){si #AUTORISER{configurer}}>
<B_plugins>
<table class="spip" summary="" style="width: 100%;">
	<thead>
		<tr id="categorie[-(#ENV{categorie}|sinon{#CLE}|sinon{aucune})]">
			<th>
				<strong>[(#ENV{categorie}|sinon{#CLE}|sinon{aucune}|svp_traduire_categorie)]</strong>
			</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
<BOUCLE_plugins(PLUGINS){id_depot?}{par multi nom}>
		<tr id="plugin[-(#ID_DEPOT)]-#PREFIXE" class="[row_(#COMPTEUR_BOUCLE|alterner{odd,even})]">
			<td>
				<a[ href="(#URL_PLUGIN)"] title="<:svp:bulle_aller_plugin:>">[(#NOM)]</a>
				[<br /> (#SLOGAN|supprimer_tags|PtoBR)]
			</td>
			<td>#FORMULAIRE_FAVORI</td>
		</tr>
</BOUCLE_plugins>
	</tbody>
</table>
</B_plugins>
#FORMULAIRE_CONFIGURER_PLUGINSPIP
</BOUCLE_cpaslakermesse>
Nope...
<//B_cpaslakermesse>
 No newline at end of file
+2 −2
Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff
@@ -14,8 +14,8 @@
	- soit d'une liste choisie au hasard
 --> ]
#SET{selection, #ARRAY}
<BOUCLE_favoris(FAVORIS){objet=plugin}{par hasard}{0, #EVAL{_PLUGINSPIP_TAILLE_SELECTION_PLUGINS}}>
	#SET{selection, #GET{selection}|push{#ID_OBJET}}
<BOUCLE_favoris(PLUGINS){prefixe IN #CONFIG{pluginspip/selection,#ARRAY}}{par hasard}{0, #EVAL{_PLUGINSPIP_TAILLE_SELECTION_PLUGINS}}>
	#SET{selection, #GET{selection}|push{#ID_PLUGIN}}
</BOUCLE_favoris>
</B_favoris>
	<BOUCLE_hasard(PLUGINS){par hasard}{0, #EVAL{_PLUGINSPIP_TAILLE_SELECTION_PLUGINS}}>
+12 −0
Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff
<div class="formulaire_spip formulaire_configurer formulaire_#FORM">
[<div class="reponse_formulaire reponse_formulaire_ok">(#ENV*{message_ok})</div>]
[<div class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</div>]
[(#ENV{editable})
<form method="post" action="#ENV{action}" enctype="multipart/form-data">
	<div>
	#ACTION_FORMULAIRE{#ENV{action}}
	[(#INCLURE{fond=formulaires/inc-configurer_pluginspip,env})]
	</div>
</form>
]
</div>
 No newline at end of file
+23 −0
Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff
<p class="boutons">
	<input type="submit" class="submit" value="<:bouton_enregistrer:>" />
</p>
<B_plugins>
<table class="spip" summary="" style="width: 100%;">
	<tbody>
<BOUCLE_plugins(PLUGINS){id_depot?}{par multi nom}>
		<tr id="plugin[-(#ID_DEPOT)]-#PREFIXE" class="[row_(#COMPTEUR_BOUCLE|alterner{odd,even})]">
			<td>
				<a[ href="(#URL_PLUGIN)"] title="<:svp:bulle_aller_plugin:>">[(#NOM)]</a>
				[<br /> (#SLOGAN|supprimer_tags|PtoBR)]
			</td>
			<td>
			<input type='checkbox' class='checkbox' name='selection[]' value='#PREFIXE'[(#PREFIXE|in_any{#ENV{selection}})checked='checked'] />
			</td>
		</tr>
</BOUCLE_plugins>
	</tbody>
</table>
</B_plugins>
<p class="boutons">
	<input type="submit" class="submit" value="<:bouton_enregistrer:>" />
</p>
 No newline at end of file