diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/PagewidgetController.php b/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/PagewidgetController.php index d32e9ede..ac6abe8f 100644 --- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/PagewidgetController.php +++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/PagewidgetController.php @@ -138,7 +138,7 @@ class PagewidgetController extends Controller // Notification création widget $groups=$page->getGroups(); - if($groups) { + if($groups[0]) { if($groups[0]->getFgcanshare()) { $message="Création Widget ".$entity->getName(); $usergroup=$em->getRepository("CadolesCoreBundle:Usergroup")->findOneBy(["group"=>$groups[0],"user"=>$this->getUser()]); @@ -283,7 +283,7 @@ class PagewidgetController extends Controller // Notification création widget $groups=$entity->getPage()->getGroups(); - if($groups) { + if($groups[0]) { if($groups[0]->getFgcanshare()) { $message="Suppression Widget ".$entity->getName(); $usergroup=$em->getRepository("CadolesCoreBundle:Usergroup")->findOneBy(["group"=>$groups[0],"user"=>$this->getUser()]); diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Pagewidget/viewalert.html.twig b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Pagewidget/viewalert.html.twig index 9cdfa329..460f8d3f 100644 --- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Pagewidget/viewalert.html.twig +++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Pagewidget/viewalert.html.twig @@ -15,8 +15,8 @@
{% if canupdate %}
- - + +
{% endif %} diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Pagewidget/viewappexternal.html.twig b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Pagewidget/viewappexternal.html.twig index f788e321..2bef057b 100644 --- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Pagewidget/viewappexternal.html.twig +++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Pagewidget/viewappexternal.html.twig @@ -30,8 +30,8 @@ {% if canupdate or canadd %}
{% if canupdate %} - - + + {% endif %}
{% endif %} diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Pagewidget/viewblog.html.twig b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Pagewidget/viewblog.html.twig index 80fa0fc6..28c84cd9 100644 --- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Pagewidget/viewblog.html.twig +++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Pagewidget/viewblog.html.twig @@ -21,19 +21,19 @@
{% if canupdate %} - - + + {% endif %} {% if access=="config" %} - + {% else %} {% set idblog = "" %} {% set url= path('cadoles_portal_user_blog_view') %} {% if usage=="group" and firstblog is defined %} {% set url= path('cadoles_portal_user_blog_view',{id:firstblog}) %} {% endif %} - + {% endif %}
diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Pagewidget/viewbookmark.html.twig b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Pagewidget/viewbookmark.html.twig index 7796af53..315146b2 100644 --- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Pagewidget/viewbookmark.html.twig +++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Pagewidget/viewbookmark.html.twig @@ -37,12 +37,12 @@ {% if canupdate or canadd %}
{% if canupdate %} - - + + {% endif %} {% if canadd %} - + {% endif %}
{% endif %} @@ -99,7 +99,7 @@ {% if canadd %}
-
+