From a8b9867f61feb1d1fdc9914557a03837bbfe4d9a Mon Sep 17 00:00:00 2001 From: afornerot Date: Wed, 27 Nov 2019 16:16:42 +0100 Subject: [PATCH] envole --- .../CoreBundle/Resources/public/css/style.css | 16 +++---- .../PortalBundle/Command/InitDataCommand.php | 45 +++++++++++++++++ .../views/Pagewidget/viewgroup.html.twig | 48 ++++++++++--------- 3 files changed, 77 insertions(+), 32 deletions(-) diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/public/css/style.css b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/public/css/style.css index 69449801..632f2ff3 100644 --- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/public/css/style.css +++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/public/css/style.css @@ -233,7 +233,7 @@ span.item-drag { } .grid-item .grid-item-content { - height: 100%; + /*height: 100%;*/ } .grid-item .grid-item-content:hover { @@ -265,7 +265,6 @@ span.item-drag { .grid-item-logo { display: inline-block; - padding: 10px; width: 40%; height: 150px; vertical-align: middle; @@ -274,27 +273,23 @@ span.item-drag { .grid-item .item-link img { display: block; - margin: 10px auto; max-width: 100%; max-height: 110px; height: auto; } -.grid-item-img { - filter: drop-shadow(1px 1px 1px #222); -} .grid-item .grid-item-title { display: inline-block; vertical-align: top; - padding: 15px 5px;; + padding: 0px 5px;; font-size: 12px; width: 50%; line-height: 1; } .grid-item .grid-item-title h2 { - font-size: 20px; + font-size: 17px; margin: 10px 0 0 0; border-bottom: 1px solid #fff; padding-bottom: 5px; @@ -392,7 +387,7 @@ a.item-heart { .grid .grid-small .grid-item-logo img { height: 60px; width: auto; - margin: 5px auto; + margin: 10px auto; } .grid .grid-small .grid-item-title { display: block; @@ -471,7 +466,7 @@ a.item-heart { /* Preview */ .grid .grid-preview { width:19.2%; - min-width:220px; + min-width:185px; height:auto; text-align: left; } @@ -513,6 +508,7 @@ a.item-heart { border: none; margin: 0px; padding: 0px; + font-size: 18px; } .grid .grid-preview .grid-item-title small { diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Command/InitDataCommand.php b/src/ninegate-1.0/src/Cadoles/PortalBundle/Command/InitDataCommand.php index 5c7de1f2..80248bbe 100644 --- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Command/InitDataCommand.php +++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Command/InitDataCommand.php @@ -1186,6 +1186,51 @@ class InitDataCommand extends ContainerAwareCommand $this->addWidget(-170,$entityPage,-1840,"R1C3",0,"Chat",false,$fields); } + // Template Accueil + $entityPage = $em->getRepository('CadolesPortalBundle:Page')->find(-200); + if(!$entityPage) { + $entityPagecategory = $em->getRepository('CadolesPortalBundle:Pagecategory')->find(2); + $entityPage = new Page(); + $entityPage->setId(-200); + $entityPage->setRowOrder(0); + $entityPage->setName('Accueil'); + $entityPage->setMaxwidth(1200); + $entityPage->setPagecategory($entityPagecategory); + $entityPage->setTemplate('{"rows":[{"id":0,"cols":[{"id":0,"size": 8,"rows":[{"id":0,"cols":[{"id":0,"size": 12}]},{"id":1,"cols":[{"id":0,"size": 6},{"id":1,"size": 6}]}]},{"id":1,"size": 4,"rows":[]}]}]}'); + $entityPage->addGroup($groupall); + + $em->persist($entityPage); + $em->flush(); + + // Widget Bureau Essentiel + $fields=["fields"=>[["id"=>"modedesktop","value"=>2]]]; + $this->addWidget(-200,$entityPage,-1850,"R1C1R1C1",0,"Bureau Essentiel",false,$fields); + + // Widget Blog + $fields=["fields"=>[["id"=>"nbarticle","value"=>5]]]; + $this->addWidget(-210,$entityPage,-1890,"R1C1R2C1",0,"Blog",false,$fields); + + // Widget Flux + $fields=["fields"=>[["id"=>"modelist","value"=>0]]]; + $this->addWidget(-220,$entityPage,-1970,"R1C1R2C2",0,"Flux",false,$fields); + + // Widget Annonce + $fields=["fields"=>[["id"=>"alertcategory","value"=>null]]]; + $this->addWidget(-230,$entityPage,-1980,"R1C2",0,"Annonces",false,$fields); + + // Widget Mes Groupes de Travail + $fields=["fields"=>[]]; + $this->addWidget(-240,$entityPage,-1830,"R1C2",1,"Mes Groupes",false,$fields); + + // Widget Actualités de mes Groupes + $fields=["fields"=>[["id"=>"nbarticle","value"=>1],["id"=>"modelist","value"=>1]]]; + $this->addWidget(-250,$entityPage,-1820,"R1C2",2,"Actualités de mes Groupes",false,$fields); + + // Widget Actualités de mes Groupes + $fields=["fields"=>[["id"=>"nbday","value"=>30]]]; + $this->addWidget(-260,$entityPage,-1900,"R1C2",3,"Calendrier",false,$fields); + } + $output->writeln(''); } diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Pagewidget/viewgroup.html.twig b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Pagewidget/viewgroup.html.twig index 6a70bcc1..05c2b773 100644 --- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Pagewidget/viewgroup.html.twig +++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Pagewidget/viewgroup.html.twig @@ -53,20 +53,22 @@ {% for group in groups %}
- {% endfor %} @@ -74,16 +76,18 @@ {% if canadd %}