envole
This commit is contained in:
parent
92eb9d5942
commit
a8b9867f61
|
@ -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 {
|
||||
|
|
|
@ -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('');
|
||||
}
|
||||
|
||||
|
|
|
@ -53,20 +53,22 @@
|
|||
{% for group in groups %}
|
||||
<div class="grid-item grid-small" style="{{ stylewidgetbodyreverse }};">
|
||||
<a href="{{path('cadoles_core_home',{id:group.id})}}" target="_top" style="{{ stylewidgetbodyreverse }};">
|
||||
<div class="grid-item-content" style="background-color:{{ group.color ? "#"~group.color : '#'~colormain }}">
|
||||
<div class="grid-item-logo">
|
||||
{% if group.icon %}
|
||||
<img class="grid-item-img" height="110" src="/{{ alias }}{{ group.icon }}" />
|
||||
{% else %}
|
||||
<img class="grid-item-img" height="110" src="/{{ alias }}/uploads/icon/icon_users.png" />
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="item-link clearfix">
|
||||
<div class="grid-item-content" style="background-color:{{ group.color ? "#"~group.color : '#'~colormain }}">
|
||||
<div class="grid-item-logo">
|
||||
{% if group.icon %}
|
||||
<img class="grid-item-img" height="110" src="/{{ alias }}{{ group.icon }}" />
|
||||
{% else %}
|
||||
<img class="grid-item-img" height="110" src="/{{ alias }}/uploads/icon/icon_users.png" />
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="grid-item-title">
|
||||
<h2>{{ group.title }}</h2>
|
||||
<div class="grid-item-title">
|
||||
<h2>{{ group.title }}</h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
@ -74,16 +76,18 @@
|
|||
{% if canadd %}
|
||||
<div class="grid-item grid-small" style="{{ stylewidgetbodyreverse }};">
|
||||
<a href="{{path('cadoles_core_user_group_submit')}}" target="_top" style="{{ stylewidgetbodyreverse }};">
|
||||
<div class="grid-item-content">
|
||||
<div class="grid-item-logo">
|
||||
<img class="grid-item-img" height="110" src="/{{ alias }}/uploads/icon/icon_add.png" />
|
||||
</div>
|
||||
<div class="item-link clearfix">
|
||||
<div class="grid-item-content">
|
||||
<div class="grid-item-logo">
|
||||
<img class="grid-item-img" height="110" src="/{{ alias }}/uploads/icon/icon_add.png" />
|
||||
</div>
|
||||
|
||||
|
||||
<div class="grid-item-title">
|
||||
Ajouter un groupe
|
||||
<div class="grid-item-title">
|
||||
<h2>Ajouter un groupe</h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue