ajout d'une fiche si non existante et test selon l'etat de la fiche courante
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
</th>
|
||||
<td>
|
||||
<input type="text" name="fraisForfait-<?= $value['fId'] ?>" class="form-control frsFrt"
|
||||
id="<?= $key ?>" value="<?= $value['lfQuantite'] ?>">
|
||||
id="<?= $key ?>" value="<?= $value['lfQuantite'] ?>" <?= $disabled ?>>
|
||||
</td>
|
||||
<td id="mttFrs-<?= $key ?>" data-price="<?= $value['fMontant'] ?>">
|
||||
<?= $value['fMontant'] ?> €
|
||||
@@ -86,11 +86,11 @@
|
||||
<td>
|
||||
<?php
|
||||
if ($typeUser === 'comptable') { ?>
|
||||
<button type="button" class="btn btn-outline-primary btnRefuseFraisHf" id="frsSup-<?= $key ?>">
|
||||
<button type="button" class="btn btn-outline-primary btnRefuseFraisHf" id="frsSup-<?= $key ?>" <?= $disabled ?>>
|
||||
Refuser
|
||||
</button>
|
||||
<?php } elseif ($typeUser === 'visiteur') { ?>
|
||||
<button type="button" class="btn btn-outline-primary btnSuprFraisHf" id="frsSup-<?= $key ?>">
|
||||
<button type="button" class="btn btn-outline-primary btnSuprFraisHf" id="frsSup-<?= $key ?>" <?= $disabled ?>>
|
||||
Supprimer
|
||||
</button>
|
||||
<?php } ?>
|
||||
@@ -102,6 +102,9 @@
|
||||
<!--
|
||||
Formulaire d'ajout de frais HF
|
||||
-->
|
||||
<?php
|
||||
if ($disabled !== 'disabled'):
|
||||
?>
|
||||
<tr class="newFraisForm">
|
||||
<td>
|
||||
<!-- Date form -->
|
||||
@@ -115,6 +118,7 @@
|
||||
<td><input type="file" class="form-control"></td>
|
||||
<td><button type="button" class="btn btn-outline-primary validFraisHF">Valider</button></td>
|
||||
</tr>
|
||||
<?php endif ?>
|
||||
<tr>
|
||||
<td colspan="2" class="border-0"></td>
|
||||
<td class="table-primary" id="total-frais-HF">TOTAL: 0€</td> <!--COMPLETE HERE -->
|
||||
@@ -137,7 +141,15 @@
|
||||
<textarea name="commentaireFiche" id="commentaireFiche" class="form-control border-black"></textarea>
|
||||
</div>
|
||||
-->
|
||||
<div class="col-3 d-flex mx-auto my-5 justify-content-center">
|
||||
<button type="button" class="btn btn-outline-primary btn-lg">Envoyer la Fiche</button>
|
||||
</div>
|
||||
<?php
|
||||
/**
|
||||
* Affiche le bouton si fiche non cloturé
|
||||
*/
|
||||
if ($status === 'CR'):
|
||||
?>
|
||||
<div class="col-3 d-flex mx-auto my-5 justify-content-center">
|
||||
<button type="button" class="btn btn-outline-primary btn-lg" data-uType="<?= $typeUser ?>">Envoyer la Fiche
|
||||
</button>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<script src="../include/newFiche.js"></script>
|
Reference in New Issue
Block a user