123 lines
6.1 KiB
HTML
123 lines
6.1 KiB
HTML
|
<div class="formulaire_spip formulaire_configurer formulaire_#FORM">
|
||
|
[<p class="reponse_formulaire reponse_formulaire_ok">(#ENV*{message_ok})</p>]
|
||
|
[<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>]
|
||
|
|
||
|
<form method="post" action="#ENV{action}">
|
||
|
<div>
|
||
|
#ACTION_FORMULAIRE{#ENV{action}}
|
||
|
[(#REM) ------------------------ Memoization --------------------- ]
|
||
|
<fieldset>
|
||
|
<legend><:memoization:legend_cache_methode:></legend>
|
||
|
<div class="editer-groupe">
|
||
|
#SET{name,methode}#SET{obli,''}#SET{defaut,''}#SET{erreurs,#ENV**{erreurs}|table_valeur{#GET{name}}}
|
||
|
<div class="editer editer_[(#GET{name})][ (#GET{obli})][ (#GET{erreurs}|oui)erreur]">
|
||
|
<label><:memoization:label_methode:></label>[
|
||
|
<span class='erreur_message'>(#GET{erreurs})</span>
|
||
|
]<p class="explication"><:memoization:methodes_grisees:></p>
|
||
|
|
||
|
#SET{val,defaut}
|
||
|
<div class="choix">
|
||
|
<input type="radio" name="#GET{name}" class="radio" id="#GET{name}_#GET{val}" value="#GET{val}" [(#ENV{#GET{name},#GET{defaut}}|non)checked="checked"] />
|
||
|
<label for="#GET{name}_#GET{val}"><:memoization:option_methode_defaut:>[((#VAL|memoization_methode))]</label>
|
||
|
</div>
|
||
|
<BOUCLE_methodes(POUR){tableau #LISTE{apcu,apc,xcache,memcached,memcache,redis,filecache,nocache}}>
|
||
|
#SET{val,#VALEUR}
|
||
|
#SET{enabled,#VALEUR|memoization_methode}
|
||
|
<div class="choix [(#GET{enabled}|non|?{disabled})]">
|
||
|
<input type="radio" name="#GET{name}" class="radio" id="#GET{name}_#GET{val}" value="#GET{val}" [(#ENV{#GET{name},#GET{defaut}}|=={#GET{val}}|oui)checked="checked"]
|
||
|
[disabled="(#GET{enabled}|non|?{disabled})"] />
|
||
|
<label for="#GET{name}_#GET{val}">[(#VAL{memoization:option_methode_}|concat{#GET{val}}|_T)]</label>
|
||
|
</div>
|
||
|
</BOUCLE_methodes>
|
||
|
</div>
|
||
|
</div>
|
||
|
<style type="text/css">
|
||
|
.choix.disabled label{ font-style: italic; color:#aaa; }
|
||
|
.choix input:checked + label {font-weight: bold;}
|
||
|
</style>
|
||
|
</fieldset>
|
||
|
|
||
|
|
||
|
<fieldset class="methode_options methode_options_memcache methode_options_memcached">
|
||
|
<legend><:memoization:legend_memcache:></legend>
|
||
|
<div class="editer-groupe">
|
||
|
<div class="editer editer_memcache_servers">
|
||
|
<label for="memcache_servers"><:memoization:label_memcache_serveurs:></label>
|
||
|
<p class="explication">(<:memoization:explication_memcache_servers:>)</p>
|
||
|
<textarea name="memcache_servers" id="memcache_servers" class="textarea">[(#ENV{memcache_servers}|sinon{localhost:11211})]</textarea>
|
||
|
<p class="lien_memcache"><a href="#URL_ECRIRE{admin_memcache}"><:memoization:lien_administration_memcache:></a></p>
|
||
|
</div>
|
||
|
</div>
|
||
|
<style type="text/css">
|
||
|
.methode_options_memcached[data-methode=memcached] .lien_memcache {display: none;}
|
||
|
</style>
|
||
|
</fieldset>
|
||
|
|
||
|
<fieldset class="methode_options methode_options_redis">
|
||
|
<legend><:memoization:legend_redis:></legend>
|
||
|
<div class="editer-groupe">
|
||
|
<div class="editer">
|
||
|
<div class="choix">
|
||
|
<input name="redis_type" [(#ENV{redis_type}|=={server}|ou{#ENV{redis_type}|=={""}}|oui) checked="checked"] class="radio" id="radio_server" value="server" aria-describedby="radio_explication" type="radio">
|
||
|
<label for="radio_server" style="margin-right: 20px;"><:memoization:redis_type_serveur:></label>
|
||
|
<input name="redis_type" [(#ENV{redis_type}|=={sock}|oui) checked="checked"] class="radio" id="radio_sock" value="sock" aria-describedby="radio_explication" type="radio">
|
||
|
<label for="radio_sock"><:memoization:redis_type_sock:></label>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="editer editer_redis_server">
|
||
|
<label for="redis_server"><:memoization:redis_serveur:></label>
|
||
|
<p class="explication">(<:memoization:explication_redis_serveur:>)</p>
|
||
|
<input type="text" name="redis_server" id="redis_server" class="text" value="[(#ENV{redis_server}|sinon{127.0.0.1:6379})]" />
|
||
|
</div>
|
||
|
<div class="editer editer_redis_sock">
|
||
|
<label for="redis_sock"><:memoization:redis_sock:></label>
|
||
|
<p class="explication">(<:memoization:explication_redis_sock:>)</p>
|
||
|
<input type="text" name="redis_sock" id="redis_sock" value="[(#ENV{redis_sock}|sinon{'/tmp/redis.sock'})]" class="text" />
|
||
|
</div>
|
||
|
<div class="editer editer_redis_auth">
|
||
|
<label for="redis_auth"><:memoization:redis_auth:></label>
|
||
|
<p class="explication">(<:memoization:explications_redis_auth:>)</p>
|
||
|
<input type="text" name="redis_auth" id="redis_auth" value="[(#ENV{redis_auth})]" class="text" />
|
||
|
</div>
|
||
|
<div class="editer editer_redis_dbindex">
|
||
|
<label for="redis_dbindex"><:memoization:redis_dbindex:></label>
|
||
|
<p class="explication">(<:memoization:explication_redis_dbindex:>)</p>
|
||
|
<input type="text" name="redis_dbindex" id="redis_dbindex" value="[(#ENV{redis_dbindex}|sinon{0})]" class="text" />
|
||
|
</div>
|
||
|
<div class="editer editer_redis_serializer">
|
||
|
<label for="redis_serializer"><:memoization:redis_serializer:></label>
|
||
|
<p class="explication">(<:memoization:explication_redis_serializer:>)</p>
|
||
|
<select id="redis_serializer" name="redis_serializer" class="select">
|
||
|
[(#SET{serializers,[(#ARRAY{}|memoization_redis_liste_serializer)]})]
|
||
|
<BOUCLE_serializer(DATA){source tableau, #GET{serializers}}>
|
||
|
<option value="#CLE"[(#ENV{redis_serializer}|=={#CLE}|oui) selected="selected"][(#VALEUR{statut}|=={inactif}|oui) disabled="disabled"]>#VALEUR{libelle}</option>
|
||
|
</BOUCLE_serializer>
|
||
|
</select>
|
||
|
</div>
|
||
|
</div>
|
||
|
</fieldset>
|
||
|
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
jQuery(function() {
|
||
|
var show_methode_options = function() {
|
||
|
var methode = jQuery('input[name=methode]:checked').val();
|
||
|
jQuery('.methode_options:not(.methode_options_'+methode+'):visible').hide();
|
||
|
jQuery('.methode_options_'+methode+':hidden').slideDown();
|
||
|
jQuery('.methode_options_'+methode).attr('data-methode', methode);
|
||
|
};
|
||
|
|
||
|
show_methode_options();
|
||
|
|
||
|
jQuery('.formulaire_configurer_memoization').on('change', 'input[name=methode]', show_methode_options);
|
||
|
|
||
|
});
|
||
|
</script>
|
||
|
<p class="boutons">
|
||
|
<span class="image_loading"></span>
|
||
|
<button type="submit" name="_cfg_ok" value="X" class="submit"><:bouton_valider:></button>
|
||
|
</p>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|