Commit d4b731c2 authored by joriot221's avatar joriot221
Browse files

ajout du bouton refus piece jointe

parent 5121f0fa
Loading
Loading
Loading
Loading
+12
Changes for module/Application/view/application/piece-jointe/validation.phtml: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -22,10 +22,22 @@ $params = [
       title="Valider la pièce justificative '<?= $pj->getType() ?>'"
       data-loading-text="Patientez..."
    >
        <?= $pj->getFichier()->count() ?>
        <i class="fas fa-thumbs-up"></i> Valider
    </a>
<?php endif ?>

<?php if (!$pj->getValidation() && $this->isAllowed(Privileges::getResourceId(Privileges::PIECE_JUSTIFICATIVE_REFUS_PIECE))): ?>

    <a class="refuser-pj btn btn-danger"
       href="<?= $this->url('piece-jointe/intervenant/refuser', $params, [], true) ?>"
       title="Refuser la pièce justificative '<?= $pj->getType() ?>'"
       data-loading-text="Patientez..."
    >
        <i class="fas fa-trash-can"></i> Refuser
    </a>
<?php endif ?>

    <!-- actions de dévalidation de la pièce jointe entière -->
<?php if ($pj->getValidation() && $this->isAllowed(Privileges::getResourceId(Privileges::PIECE_JUSTIFICATIVE_DEVALIDATION))): ?>
    <a class="devalider-pj btn btn-danger"