Merge branch 'master' into dist/envole/6/master
This commit is contained in:
commit
6f752a6b44
|
@ -638,7 +638,7 @@ class PagewidgetController extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
// Profilage
|
// Profilage
|
||||||
$itemsordered = $this->em->getRepository("CadolesPortalBundle:Item")->getUserItems($this->user,$bookmarks,$items,$itemcategorys,null,true,true);
|
$itemsordered = $this->em->getRepository("CadolesPortalBundle:Item")->getUserItems($this->user,$bookmarks,$items,$itemcategorys,null,0,true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Render
|
// Render
|
||||||
|
|
|
@ -18,6 +18,7 @@ class ItemRepository extends EntityRepository
|
||||||
if($user)
|
if($user)
|
||||||
$bookmarks=$this->getEntityManager()->getRepository("CadolesPortalBundle:Bookmark")->findBy(["user"=>$user]);
|
$bookmarks=$this->getEntityManager()->getRepository("CadolesPortalBundle:Bookmark")->findBy(["user"=>$user]);
|
||||||
|
|
||||||
|
|
||||||
// Bookmark lié à un item
|
// Bookmark lié à un item
|
||||||
$bookmarksitems=new ArrayCollection();
|
$bookmarksitems=new ArrayCollection();
|
||||||
if($withbookmark==0) {
|
if($withbookmark==0) {
|
||||||
|
|
|
@ -709,7 +709,7 @@
|
||||||
html+='<div class="grid-gutter-sizer"></div>';
|
html+='<div class="grid-gutter-sizer"></div>';
|
||||||
files.forEach(function(file) {
|
files.forEach(function(file) {
|
||||||
url="{{ path('cadoles_core_'~access~'_file_download',{'directory':'calendarevent-xxxx','filename':'yyyy' }) }}";
|
url="{{ path('cadoles_core_'~access~'_file_download',{'directory':'calendarevent-xxxx','filename':'yyyy' }) }}";
|
||||||
url=url.replace("xxxx",event.id);
|
url=url.replace("xxxx",$("#mymodal-event-mod #event_id").val());
|
||||||
url=url.replace("yyyy",file.name);
|
url=url.replace("yyyy",file.name);
|
||||||
|
|
||||||
html+='<div class="grid-item grid-small">';
|
html+='<div class="grid-item grid-small">';
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
{% set stylewidgetheader = constants.mystylewidgetheader(entity) %}
|
{% set stylewidgetheader = constants.mystylewidgetheader(entity) %}
|
||||||
{% set stylewidgetbody = constants.mystylewidgetbody(entity) %}
|
{% set stylewidgetbody = constants.mystylewidgetbody(entity) %}
|
||||||
|
|
||||||
{% if canupdate or alerts|length>0 %}
|
|
||||||
{%if mini %}
|
{%if mini %}
|
||||||
<div class="widget widget-mini widget-projalertect" data-id="{{ entity.id }}" loc="{{ entity.loc }}">
|
<div class="widget widget-mini widget-projalertect" data-id="{{ entity.id }}" loc="{{ entity.loc }}">
|
||||||
<div class="widgetheader">
|
<div class="widgetheader">
|
||||||
|
@ -25,8 +24,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
{% if canupdate or alerts|length>0 %}
|
||||||
<div class="widget {%if entity.border %} widget-bordered {%else%} widget-notbordered {%endif%} widget-alert" data-id="{{ entity.id }}" loc="{{ entity.loc }}" style="{{ stylewidget }}" height="{{ entity.height }}px">
|
<div class="widget {%if entity.border %} widget-bordered {%else%} widget-notbordered {%endif%} widget-alert" data-id="{{ entity.id }}" loc="{{ entity.loc }}" style="{{ stylewidget }}" height="{{ entity.height }}px">
|
||||||
|
|
||||||
<div class="widgetmenu">
|
<div class="widgetmenu">
|
||||||
{% if canupdate %}
|
{% if canupdate %}
|
||||||
<i class="fa fa-trash fa-fw" title="Supprimer le Widget" onClick="delWidget({{ entity.id }})" style="{{ stylewidgetmenu }}"></i>
|
<i class="fa fa-trash fa-fw" title="Supprimer le Widget" onClick="delWidget({{ entity.id }})" style="{{ stylewidgetmenu }}"></i>
|
||||||
|
|
Loading…
Reference in New Issue