mirror of
https://github.com/YunoHost-Apps/spip_ynh.git
synced 2024-09-03 20:25:59 +02:00
41 lines
2.3 KiB
HTML
41 lines
2.3 KiB
HTML
<div class='formulaire_spip formulaire_configurer formulaire_configurer_compteur' id='formulaire_configurer_compteur'>
|
|
<h3 class='titrem'>[(#CHEMIN_IMAGE{statistique-24.png}|balise_img{'',cadre-icone})]<:statistiques:info_forum_statistiques:> #AIDER{confstat}</h3>
|
|
|
|
[<p class="reponse_formulaire reponse_formulaire_ok">(#ENV*{message_ok})</p>]
|
|
[<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>]
|
|
<form action="#ENV{action}#formulaire_configurer_compteur" method="post"><div>
|
|
[(#ACTION_FORMULAIRE{#ENV{action}})]
|
|
<ul>
|
|
<li class='editer configurer_activer_statistiques[ (#ENV**{erreurs}|table_valeur{activer_statistiques}|oui)erreur]'>
|
|
[<span class='erreur_message'>(#ENV**{erreurs}|table_valeur{activer_statistiques})</span>]
|
|
<div class='choix'>
|
|
<input class='checkbox' type="checkbox" name="activer_statistiques" value='oui' [checked="(#ENV{activer_statistiques}|=={oui}|?{checked})"] id="activer_statistiques"/>
|
|
<label for="activer_statistiques"><:statistiques:item_gerer_statistiques:></label>
|
|
</div>
|
|
</li>
|
|
<li class='editer configurer_activer_captures_referers[ (#ENV**{erreurs}|table_valeur{activer_captures_referers}|oui)erreur]'>
|
|
<div class='explication'><:statistiques:info_question_vignettes_referer:></div>
|
|
[<span class='erreur_message'>(#ENV**{erreurs}|table_valeur{activer_captures_referers})</span>]
|
|
<div class='choix'>
|
|
<input class='checkbox' type="checkbox" name="activer_captures_referers" value='oui' [checked="(#ENV{activer_captures_referers}|=={oui}|?{checked})"] id="activer_captures_referers"/>
|
|
<label for="activer_captures_referers"><:statistiques:info_question_vignettes_referer_oui:></label>
|
|
</div>
|
|
</li>
|
|
|
|
</ul>
|
|
<p class='boutons'><input class='submit' type="submit" name="ok" value="<:bouton_enregistrer:>"/></p>
|
|
</div></form>
|
|
|
|
</div>
|
|
<script type='text/javascript'>
|
|
function actualise_capture_referers(){
|
|
if (jQuery('#activer_statistiques').prop('checked'))
|
|
jQuery('#formulaire_configurer_compteur li.configurer_activer_captures_referers').show();
|
|
else
|
|
jQuery('#formulaire_configurer_compteur li.configurer_activer_captures_referers').hide();
|
|
}
|
|
jQuery(document).ready(function(){
|
|
jQuery('#activer_statistiques').bind('change',actualise_capture_referers);
|
|
actualise_capture_referers();
|
|
});
|
|
</script>
|