petits correctifs
This commit is contained in:
parent
18963d115b
commit
0dc13592f9
|
@ -638,7 +638,7 @@ class PagewidgetController extends Controller
|
|||
}
|
||||
|
||||
// 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
|
||||
|
|
|
@ -18,6 +18,7 @@ class ItemRepository extends EntityRepository
|
|||
if($user)
|
||||
$bookmarks=$this->getEntityManager()->getRepository("CadolesPortalBundle:Bookmark")->findBy(["user"=>$user]);
|
||||
|
||||
|
||||
// Bookmark lié à un item
|
||||
$bookmarksitems=new ArrayCollection();
|
||||
if($withbookmark==0) {
|
||||
|
|
|
@ -709,7 +709,7 @@
|
|||
html+='<div class="grid-gutter-sizer"></div>';
|
||||
files.forEach(function(file) {
|
||||
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);
|
||||
|
||||
html+='<div class="grid-item grid-small">';
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
{% set stylewidgetheader = constants.mystylewidgetheader(entity) %}
|
||||
{% set stylewidgetbody = constants.mystylewidgetbody(entity) %}
|
||||
|
||||
{% if canupdate or alerts|length>0 %}
|
||||
{%if mini %}
|
||||
<div class="widget widget-mini widget-projalertect" data-id="{{ entity.id }}" loc="{{ entity.loc }}">
|
||||
<div class="widgetheader">
|
||||
|
@ -25,8 +24,8 @@
|
|||
</div>
|
||||
</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="widgetmenu">
|
||||
{% if canupdate %}
|
||||
<i class="fa fa-trash fa-fw" title="Supprimer le Widget" onClick="delWidget({{ entity.id }})" style="{{ stylewidgetmenu }}"></i>
|
||||
|
|
Loading…
Reference in New Issue