modernisation code ; simplification affichage
FossilOrigin-Name: e1b162c4d12b471d8f71c44e29fcce22c466ce789434c6780d2439bb14f3b761
This commit is contained in:
parent
3bbe2e4ac9
commit
1888314fa7
5 changed files with 109 additions and 77 deletions
|
|
@ -71,14 +71,8 @@ $tpl->register_function('afficher_debut_personne', function ($params)
|
|||
|
||||
$personne = $_SESSION['membresDonateurs'][$idUser];
|
||||
$out = '<details class="personne" open="open">
|
||||
<summary class="personne">';
|
||||
$out .= sprintf('<h4 class="personne">Versements de %s : <span class="total" id="total_%s">0,00 €</span></h4>',
|
||||
$personne->nomPrenom,
|
||||
$idVersement);
|
||||
$out .= '</summary>';
|
||||
$out .= sprintf('
|
||||
<fieldset class="versements" id="versements_%s">',
|
||||
$idVersement);
|
||||
<summary class="personne">
|
||||
<h4 class="personne">';
|
||||
$out .= sprintf('
|
||||
<input type="checkbox" id="check_%s"',
|
||||
$idVersement);
|
||||
|
|
@ -86,10 +80,15 @@ $tpl->register_function('afficher_debut_personne', function ($params)
|
|||
$idVersement,
|
||||
$idVersement);
|
||||
$out .= sprintf('
|
||||
<label for="check_%s">Cliquer pour cocher toutes les lignes</label>',
|
||||
<label for="check_%s"></label>',
|
||||
$idVersement);
|
||||
$out .= sprintf('%s : <span class="total" id="total_%s">0,00 €</span>',
|
||||
$personne->nomPrenom,
|
||||
$idVersement);
|
||||
$out .= '</h4></summary>';
|
||||
$out .= sprintf('
|
||||
<fieldset class="versements" id="versements_%s">',
|
||||
$idVersement);
|
||||
$out .= '<br />
|
||||
<hr>';
|
||||
return $out;
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue