partie front et recup data (newFiche)
This commit is contained in:
@@ -20,23 +20,30 @@
|
||||
</thead>
|
||||
<tbody class="table-group-divider border-secondary-subtle">
|
||||
<?php
|
||||
foreach ($typesFraisForfaitaires as $key => $value):
|
||||
foreach ($listeFraisForfaitaire as $key => $value):
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">
|
||||
<?= $value['fLibelle'] ?>
|
||||
</th>
|
||||
<td><input type="text" name="fraisForfait-<?= $value['fId'] ?>" class="form-control"></td>
|
||||
<td>
|
||||
<input type="text" name="fraisForfait-<?= $value['fId'] ?>" class="form-control frsFrt"
|
||||
id="<?= $key ?>" value="<?= $value['lfQuantite'] ?>">
|
||||
</td>
|
||||
<td id="mttFrs-<?= $key ?>" data-price="<?= $value['fMontant'] ?>">
|
||||
<?= $value['fMontant'] ?> €
|
||||
</td>
|
||||
<td>0€</td>
|
||||
<td id="totalFrs-<?= $key ?>">
|
||||
<?= $value['fTotal'] ?>€
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
endforeach;
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td colspan="3" class="border-0"></td>
|
||||
<td class="prixTotalFrsF"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -57,20 +64,45 @@
|
||||
<th>Valider</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="table-group-divider border-secondary-subtle">
|
||||
<tr>
|
||||
<td scope="row">23/12/2023</td>
|
||||
<td>Salle de réunion</td>
|
||||
<td>130 €</td>
|
||||
<td>facture.pdf</td>
|
||||
<td><button type="button" class="btn btn-outline-primary">Supprimer</button></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td scope="row"><input class="form-control" type="date"></td>
|
||||
<td><input type="text" class="form-control" placeholder="saisir un titre"></td>
|
||||
<td><input type="text" class="form-control" placeholder="Saisir un Montant"></td>
|
||||
<tbody class="table-group-divider border-secondary-subtle fraisHFGroup">
|
||||
<?php
|
||||
foreach ($listeFraisHf as $key => $value):
|
||||
?>
|
||||
<tr id="fraisHf-<?= $key ?>" class="fraisHF">
|
||||
<td scope="row" id="dateFrsHF">
|
||||
<?= $value['lhDate'] ?>
|
||||
</td>
|
||||
<td id="LibelleFrsHF">
|
||||
<?= $value['lhLibelle'] ?>
|
||||
</td>
|
||||
<td id="MttFrsHF">
|
||||
<?= $value['lhMontant'] ?> €
|
||||
</td>
|
||||
<td>
|
||||
<?= $value['lhJustificatif'] == 1 ? 'ok' : 'non fournis' ?>
|
||||
</td>
|
||||
<td>
|
||||
<button type="button" class="btn btn-outline-primary btnSuprFraisHf" id="frsSup-<?= $key ?>">
|
||||
Supprimer
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
endforeach;
|
||||
?>
|
||||
<!--
|
||||
Formulaire d'ajout de frais HF
|
||||
-->
|
||||
<tr class="newFraisForm">
|
||||
<td scope="row">
|
||||
<input name="dateHf" class="form-control" id="dateHf" type="date" min="2020-11-01" max="2020-11-30">
|
||||
</td>
|
||||
<td><input type="text" name="libelleHf" id="libelleHf" class="form-control"
|
||||
placeholder="saisir un titre"></td>
|
||||
<td><input type="text" name="mttHf" id="mttHf" class="form-control" placeholder="Saisir un Montant">
|
||||
</td>
|
||||
<td><input type="file" class="form-control"></td>
|
||||
<td><button type="button" class="btn btn-outline-primary">Valider</button></td>
|
||||
<td><button type="button" class="btn btn-outline-primary validFraisHF">Valider</button></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -84,4 +116,5 @@
|
||||
</div>
|
||||
<div class="col-3 d-flex mx-auto my-5 justify-content-center">
|
||||
<button type="button" class="btn btn-outline-primary">Envoyer la Fiche</button>
|
||||
</div>
|
||||
</div>
|
||||
<script src="../include/newFiche.js"></script>
|
Reference in New Issue
Block a user