You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
3.8 KiB

<script type="text/javascript">
$(function(){
[(#ENV{prestataire}|=={smsfactor}|non)$( ".smsfactor" ).addClass( "none" );]
[(#ENV{prestataire}|=={octopush}|non)$( ".octopush" ).addClass( "none" );]
$( "#aucun" ).on( "click", function() {
$( ".smsfactor" ).addClass( "none" );
$( ".octopush" ).addClass( "none" );
});
$( "#smsfactor" ).on( "click", function() {
$( ".octopush" ).addClass( "none" );
$( ".smsfactor" ).removeClass( "none" );
});
$( "#octopush" ).on( "click", function() {
$( ".smsfactor" ).addClass( "none" );
$( ".octopush" ).removeClass( "none" );
});
});
</script>
<div class="formulaire_spip formulaire_configurer formulaire_#FORM">
<h3 class="titrem"><:sms: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>]
<form method="post" action="#ENV{action}">
#ACTION_FORMULAIRE{#ENV{action}}
<input type="hidden" name="_meta_casier" value="sms" />
<ul class="">
<li class="fieldset">
<h3 class="legend"><:sms:choix_prestataire:></h3>
<ul>
<li class="editer">
<input type="radio" name="prestataire" id="aucun" value="" [(#ENV{prestataire}|=={""}|oui) checked]><:sms:aucun:>
<input type="radio" name="prestataire" id="smsfactor" value="smsfactor" [(#ENV{prestataire}|=={smsfactor}|oui) checked]>SMS Factor
<input type="radio" name="prestataire" id="octopush" value="octopush" [(#ENV{prestataire}|=={octopush}|oui) checked]>Octopush
</li>
</ul>
</li>
<li class="fieldset smsfactor">
<h3 class="legend">SMS Factor</h3>
<p class="explication"><:sms:explication_smsfactor:></p>
<ul>
<li class="editer">
<label for="login_smsfactor"><:sms:login:></label>
<input type="text" name="login_smsfactor" value="[(#ENV{login_smsfactor})]" placeholder="mon_mail@spip.net" size="58">
</li>
<li class="editer">
<label for="login_smsfactor"><:sms:mot_de_passe:></label>
<input type="password" name="mdp_smsfactor" value="[(#ENV{mdp_smsfactor})]" size="58">
</li>
<li class="editer">
<p class="explication"><:sms:explication_expediteur:></p>
<label for="expediteur_smsfactor"><:sms:expediteur:></label>
<input type="text" name="expediteur_smsfactor" value="[(#ENV{expediteur_smsfactor})]" size="11">
</li>
</ul>
</li>
<li class="fieldset octopush">
<h3 class="legend">Octopush</h3>
<p class="explication"><INCLURE{fond=inclure/octopush_balance} /></p>
<ul>
<li class="editer">
<label for="login_octopush"><:sms:login:></label>
<input type="text" name="login_octopush" value="[(#ENV{login_octopush})]" placeholder="mon_mail@spip.net" size="58">
</li>
<li class="editer">
<label for="login_octopush"><:sms:cle_api:></label>
<input type="password" name="cle_api_octopush" value="[(#ENV{cle_api_octopush})]" size="58">
</li>
<li class="editer">
<p class="explication"><:sms:explication_expediteur:></p>
<label for="expediteur_octopush"><:sms:expediteur:></label>
<input type="text" name="expediteur_octopush" value="[(#ENV{expediteur_octopush,#NOM_SITE_SPIP})]" size="11">
</li>
<li class="editer">
<label for="mode_octopush"><:sms:mode_octopush:></label>
<p class="explication"><:sms:explication_mode_octopush:></p>
<input type="radio" name="mode_octopush" id="real" value="real" [(#ENV{mode_octopush}|=={real}|ou{#ENV{mode_octopush}|=={""}}|oui) checked]><:sms:reel:>
<input type="radio" name="mode_octopush" id="simu" value="simu" [(#ENV{mode_octopush}|=={simu}|oui) checked]><:sms:simulation:>
</li>
</ul>
</li>
<p class="boutons"> <input type="submit" class="submit" value="<:bouton_enregistrer:>" /></p>
</form>
</div>