Commit b853edec authored by joriot221's avatar joriot221
Browse files

Caché le bloc d'heure validé mais non contractualisé

parent 630f822e
Loading
Loading
Loading
Loading
+4 −4
Changes for module/Application/view/application/contrat/index.phtml: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@ $this->messenger() ?>
<?php if ($contrats || $services['non-contractualises']): ?>

    <?php if ($services['non-contractualises']): ?>
        <?php if (!$hasContrat || $avenant): ?>
            <table class="table table-bordered table-hover">
            <tr>
                <th class="structure">Composante</th>
@@ -65,7 +66,6 @@ $this->messenger() ?>
                    <td>
                        <?php if ($canCreer): ?>

                            <?php if (!$hasContrat || $avenant): ?>
                                <a class="btn btn-primary"
                                   href="<?= $this->url('contrat/creer', ['intervenant' => $intervenant->getId(), 'structure' => $structure->getId()]); ?>">
                                    <i class="fas fa-file"></i> Créer un
@@ -73,9 +73,7 @@ $this->messenger() ?>

                                    projet <?= $hasContrat ? 'd\'avenant' : 'de contrat' ?>
                                </a>
                            <?php else: ?>
                                La création d'avenant n'est pas autorisé
                            <?php endif; ?>


                        <?php else:
                            echo $this->feuilleDeRoute($intervenant)->renderWhyNonAtteignable(\Application\Entity\Db\WfEtape::CODE_CONTRAT, $structure);
@@ -96,7 +94,9 @@ $this->messenger() ?>
                    </td>
                </tr>
            <?php endforeach; ?>
        <?php endif; ?>
        </table>

    <?php endif; ?>
    <div class="well">
        <h2>Contrats et avenants</h2>