modification mineures
FossilOrigin-Name: 4bbfe37468c90399ec476598d27d328876db01f0c1d710556f3ab36a95c6f172
This commit is contained in:
parent
fcac139b89
commit
979b1f4164
|
@ -1,16 +1,16 @@
|
|||
<!-- nav bar -->
|
||||
{include file="%s/templates/_nav.tpl"|args:$plugin_root current_nav="config"}
|
||||
|
||||
{form_errors}
|
||||
|
||||
<h2>Configuration</h2>
|
||||
|
||||
{if $ok && !$form->hasErrors()}
|
||||
{if isset($_GET['ok'])}
|
||||
<p class="block confirm">
|
||||
La configuration a bien été enregistrée.
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
{form_errors}
|
||||
|
||||
<form method="post" action="{$self_url}" enctype="multipart/form-data">
|
||||
<fieldset>
|
||||
<dl class="config">
|
||||
|
@ -24,17 +24,20 @@
|
|||
l'association)</b>
|
||||
</dt>
|
||||
<div id="articles_cgi">
|
||||
|
||||
{foreach from=$plugin_config->articlesCGI key="key" item="article"}
|
||||
{*
|
||||
À VÉRIFIER : {input : checked ne fonctionne pas si l'attribut name est un tableau...
|
||||
{input type="checkbox" name="articlesCGI[]" value=$key label=$article.titre}
|
||||
*}
|
||||
|
||||
<div class="article">
|
||||
<input type="checkbox" name="articlesCGI[]" id="article_{$key}" value="{$key}" class="choix"
|
||||
{if $article.valeur == 1}checked{/if} />
|
||||
<label for="article_{$key}">Article {$article.titre}</label>
|
||||
</div>
|
||||
{/foreach}
|
||||
|
||||
</div>
|
||||
</dl>
|
||||
|
||||
|
@ -45,12 +48,14 @@
|
|||
l'association)</b>
|
||||
</dt>
|
||||
<div id="taux_reduction">
|
||||
|
||||
{foreach from=$plugin_config->reduction key="key" item="taux"}
|
||||
<input type="checkbox" name="tauxReduction[]" id="taux_{$key}" value="{$key}" class="choix"
|
||||
{if $taux.valeur == 1}checked{/if} />
|
||||
<label for="taux_{$key}">Taux {$taux.taux}, ligne {$taux.ligne} de la déclaration
|
||||
{if $taux.remarque !== ""}({$taux.remarque})</label>{/if}
|
||||
{/foreach}
|
||||
|
||||
</div>
|
||||
</dl>
|
||||
</fieldset>
|
||||
|
@ -175,7 +180,7 @@
|
|||
<h3 class="warning">N'oubliez pas d'enregistrer, sinon les modifications ne seront pas prises en compte !</h3>
|
||||
|
||||
<p class="submit">
|
||||
{csrf_field key="recusfiscaux_config"}
|
||||
{csrf_field key=$csrf_key}
|
||||
{button type="submit" name="save" label="Enregistrer" shape="right" class="main" onclick="return verifierConfig(articles_cgi, taux_reduction)"}
|
||||
</p>
|
||||
</form>
|
||||
|
@ -186,7 +191,7 @@
|
|||
var lesDivs = document.querySelectorAll('.actions');
|
||||
for (i = 0; i < lesDivs.length; ++i) {
|
||||
var up = document.createElement('a');
|
||||
up.className = 'icn up';
|
||||
up.className = 'up icn-btn';
|
||||
up.innerHTML = '↑';
|
||||
up.title = 'Déplacer vers le haut';
|
||||
up.onclick = function(e) {
|
||||
|
|
Loading…
Reference in New Issue