petits correctifs
This commit is contained in:
parent
18963d115b
commit
0dc13592f9
|
@ -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,22 +11,21 @@
|
||||||
{% 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">
|
<a style="cursor:pointer" onClick="bigWidget({{entity.id}})">
|
||||||
<a style="cursor:pointer" onClick="bigWidget({{entity.id}})">
|
{% if entity.icon %}
|
||||||
{% if entity.icon %}
|
<img src="/{{ alias }}/{{ entity.icon.label }}" class="logo" title="{{ entity.name }}"/>
|
||||||
<img src="/{{ alias }}/{{ entity.icon.label }}" class="logo" title="{{ entity.name }}"/>
|
{% else %}
|
||||||
{% else %}
|
<img src="/{{ alias }}/uploads/icon/icon_pin.png" class="logo" title="{{ entity.name }}"/>
|
||||||
<img src="/{{ alias }}/uploads/icon/icon_pin.png" class="logo" title="{{ entity.name }}"/>
|
{% endif %}
|
||||||
{% endif %}
|
</a>
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
</div>
|
||||||
|
{% 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