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

WIP

parent 752ea8d4
Loading
Loading
Loading
Loading
Loading
+2 −1
Changes for module/Application/config/merged/categorie.config.php: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ use Application\Form\AssocierCategories\AssocierCategoriesForm;
use Application\Form\AssocierCategories\AssocierCategoriesFormFactory;
use Application\Form\AssocierCategories\AssocierCategoriesHydrator;
use Application\Form\AssocierCategories\AssocierCategoriesHydratorFactory;
use Application\Form\Categorie\CategorieForm;
use Application\Form\Categorie\CategorieFormFactory;
use Application\Form\Categorie\CategorieHydrator;
use Application\Form\Categorie\CategorieHydratorFactory;
@@ -184,7 +185,7 @@ return [
    'form_elements' => [
        'factories' => [
            AssocierCategoriesForm::class => AssocierCategoriesFormFactory::class,
            CategorieServiceFactory::class => CategorieFormFactory::class,
            CategorieForm::class => CategorieFormFactory::class,
        ],
    ],
    'hydrators' => [
+2 −2
Changes for module/Application/config/module.config.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -73,14 +73,14 @@ return [
                        'route' => 'home',
                        'pages' => [
                            'application' => [
                                'label' => 'Gestion des applications',
                                'label' => 'Applications',
                                'route' => 'application',
                                'resource' => PrivilegeController::getResourceId(ApplicationController::class, 'index'),
                                'order'    => 1000,
                                'icon' => 'fas fa-angle-right',
                            ],
                            'categorie' => [
                                'label' => 'Gestion des catégories',
                                'label' => 'Catégories',
                                'route' => 'categorie',
                                'resource' => PrivilegeController::getResourceId(CategorieController::class, 'index'),
                                'order'    => 1000,
+1 −1
Changes for module/Application/src/Application/Form/Categorie/CategorieFormFactory.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -2,8 +2,8 @@

namespace Application\Form\Categorie;

use Interop\Container\ContainerInterface;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\ContainerInterface;
use Psr\Container\NotFoundExceptionInterface;

class CategorieFormFactory {
+2 −1
Changes for module/Application/src/Application/Form/Categorie/CategorieHydratorFactory.php: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -2,7 +2,8 @@

namespace Application\Form\Categorie;

use Interop\Container\ContainerInterface;

use Psr\Container\ContainerInterface;

class CategorieHydratorFactory {

+50 −1
Changes for module/Application/view/application/application/afficher.phtml: 50 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -11,4 +11,53 @@ $this->headTitle($application->getLibelle());

?>

<span class="todo">...</span>
 No newline at end of file
<div class="row">
    <div class="col-md-6">
        <dl>
            <dt>Libellé </dt>
            <dd> <?php echo $application->getLibelle(); ?> </dd>
            <dt>Description </dt>
            <dd> <?php echo ($application->getDescription())??"Aucune description"; ?> </dd>
            <dt>Lien </dt>
            <dd>
                <?php if ($application->getLien()): ?>
                    <a href="<?php echo $application->getLien(); ?>" target="_blank">
                        <?php echo $application->getLien(); ?></a>
                <?php else :?>
                    Aucun lien
                <?php endif; ?>
            </dd>
            <dt> Catégorie·s associée·s </dt>
            <dd>
                <?php $categories = $application->getCategories(); ?>
                <?php if (empty($categories)) : ?>
                    Aucune catégorie
                <?php else: ?>
                    <ul>
                        <?php foreach ($categories as $category) : ?>
                            <li> <?php echo $category->getLibelle(); ?> </li>
                        <?php endforeach; ?>
                    </ul>
                <?php endif; ?>
            </dd>
        </dl>
    </div>
    <div class="col-md-6">
        <dl class="row">
            <dt>Dernière modification</dt>
            <dd>
                Le <?php echo $application->getHistoModification()->format('d/m/Y à H:i'); ?>
                <br>
                par <?php echo $application->getHistoModificateur()->getDisplayName(); ?>
            </dd>
            <?php if ($application->estHistorise()) : ?>
                <dt> Historisation </dt>
                <dd>
                    Le <?php echo $application->getHistoDestruction()->format('d/m/Y à H:i'); ?>
                    <br>
                    par <?php echo $application->getHistoDestructeur()->getDisplayName(); ?>
                </dd>
            <?php endif; ?>
        </dl>
    </div>
</div>
 No newline at end of file
Loading