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

ajustement

parent 0db94807
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -20,8 +20,8 @@ $formation = $journee->getInstance()->getFormation();
        <th style="width:8rem; text-align:left; "> Intitulé </th>
        <td> <?php echo $formation->getLibelle(); ?> </td>
    </tr><tr>
        <th style="width:8rem; text-align:left; "> Horaire </th>
        <td> <?php echo $journee->getJour()->format('d/m/Y'); ?> du <?php echo $journee->getDebut(); ?> au <?php echo $journee->getFin(); ?> </td>
        <th style="width:8rem; text-align:left; "> Date </th>
        <td> <?php echo $journee->getJour()->format('d/m/Y'); ?> de <?php echo $journee->getDebut(); ?> à <?php echo $journee->getFin(); ?> </td>
    </tr><tr>
        <th style="width:8rem; text-align:left; ">Lieu </th>
        <td><?php echo $journee->getLieu(); ?></td>
+12 −1
Original line number Diff line number Diff line
@@ -33,12 +33,23 @@ return [
                    'options' => [
                        'route' => 'synchroniser-all',
                        'defaults' => [
                            /** @see SynchronisationConsoleController::synchroniseAllAction() */
                            /** @see SynchronisationConsoleController::synchroniserAllAction() */
                            'controller' => SynchronisationConsoleController::class,
                            'action' => 'synchroniser-all'
                        ],
                    ],
                ],
                'synchroniser' => [
                    'type' => Simple::class,
                    'options' => [
                        'route' => 'synchroniser [--name=]',
                        'defaults' => [
                            /** @see SynchronisationConsoleController::synchroniserAction() */
                            'controller' => SynchronisationConsoleController::class,
                            'action' => 'synchroniser'
                        ],
                    ],
                ],
            ],
        ],
    ],
+8 −0
Original line number Diff line number Diff line
@@ -25,4 +25,12 @@ class SynchronisationConsoleController extends ConsoleController {
        }
        return "done!\n";
    }

    public function synchroniserAction() : string
    {
        $request = $this->getRequest();
        $name = $request->getParam('name');
        echo $this->getSynchronisationService()->synchronise($name);
        return "done!\n";
    }
}
 No newline at end of file