From ff5569bcae9369653cbe37ecd5c74a6cfb9fb0cc Mon Sep 17 00:00:00 2001 From: afornerot Date: Tue, 9 Jul 2019 11:02:21 +0200 Subject: [PATCH] svg --- .../CoreBundle/Command/data/core-init-01.sql | 2 +- .../CoreBundle/Controller/CoreController.php | 3 +- .../Resources/views/File/view.html.twig | 2 +- .../PortalBundle/Command/InitDataCommand.php | 23 +++- .../Controller/BookmarkController.php | 44 +++++-- .../Controller/PageController.php | 92 ++++++++++++--- .../Controller/PagetemplateController.php | 4 +- .../Controller/PagewidgetController.php | 108 ++++++++++++++++-- .../Controller/SlideController.php | 71 +++++++++--- .../PortalBundle/Form/BlogShareType.php | 1 + .../PortalBundle/Form/CalendarShareType.php | 1 + .../PortalBundle/Form/PageShareType.php | 1 + .../PortalBundle/Form/PageSubmitType.php | 31 ++++- .../Repository/BlogRepository.php | 27 +++++ .../Repository/CalendarRepository.php | 18 +++ .../PortalBundle/Resources/config/routing.yml | 10 ++ .../Resources/views/Bookmark/edit.html.twig | 4 +- .../Resources/views/Page/pages.html.twig | 99 ++++++++++++---- .../Resources/views/Page/submit.html.twig | 32 ++++++ .../Resources/views/Page/viewwidget.html.twig | 101 ++++++++-------- .../Resources/views/Pagewidget/constants.twig | 47 ++++---- .../Resources/views/Pagewidget/edit.html.twig | 2 +- .../views/Pagewidget/viewblog.html.twig | 7 +- .../views/Pagewidget/viewcalendar.html.twig | 10 +- .../views/Pagewidget/vieweditor.html.twig | 2 +- .../views/Pagewidget/viewfile.html.twig | 66 ++++++----- .../views/Pagewidget/viewflux.html.twig | 6 +- .../views/Pagewidget/viewinfo.html.twig | 66 +++++++++++ .../Resources/views/Slide/edit.html.twig | 4 +- .../Resources/views/Slide/list.html.twig | 6 +- .../web/uploads/icon/icon_info.png | Bin 0 -> 3543 bytes 31 files changed, 693 insertions(+), 197 deletions(-) create mode 100644 src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Pagewidget/viewinfo.html.twig create mode 100644 src/ninegate-1.0/web/uploads/icon/icon_info.png diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Command/data/core-init-01.sql b/src/ninegate-1.0/src/Cadoles/CoreBundle/Command/data/core-init-01.sql index 19653747..a4337b1f 100644 --- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Command/data/core-init-01.sql +++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Command/data/core-init-01.sql @@ -8,7 +8,7 @@ INSERT IGNORE INTO `niveau01` (`id`, `label`, `siren`) VALUES (-100, 'DRAAF', '130007107'); INSERT IGNORE INTO `user` (`id`, `niveau01_id`, `username`, `firstname`, `lastname`, `password`, `email`, `avatar`, `role`,`siren`,`authlevel`) VALUES -(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}otHXvfP0WOEFQYGgcJCVwAZ8h4HHrHOP +(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}wAHoMm5DBdK1+YoDHF+e40chzyBR/vhk ', 'admin@ldapbundle.ac-arno.fr', 'admin.jpg', 'ROLE_ADMIN', '130007107', 'simple'); diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Controller/CoreController.php b/src/ninegate-1.0/src/Cadoles/CoreBundle/Controller/CoreController.php index 92d7fe32..d2c6755a 100644 --- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Controller/CoreController.php +++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Controller/CoreController.php @@ -128,7 +128,8 @@ class CoreController extends Controller 'pagesuser' => $pagesuser, 'groupsshared' => $groupsshared, 'canadd' => $this->get('session')->get('cancreatepage'), - 'widgets' => $this->getDoctrine()->getRepository("CadolesPortalBundle:Widget")->getWidgetAccess("user") + 'widgetsuser' => $this->getDoctrine()->getRepository("CadolesPortalBundle:Widget")->getWidgetAccess("user"), + 'widgetsgroup' => $this->getDoctrine()->getRepository("CadolesPortalBundle:Widget")->getWidgetAccess("group") ]); } diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/File/view.html.twig b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/File/view.html.twig index e4d0ccb1..ae24a55c 100644 --- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/File/view.html.twig +++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/File/view.html.twig @@ -6,7 +6,7 @@
  • {{ filename }}
  • - @@ -29,9 +29,9 @@ {% endif %} {% if entity.id is defined and page.id==entity.id %} - + {% else %} - + {% endif %} {% endfor %} @@ -46,9 +46,9 @@ {% endif %} {% if entity.id is defined and page.id==entity.id %} - + {% else %} - + {% endif %} {% else %} @@ -82,14 +82,15 @@ - + + {% endblock %} {% block pagewrapper %}
    -