simplification de la configuration et des choix de tarifs et taux
FossilOrigin-Name: 0887b9389829b41439ac7ff12d1594b40573d3a049298e311100165fccb4a567
This commit is contained in:
parent
8147e5791a
commit
6d49553ed1
4 changed files with 43 additions and 10 deletions
|
|
@ -54,8 +54,13 @@
|
|||
{foreach from=$plugin_config->reduction item="reduc"}
|
||||
{if $reduc->valeur == 1}
|
||||
<span class="radio-btn">
|
||||
<input type="radio" id="{$reduc->taux}"
|
||||
name="taux_reduction" value="{$reduc->taux}" />
|
||||
<input
|
||||
type="radio"
|
||||
id="{$reduc->taux}"
|
||||
name="taux_reduction"
|
||||
value="{$reduc->taux}"
|
||||
{if $nbTaux == 1}checked{/if}
|
||||
/>
|
||||
<label for="{$reduc->taux}">{$reduc->taux}{if $reduc->remarque != ""} - {$reduc->remarque}{/if}</label>
|
||||
</span>
|
||||
{/if}
|
||||
|
|
@ -87,7 +92,20 @@
|
|||
{foreach from=$activitesTarifsComptes item="activite"}
|
||||
<tr>
|
||||
<td>
|
||||
{input type="checkbox" name="tarifs[]" value=$activite.idTarif}
|
||||
{if $nbTarifs == 1}
|
||||
{input
|
||||
type="checkbox"
|
||||
name="tarifs[]"
|
||||
value=$activite.idTarif
|
||||
checked="checked"
|
||||
}
|
||||
{else}
|
||||
{input
|
||||
type="checkbox"
|
||||
name="tarifs[]"
|
||||
value=$activite.idTarif
|
||||
}
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
<span>{$activite.titreActivite} - {$activite.titreTarif}</span>
|
||||
|
|
@ -96,8 +114,14 @@
|
|||
{foreach from=$plugin_config->reduction item="reduc"}
|
||||
{if $reduc->valeur == 1}
|
||||
<span class="radio-btn">
|
||||
<input type="radio" id="taux_{$reduc->taux}_{$activite.idTarif}"
|
||||
name="taux_reduction_{$activite.idTarif}" value="{$reduc->taux}" disabled />
|
||||
<input
|
||||
type="radio"
|
||||
id="taux_{$reduc->taux}_{$activite.idTarif}"
|
||||
name="taux_reduction_{$activite.idTarif}"
|
||||
value="{$reduc->taux}"
|
||||
{if $nbTarifs > 1}disabled{/if}
|
||||
{if $nbTaux == 1}checked{/if}
|
||||
/>
|
||||
<label for="taux_{$reduc->taux}_{$activite.idTarif}">{$reduc->taux}{if $reduc->remarque != ""} - {$reduc->remarque}{/if}</label>
|
||||
</span>
|
||||
{/if}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue