Ajout (dé)sélection globale
Suppression de code inutile Le numéro de reçu devient le numéro de membre FossilOrigin-Name: 3c547eb17e551fff833728a9b3bf6deb4693b1e021c9d55685b054cab930c5cf
This commit is contained in:
parent
41c93cf556
commit
c72996befe
4 changed files with 54 additions and 111 deletions
|
|
@ -1,41 +1,5 @@
|
|||
{include file="admin/_head.tpl" title="%s"|args:$plugin.nom current="plugin_%s"|args:$plugin.id}
|
||||
|
||||
{* barre de navigation
|
||||
<nav class="tabs noprint">
|
||||
<ul>
|
||||
<li><a>Page 1</a></li>
|
||||
<li><a>Page 2</a></li>
|
||||
<li><a>Page 3</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
*}
|
||||
{* TODO : Temporaire - à supprimer (?) *}
|
||||
<h2>Liste des activités, cotisations et comptes associés</h2>
|
||||
<table class="list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th>Description</th>
|
||||
<th>Tarif</th>
|
||||
<th>Description</th>
|
||||
<th>N° Compte</th>
|
||||
<th>Nom Compte</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$activitesTarifsComptes item="activite"}
|
||||
<tr>
|
||||
<td>{$activite.label}</td>
|
||||
<td>{$activite.descService}</td>
|
||||
<td>{$activite.tarif}</td>
|
||||
<td>{$activite.descTarif}</td>
|
||||
<td>{$activite.numero_cpt}</td>
|
||||
<td>{$activite.nom_cpt}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<h2>Liste des versements par activité et tarif</h2>
|
||||
|
||||
{* TODO : vérifier le détail de ce div *}
|
||||
|
|
@ -46,6 +10,15 @@
|
|||
|
||||
<form method="post" action="action.php" class="memberList">
|
||||
|
||||
<fieldset class="versements" id="versements_global">
|
||||
<input
|
||||
type="checkbox"
|
||||
class="check_global"
|
||||
id="check_global"
|
||||
onclick="cocherDecocherTout(check_global)" />
|
||||
<label for="check_global">Cliquer pour cocher toutes les lignes</label>
|
||||
</fieldset>
|
||||
|
||||
{* Itération sur les activités *}
|
||||
{foreach from=$listeParActiviteEtTarif item="activite"}
|
||||
|
||||
|
|
@ -53,7 +26,7 @@
|
|||
{foreach from=$activite->tarifs item="tarif"}
|
||||
|
||||
<details open="open">
|
||||
<summary>
|
||||
<summary class="activite">
|
||||
<h3>Activité « {$activite->label} »</h3>
|
||||
{if !empty($activite->description)}
|
||||
<h4>{$activite->description}</h4>
|
||||
|
|
@ -82,14 +55,14 @@
|
|||
{/if}
|
||||
{* Afficher les infos de la personne *}
|
||||
<?php $idVersements = $versement->idTarif."_".$versement->idUser; ?>
|
||||
<h3>Versements de {$versement.nom} : <span id="total_{$idVersements}">0,00 €</span></h3>
|
||||
<h3 class="personne">Versements de {$versement.nom} : <span id="total_{$idVersements}">0,00 €</span></h3>
|
||||
<fieldset class="versements" id="versements_{$idVersements}">
|
||||
<input
|
||||
type="checkbox"
|
||||
class="check_{$idVersements}"
|
||||
id="check_{$idVersements}"
|
||||
onclick="cocherDecocherPersonne(check_{$idVersements}, total_{$idVersements})" />
|
||||
<label for="check_{$idVersements}" style="font-weight:bold;">Cliquer pour cocher toutes les lignes</label>
|
||||
<label for="check_{$idVersements}">Cliquer pour cocher toutes les lignes</label>
|
||||
<br />
|
||||
<hr>
|
||||
<?php $currentUser = $versement->idUser; ?>
|
||||
|
|
@ -122,9 +95,6 @@
|
|||
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
// activer l'écouteur sur la première case de chaque table
|
||||
// window.addEventListener("load", activerListener);
|
||||
|
||||
// ouvrir/fermer les détails
|
||||
document.querySelector('#open_details').onclick = () => {
|
||||
document.querySelectorAll('details').forEach((e) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue