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

Texte d'accueil

parent ca9b5f7d
Loading
Loading
Loading
Loading
+2 −2
Changes for composer.json: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -11,9 +11,9 @@
  "require": {
    "unicaen/app": "5.1.9",
    "unicaen/authentification": "^5.0",
    "unicaen/utilisateur": "^5.0.5",
    "unicaen/utilisateur": "^5.0",
    "unicaen/privilege": "^5.0",
    "unicaen/renderer": "^5.0.5",
    "unicaen/renderer": "^5.0",
    "unicaen/pdf": "^5.0.1",
    "unicaen/mail": "^5.0.3",
    "unicaen/parametre": "^5.0",
+7 −1
Changes for module/Application/src/Application/Controller/IndexController.php: 7 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -4,9 +4,9 @@ namespace Application\Controller;

use Application\Provider\Role\RoleProvider as AppRoleProvider;
use Application\Entity\Db\Agent;
use Application\Provider\Template\TexteTemplate;
use Application\Service\Agent\AgentServiceAwareTrait;
use Application\Service\FichePoste\FichePosteServiceAwareTrait;
use EntretienProfessionnel\Provider\Role\EntretienProfessionnelRoles;
use EntretienProfessionnel\Service\Campagne\CampagneServiceAwareTrait;
use EntretienProfessionnel\Service\EntretienProfessionnel\EntretienProfessionnelServiceAwareTrait;
use Formation\Service\DemandeExterne\DemandeExterneServiceAwareTrait;
@@ -14,6 +14,7 @@ use Formation\Service\FormationInstanceInscrit\FormationInstanceInscritServiceAw
use Structure\Provider\Role\RoleProvider;
use Structure\Service\Structure\StructureServiceAwareTrait;
use UnicaenAuthentification\Service\Traits\UserContextServiceAwareTrait;
use UnicaenRenderer\Service\Rendu\RenduServiceAwareTrait;
use UnicaenUtilisateur\Entity\Db\Role;
use UnicaenUtilisateur\Entity\Db\User;
use UnicaenUtilisateur\Service\Role\RoleServiceAwareTrait;
@@ -25,6 +26,7 @@ class IndexController extends AbstractActionController
{
    use AgentServiceAwareTrait;
    use CampagneServiceAwareTrait;
    use RenduServiceAwareTrait;
    use RoleServiceAwareTrait;
    use StructureServiceAwareTrait;
    use UserServiceAwareTrait;
@@ -75,9 +77,13 @@ class IndexController extends AbstractActionController
            }
        }

        $rendu = $this->getRenduService()->generateRenduByTemplateCode(TexteTemplate::EMC2_ACCUEIL, [], false);
        $texte = $rendu->getCorps();

        return new ViewModel([
            'user' => $connectedUser,
            'role' => $connectedRole,
            'texte' => $texte,
        ]);
    }

+5 −1
Changes for module/Application/src/Application/Controller/IndexControllerFactory.php: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@ use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
use Structure\Service\Structure\StructureService;
use UnicaenAuthentification\Service\UserContext;
use UnicaenRenderer\Service\Rendu\RenduService;
use UnicaenUtilisateur\Service\Role\RoleService;
use UnicaenUtilisateur\Service\User\UserService;

@@ -29,6 +30,7 @@ class IndexControllerFactory {
        /**
         * @var AgentService $agentService
         * @var CampagneService $campagneService
         * @var RenduService $renduService
         * @var RoleService $roleService
         * @var StructureService $structureService
         * @var UserService $userService
@@ -42,6 +44,7 @@ class IndexControllerFactory {
         */
        $agentService = $container->get(AgentService::class);
        $campagneService = $container->get(CampagneService::class);
        $renduService = $container->get(RenduService::class);
        $roleService = $container->get(RoleService::class);
        $userService = $container->get(UserService::class);
        $userContext = $container->get(UserContext::class);
@@ -56,10 +59,11 @@ class IndexControllerFactory {
        $controller = new IndexController();
        $controller->setAgentService($agentService);
        $controller->setCampagneService($campagneService);
        $controller->setUserService($userService);
        $controller->setRenduService($renduService);
        $controller->setRoleService($roleService);
        $controller->setServiceUserContext($userContext);
        $controller->setStructureService($structureService);
        $controller->setUserService($userService);

        $controller->setFichePosteService($fichePosteService);
        $controller->setEntretienProfessionnelService($entretienProfessionelService);
+8 −0
Changes for module/Application/src/Application/Provider/Template/TexteTemplate.php: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
<?php

namespace Application\Provider\Template;

class TexteTemplate {

    const EMC2_ACCUEIL = 'EMC2_ACCUEIL';
}
 No newline at end of file
+6 −11
Changes for module/Application/view/application/index/index.phtml: 6 added lines, 11 removed lines.
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
 * @see \Application\Controller\IndexController::indexAction()
 * @var User $user
 * @var Role $role
 * @var string $texte
 */

use UnicaenUtilisateur\Entity\Db\Role;
@@ -15,27 +16,21 @@ use UnicaenUtilisateur\Entity\Db\User;

<div class="jumbotron" id="preecog">
    <div class="row">
        <div class="jumbo-title">
        <div class="col-md-3">
            <span style="font-size: 22pt;">
                <strong style="color:#19bd81;">E</strong>mploi <br/>
                &nbsp; <strong style="color:#19bd81;">M</strong>obilité <br/>
                &nbsp; &nbsp; <strong style="color:#19bd81;">C</strong>arrière <br/>
                &nbsp; &nbsp; &nbsp; <strong style="color:#19bd81;">C</strong>ompétences
                </span>
        </div>
        <div class="jumbo-logo">
            <img src="img/PrEECoG.svg" style="width:200px;"/>
            <br/>
        <div class="col-md-8">
                <?php echo $texte; ?>
        </div>
    </div>

    <br/>

    <p>
        <span class="jumbo-subtitle">
            EMC2 est un outil permettant la rédaction et la gestion des fiches métiers, fiches de postes, entretiens professionnels, ...
        </span>
    </p>

    <br/>


    <?php if ($user): ?>