lot 11
This commit is contained in:
parent
82d8ee90ce
commit
eaffbfae0f
|
@ -8,7 +8,7 @@ INSERT IGNORE INTO `niveau01` (`id`, `label`, `siren`) VALUES
|
||||||
(-100, 'DRAAF', '130007107');
|
(-100, 'DRAAF', '130007107');
|
||||||
|
|
||||||
INSERT IGNORE INTO `user` (`id`, `niveau01_id`, `username`, `firstname`, `lastname`, `password`, `email`, `avatar`, `role`,`siren`,`authlevel`) VALUES
|
INSERT IGNORE INTO `user` (`id`, `niveau01_id`, `username`, `firstname`, `lastname`, `password`, `email`, `avatar`, `role`,`siren`,`authlevel`) VALUES
|
||||||
(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}2lrfIFu4o8CCYONiX7428WmRj4YYhRO2
|
(-100, -100, 'admin', 'Administrateur', 'draaf', '{SSHA}wTxgoh4oDctfUvQYMDCurI6uofNO2oRA
|
||||||
', 'admin@ldapbundle.ac-arno.fr', 'admin.jpg', 'ROLE_ADMIN', '130007107', 'simple');
|
', 'admin@ldapbundle.ac-arno.fr', 'admin.jpg', 'ROLE_ADMIN', '130007107', 'simple');
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -637,8 +637,8 @@ class InitDataCommand extends ContainerAwareCommand
|
||||||
$entityWidget->setId(-1870);
|
$entityWidget->setId(-1870);
|
||||||
$entityWidget->setRoworder(14);
|
$entityWidget->setRoworder(14);
|
||||||
$entityWidget->setIcon($entityicon);
|
$entityWidget->setIcon($entityicon);
|
||||||
$entityWidget->setName('Applications Externe');
|
$entityWidget->setName('Mes Formulaires');
|
||||||
$entityWidget->setDescription("Afficher des informations provenant de vos applications");
|
$entityWidget->setDescription("Afficher vos formulaires provenant de vos applications");
|
||||||
$entityWidget->setRouteview("cadoles_portal_config_panelwidget_view_appexternal");
|
$entityWidget->setRouteview("cadoles_portal_config_panelwidget_view_appexternal");
|
||||||
$entityWidget->setHeight("630");
|
$entityWidget->setHeight("630");
|
||||||
$entityWidget->setAutoajust(true);
|
$entityWidget->setAutoajust(true);
|
||||||
|
|
|
@ -578,6 +578,7 @@ class PagewidgetController extends Controller
|
||||||
'search' => $search,
|
'search' => $search,
|
||||||
'menu' => $menu,
|
'menu' => $menu,
|
||||||
'menuall' => $menuall,
|
'menuall' => $menuall,
|
||||||
|
'withbookmark' => $withbookmark,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1800,8 +1801,8 @@ class PagewidgetController extends Controller
|
||||||
$files=[];
|
$files=[];
|
||||||
$fs = new Filesystem();
|
$fs = new Filesystem();
|
||||||
|
|
||||||
if($fs->exists($directory."/survey.json")) {
|
if($fs->exists($directory."/invitation.json")) {
|
||||||
$file=file_get_contents($directory."/survey.json");
|
$file=file_get_contents($directory."/invitation.json");
|
||||||
$json = substr($file, 0, -2); // sup dernier ,
|
$json = substr($file, 0, -2); // sup dernier ,
|
||||||
$surveys = json_decode("{".$json."}", true);
|
$surveys = json_decode("{".$json."}", true);
|
||||||
if(is_array($surveys)) {
|
if(is_array($surveys)) {
|
||||||
|
@ -1821,13 +1822,13 @@ class PagewidgetController extends Controller
|
||||||
$files=[];
|
$files=[];
|
||||||
$fs = new Filesystem();
|
$fs = new Filesystem();
|
||||||
|
|
||||||
if($fs->exists($directory."/course.json")) {
|
if($fs->exists($directory."/invitation.json")) {
|
||||||
$file=file_get_contents($directory."/course.json");
|
$file=file_get_contents($directory."/invitation.json");
|
||||||
$json = substr($file, 0, -2); // sup dernier ,
|
$json = substr($file, 0, -2); // sup dernier ,
|
||||||
$courses = json_decode("{".$json."}", true);
|
$courses = json_decode("{".$json."}", true);
|
||||||
if(is_array($courses)) {
|
if(is_array($courses)) {
|
||||||
foreach($courses as $id => $course) {
|
foreach($courses as $id => $course) {
|
||||||
array_push($items,["id"=>$id,"title"=>$course["title"],"subtitle"=>"Sondage","url"=>$course["url"],"itemcategory"=>$category,"color"=>"f77f11","icon"=>"icon_moodle.png"]);
|
array_push($items,["id"=>$id,"title"=>$course["title"],"subtitle"=>"Cours","url"=>$course["url"],"itemcategory"=>$category,"color"=>"f77f11","icon"=>"icon_moodle.png"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
{% set stylewidgetmenu = constants.mystylewidgetmenu(entity) %}
|
{% set stylewidgetmenu = constants.mystylewidgetmenu(entity) %}
|
||||||
{% set stylewidgetheader = constants.mystylewidgetheader(entity) %}
|
{% set stylewidgetheader = constants.mystylewidgetheader(entity) %}
|
||||||
{% set stylewidgetbody = constants.mystylewidgetbody(entity) %}
|
{% set stylewidgetbody = constants.mystylewidgetbody(entity) %}
|
||||||
|
{% set color = app.session.get('color') %}
|
||||||
|
|
||||||
{% if modedesktop==0 %}
|
{% if modedesktop==0 %}
|
||||||
{% set stylegrid="" %}
|
{% set stylegrid="" %}
|
||||||
|
@ -49,7 +50,7 @@
|
||||||
<span class="title">{{ entity.name }}</span>
|
<span class="title">{{ entity.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if bookmarks is not empty %}
|
{% if bookmarks is not empty or canupdate %}
|
||||||
<div class="widgetbody" style="{{ stylewidgetbody }}">
|
<div class="widgetbody" style="{{ stylewidgetbody }}">
|
||||||
<div class="bookmark-container">
|
<div class="bookmark-container">
|
||||||
<div class="grid clearfix">
|
<div class="grid clearfix">
|
||||||
|
@ -88,6 +89,19 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
<div class="grid-item {{ stylegrid }}">
|
||||||
|
<div onClick="addBookmark({{ entity.id }},false)" class="grid-item-content" style="background-color: #{{color['main']}};cursor:pointer;">
|
||||||
|
<div class="item-link clearfix">
|
||||||
|
<div class="grid-item-logo">
|
||||||
|
<img class="grid-item-img" height="110" src="/{{ alias }}/uploads/icon/icon_add.png">
|
||||||
|
</div>
|
||||||
|
<div class="grid-item-title">
|
||||||
|
<h2>Ajouter</h2>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -88,6 +88,24 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
{% if canadd %}
|
||||||
|
<div class="grid-item grid-small">
|
||||||
|
<div class="grid-item-content">
|
||||||
|
<a style="{{ stylewidgetmenu }}" data-toggle="modal" data-target="#mymodal" onClick="ModalLoad('mymodal','Fichiers','{{ path('cadoles_core_'~access~'_file_upload',{'id': 'widget-'~entity.id,'type':'all'}) }}');" title='Ajouter des fichiers'>
|
||||||
|
<div class="item-link clearfix">
|
||||||
|
<div class="grid-item-logo">
|
||||||
|
<img class="grid-item-img" height="110" src="/{{ alias }}/uploads/icon/icon_add.png" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid-item-title">
|
||||||
|
<h2 style="{{ stylewidgetbody }}">Ajouter un fichier</h2>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -11,6 +11,11 @@
|
||||||
{% set stylewidgetbody = constants.mystylewidgetbody(entity) %}
|
{% set stylewidgetbody = constants.mystylewidgetbody(entity) %}
|
||||||
{% set stylewidgetbodyreverse = constants.mystylewidgetbodyreverse(entity) %}
|
{% set stylewidgetbodyreverse = constants.mystylewidgetbodyreverse(entity) %}
|
||||||
|
|
||||||
|
{% set permgroup = app.session.get('permgroup') %}
|
||||||
|
{% set canadd = false %}
|
||||||
|
{% if is_granted('ROLE_ADMIN') or is_granted('ROLE_MODO') or (is_granted('ROLE_ANIM') and (permgroup=="ROLE_ADMIN" or permgroup=="ROLE_USER")) or (is_granted('ROLE_USER') and permgroup=="ROLE_USER") %}
|
||||||
|
{% set canadd = true %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<div class="widget {%if entity.border %} widget-bordered {%endif%} widget-editor" data-id="{{ entity.id }}" loc="{{ entity.loc }}" style="{{ stylewidget }}" height="{{ entity.height }}px">
|
<div class="widget {%if entity.border %} widget-bordered {%endif%} widget-editor" data-id="{{ entity.id }}" loc="{{ entity.loc }}" style="{{ stylewidget }}" height="{{ entity.height }}px">
|
||||||
{% if canupdate %}
|
{% if canupdate %}
|
||||||
|
@ -19,6 +24,12 @@
|
||||||
<i class="fa fa-trash fa-fw" onClick="delWidget({{ entity.id }})" style="{{ stylewidgetmenu }}"></i>
|
<i class="fa fa-trash fa-fw" onClick="delWidget({{ entity.id }})" style="{{ stylewidgetmenu }}"></i>
|
||||||
<i class="fa fa-file fa-fw" onClick="modWidget({{ entity.id }})" style="{{ stylewidgetmenu }}"></i>
|
<i class="fa fa-file fa-fw" onClick="modWidget({{ entity.id }})" style="{{ stylewidgetmenu }}"></i>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if canadd %}
|
||||||
|
<a href="{{ path('cadoles_core_user_group_submit') }}" target="_top">
|
||||||
|
<i class="fa fa-plus fa-fw" style="{{ stylewidgetmenu }}"></i>
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -30,6 +41,8 @@
|
||||||
<img src="/{{ alias }}/uploads/icon/icon_pin.png" class="logo"/>
|
<img src="/{{ alias }}/uploads/icon/icon_pin.png" class="logo"/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<span class="title">{{ entity.name }}</span>
|
<span class="title">{{ entity.name }}</span>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="widgetbody" style="{{ stylewidgetbody }}; overflow-x:hidden; ">
|
<div class="widgetbody" style="{{ stylewidgetbody }}; overflow-x:hidden; ">
|
||||||
|
@ -56,6 +69,23 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
{% if canadd %}
|
||||||
|
<div class="grid-item grid-small" style="{{ stylewidgetbodyreverse }};">
|
||||||
|
<a href="{{path('cadoles_core_user_group_submit')}}" target="_top" style="{{ stylewidgetbodyreverse }};">
|
||||||
|
<div class="grid-item-content">
|
||||||
|
<div class="grid-item-logo">
|
||||||
|
<img class="grid-item-img" height="110" src="/{{ alias }}/uploads/icon/icon_add.png" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="grid-item-title">
|
||||||
|
Ajouter un groupe
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -86,12 +86,10 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if bookmarks is not empty %}
|
{% if (bookmarks is not empty or (canadd and access!="config")) and (withbookmark==0 or withbookmark==2) %}
|
||||||
<div class="bookmark-container">
|
<div class="bookmark-container">
|
||||||
{% if items is not empty %}
|
{% if items is not empty %}
|
||||||
<h3 class="grid-title bookmark-container" data-idcategory="bookmark" style="{{ colorbodyfont }}">Favoris</h3>
|
<h3 class="grid-title bookmark-container" data-idcategory="bookmark" style="{{ colorbodyfont }}">Favoris</h3>
|
||||||
{% else %}
|
|
||||||
<p></p>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="grid clearfix">
|
<div class="grid clearfix">
|
||||||
<div class="grid-sizer {{ stylegrid }}" data-idcategory="bookmark"></div>
|
<div class="grid-sizer {{ stylegrid }}" data-idcategory="bookmark"></div>
|
||||||
|
@ -127,6 +125,22 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
{% if (canadd and access!="config") %}
|
||||||
|
<div class="grid-item {{ stylegrid }}">
|
||||||
|
<div onClick="addBookmark({{ entity.id }},false)" class="grid-item-content" style="background-color: #{{color['main']}};cursor:pointer;">
|
||||||
|
<div class="item-link clearfix">
|
||||||
|
<div class="grid-item-logo">
|
||||||
|
<img class="grid-item-img" height="110" src="/{{ alias }}/uploads/icon/icon_add.png">
|
||||||
|
</div>
|
||||||
|
<div class="grid-item-title">
|
||||||
|
<h2>Ajouter</h2>
|
||||||
|
<span>Ajouter un Favoris</<span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -141,7 +155,7 @@
|
||||||
{% if loop.index ==1 %}
|
{% if loop.index ==1 %}
|
||||||
{% set haveitem=true %}
|
{% set haveitem=true %}
|
||||||
|
|
||||||
{% if bookmarks is not empty %}
|
{% if (bookmarks is not empty or (canadd and access!="config")) and (withbookmark==0 or withbookmark==2) %}
|
||||||
{% set toview=true %}
|
{% set toview=true %}
|
||||||
{% if menu and not menuall%}
|
{% if menu and not menuall%}
|
||||||
{% set toview=false %}
|
{% set toview=false %}
|
||||||
|
@ -164,7 +178,7 @@
|
||||||
{% set style="display:none;" %}
|
{% set style="display:none;" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if mycategs|length > 1 or bookmarks is not empty %}
|
{% if mycategs|length > 1 or ((bookmarks is not empty or (canadd and access!="config")) and (withbookmark==0 or withbookmark==2)) %}
|
||||||
<h3 class="grid-title itemcategory-container" style="{{ colorbodyfont }} {{ style }}" data-idcategory="{{ itemcategory.id }}">{{ itemcategory.label }}</h3>
|
<h3 class="grid-title itemcategory-container" style="{{ colorbodyfont }} {{ style }}" data-idcategory="{{ itemcategory.id }}">{{ itemcategory.label }}</h3>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p></p>
|
<p></p>
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
{% set stylewidgetheader = constants.mystylewidgetheader(entity) %}
|
{% set stylewidgetheader = constants.mystylewidgetheader(entity) %}
|
||||||
{% set stylewidgetbody = constants.mystylewidgetbody(entity) %}
|
{% set stylewidgetbody = constants.mystylewidgetbody(entity) %}
|
||||||
|
|
||||||
|
|
||||||
{% if modedesktop==0 %}
|
{% if modedesktop==0 %}
|
||||||
{% set stylegrid="" %}
|
{% set stylegrid="" %}
|
||||||
{% elseif modedesktop==1 %}
|
{% elseif modedesktop==1 %}
|
||||||
|
@ -141,6 +142,24 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
{% if canadd %}
|
||||||
|
<div class="grid-item {{ stylegrid }}">
|
||||||
|
<div class="grid-item-content" style="background-color: #{{colormain}};cursor:pointer;">
|
||||||
|
<a href="{{ path('cadoles_portal_user_page_application') }}">
|
||||||
|
<div class="item-link clearfix">
|
||||||
|
<div class="grid-item-logo">
|
||||||
|
<img class="grid-item-img" height="110" src="/{{ alias }}/uploads/icon/icon_add.png">
|
||||||
|
</div>
|
||||||
|
<div class="grid-item-title">
|
||||||
|
<h2>Ajouter</h2>
|
||||||
|
<span>Ajouter un Favoris</<span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue