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

Correction de bugs et de nommages suite reunion

parent 576251d0
Loading
Loading
Loading
Loading
+1 −1
Changes for module/Application/src/Application/Service/Activite/ActiviteService.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -105,7 +105,7 @@ class ActiviteService {
     * @param string $ordre
     * @return Activite[]
     */
    public function getActivites($champ = 'libelle', $ordre = 'ASC')
    public function getActivites($champ = 'id', $ordre = 'ASC')
    {
        $qb = $this->createQueryBuilder()
            ->addOrderBy('activite.' . $champ, $ordre)
+1 −1
Changes for module/Application/src/Application/View/Helper/partial/agent.phtml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -115,7 +115,7 @@ if (isset($options["retour"])) $query["retour"] = $options["retour"];
                        <?php echo $mission->getDecharge(); ?> h.
                        <?php if ($mission->estEnCours()) $cumulDecharge += $mission->getDecharge(); ?>
                    <?php else : ?>
                        Sans décharge
                        Aucun
                    <?php endif; ?>
                </td>
                <?php if ($mode === 'edition') : ?>
+6 −2
Changes for module/Application/src/Application/View/Helper/partial/fiche-metier.phtml: 6 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -80,12 +80,16 @@ if (isset($options['sans-titre'])) $sansTitre = ($options['sans-titre'] === true
<!-- MISSIONS PRINCIPALE ---------------------------------------------------------------------------------------------->

    <h2> Missions principales</h2>
    <?php $nb = 0; ?>

    <ul>
        <?php foreach ($activites as $activite) : ?>
            <?php if (array_search($activite->getActivite()->getId(), $activitesListe) !== false) : ?>
                <li>
                    <?php echo $activite->getActivite()->getLibelle(); ?>
                    <?php
                        $nb += 1;
                        echo $activite->getActivite()->getLibelle();
                    ?>
                </li>
            <?php endif; ?>
        <?php endforeach; ?>
@@ -98,7 +102,7 @@ if (isset($options['sans-titre'])) $sansTitre = ($options['sans-titre'] === true
        <div class="col-md-5">
            <h2>
                Activités associées
                <span class="badge"> <?php echo count($activites); ?> </span>
                <span class="badge"> <?php echo $nb; ?>/<?php echo count($activites); ?> </span>
            </h2>
        </div>
        <div class="pull-right" style="margin-right:1rem;">
+1 −1
Changes for module/Application/view/application/agent/partial/mission-specifique.phtml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ $canDetruireMission = $this->isAllowed($agent, AgentPrivileges::AGENT_ELEMEN
                    <?php echo $mission->getDecharge(); ?> h.
                    <?php if ($mission->estEnCours()) $cumulDecharge += $mission->getDecharge(); ?>
                <?php else : ?>
                    Sans décharge
                    Aucun
                <?php endif; ?>
            </td>
            <td>
+1 −1
Changes for module/Application/view/application/agent/partial/porte-folio.phtml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ $canDetruireFichier = $this->isAllowed($agent, AgentPrivileges::AGENT_ELEMEN

<div class="row">
    <div class="col-md-6">
        <h2> Porte-folio</h2>
        <h2> Portfolio</h2>
    </div>
    <div class="col-md-3 pull-right">
        <br/>
Loading