Commit 88458fcc authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

[EMC2] Correction de titres de modal

parent bcc83c0e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
Version 4.2.0 (XX/11/2023)
Version 4.2.1 (04/12/2023)
====

Évolution
+29 −0
Original line number Diff line number Diff line
Version 4.2.2 (XX/12/2023)
====

Évolution
---
- [EMC2] Correction de titres de modal

Modification en BD
---

```postgresql
```

Evolution des librairies
---



```bash
```

```bash
rm -fr vendor
rm -fr composer.lock
composer install
```

Evolution des macros et templates
---
+2 −2
Original line number Diff line number Diff line
@@ -218,7 +218,7 @@ class FichePosteController extends AbstractActionController
        $fiche = $this->getFichePosteService()->getRequestedFichePoste($this);
        if ($fiche === null) $fiche = $this->getFichePosteService()->getLastFichePoste();

        if ($fiche->getEtatActif()->getType()->getCode() === FichePosteEtats::ETAT_CODE_SIGNEE) return $this->redirect()->toRoute('fiche-poste/afficher', ['structure' => $structure, 'fiche-poste' => $fiche->getId()], [], true);
        if ($fiche->getEtatActif() && $fiche->getEtatActif()->getType()->getCode() === FichePosteEtats::ETAT_CODE_SIGNEE) return $this->redirect()->toRoute('fiche-poste/afficher', ['structure' => $structure, 'fiche-poste' => $fiche->getId()], [], true);
        $agent = $fiche->getAgent();

        $applications = $this->getFichePosteService()->getApplicationsDictionnaires($fiche);
@@ -645,7 +645,7 @@ class FichePosteController extends AbstractActionController
        }

        return new ViewModel([
            'title' => "Sélection des formations pour la fiche de poste",
            'title' => "Sélection des compétences pour la fiche de poste",
            'ficheposte' => $ficheposte,
            'competences' => $competences,
        ]);
+4 −0
Original line number Diff line number Diff line
@@ -84,6 +84,7 @@ $canFichePosteValiderAgent = $this->isAllowed($fiche, FichePostePrivileges::FICH
    <div class="col-md-6">
        <?php if ($fiche->getAgent() !== null) : ?>
            <h2>État de la fiche de poste</h2>
            <?php if ($fiche->getEtatActif()) : ?>
                <?php $etattype = $fiche->getEtatActif()->getType(); ?>
                <?php echo $this->etattype($etattype); ?>
                <?php if ($etattype === FichePosteEtats::ETAT_CODE_SIGNEE) : ?>
@@ -91,6 +92,9 @@ $canFichePosteValiderAgent = $this->isAllowed($fiche, FichePostePrivileges::FICH
                <?php else : ?>
                    La fiche de poste n'est pas encore visée par l'agent·e.
                <?php endif; ?>
                <?php else : ?>
                    Pas d'état pour cette fiche
                <?php endif; ?>

            <br/>
            <?php if ($canFichePosteModifierEtat) : ?>
+5 −2
Original line number Diff line number Diff line
@@ -38,7 +38,8 @@ $date = new DateTime();
<table class="table table-condensed datatable">
    <thead>
    <tr>
        <th> Agent & Affectation </th>
        <th data-type="string"> Agent </th>
        <th>Affectation </th>
        <th> Fiches de poste </th>
    </tr>
    </thead>
@@ -46,8 +47,10 @@ $date = new DateTime();
    <?php foreach ($agents as $agent) : ?>
        <?php if ($agent instanceof StructureAgentForce) $agent = $agent->getAgent(); ?>
        <tr>
            <td data-order="<?php echo $agent->getDenomination(); ?>">
                <?php echo $agent->getDenomination(true); ?>
            </td>
            <td>
                <strong><?php echo $agent->getDenomination(); ?></strong> <br/>
                <?php
                    $affectation = $agent->getAffectationPrincipale();
                    $structure_ = ($affectation !== null)?$affectation->getStructure():null;