- Evolution du nombre d'articles de blog
+ Évolution du nombre d'articles de blog
diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/User/list.html.twig b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/User/list.html.twig
index 17dff5e9..cfef4208 100644
--- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/User/list.html.twig
+++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/User/list.html.twig
@@ -42,10 +42,10 @@ td { font-size: 10px; }
{% if viewniveau02 %}
{{ labelniveau02 }} |
{% endif %}
- Groupes |
+ Groupes |
Métier |
Fonction |
- Visite |
+ Visite |
Rôle |
diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/User/view.html.twig b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/User/view.html.twig
index b50b48ff..e3203752 100644
--- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/User/view.html.twig
+++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/User/view.html.twig
@@ -19,20 +19,24 @@
{%if user.job and not fields["job"]["perm"]==0 %}{{fields["position"]["job"]}} = {{ user.job }}
{%endif%}
{%if user.position and not fields["position"]["perm"]==0 %}{{fields["position"]["label"]}} = {{ user.position }}
{%endif%}
{%if user.postaladress and not fields["postaladress"]["perm"]==0 %}{{fields["postaladress"]["label"]}} = {{ user.postaladress }}
{%endif%}
- {%if user.visitedate and not fields["visite"]["perm"]==0 %}Date de dernière visite = {{ user.visitedate|date('d/m/Y H:i') }}
{%endif%}
- {%if user.visitecpt and not fields["visite"]["perm"]==0 %}Nombre de visites = {{ user.visitecpt }}
{%endif%}
-
- {% set fgtitle=false %}
- {% for usergroup in user.groups %}
- {% if usergroup.group.fgcanshare %}
- {% if not fgtitle %}
-
Groupes de Travail
- {% set fgtitle=true %}
+
+ {%if user.visitedate and (not fields["visitedate"]["perm"]==0 or (not is_granted('ROLE_USER') and not is_granted('ROLE_ANIM'))) %}Date de dernière visite = {{ user.visitedate|date('d/m/Y H:i') }}
{%endif%}
+ {%if user.visitecpt and (not fields["visitedate"]["perm"]==0 or (not is_granted('ROLE_USER') and not is_granted('ROLE_ANIM'))) %}Nombre de visites = {{ user.visitecpt }}
{%endif%}
+
+ {% if not fields["group"].perm==0 or not is_granted('ROLE_USER') %}
+
+ {% set fgtitle=false %}
+ {% for usergroup in user.groups %}
+ {% if usergroup.group.fgcanshare %}
+ {% if not fgtitle %}
+
Groupes de Travail
+ {% set fgtitle=true %}
+ {% endif %}
+
+ {{ usergroup.group.label }}
{% endif %}
-
- {{ usergroup.group.label }}
- {% endif %}
- {% endfor %}
+ {% endfor %}
+ {% endif %}
{% endif %}
{% endif %}
diff --git a/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/base.html.twig b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/base.html.twig
index 65d4958f..604ecd58 100644
--- a/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/base.html.twig
+++ b/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/base.html.twig
@@ -84,6 +84,10 @@
{{ include('@CadolesCore/Include/menu.html.twig') }}
{% endif %}
+
+ {% if app.user %}
+
+ {% endif %}
{% endif %}
{% endif %}
diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Command/InitDataCommand.php b/src/ninegate-1.0/src/Cadoles/PortalBundle/Command/InitDataCommand.php
index a640b5ec..44e87fa4 100644
--- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Command/InitDataCommand.php
+++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Command/InitDataCommand.php
@@ -380,7 +380,7 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->setId(-394);
$entityItem->setRowOrder(0);
$entityItem->setTitle('Adminer');
- $entityItem->SetSubtitle("Gestionnaire de Bases de Données");
+ $entityItem->setSubtitle("Gestionnaire de Bases de Données");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryadm);
@@ -402,7 +402,8 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->setId(-377);
$entityItem->setRowOrder(0);
$entityItem->setTitle('Balado');
- $entityItem->SetSubtitle("Enregistrement en ligne et partage ses enregistrements");
+ $entityItem->setSubtitle("Interactions orales et écrites en ligne avec possibilité d’enregistrement audio intégré");
+ $entityItem->SetContent("Balad((o)) permet d’interagir avec les élèves en leur proposant une activité en ligne avec texte, image, audio déposé ou enregistré en ligne, vidéo déposée ou intégrée, documents joints.
Les élèves peuvent répondre en ligne avec texte, image, audio déposé ou enregistré en ligne, vidéo déposée ou intégrée, documents joints.
L’enseignant peut ensuite consulter en ligne les travaux rendus par les élèves, mais pas encore les annoter individuellement.");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
@@ -424,7 +425,8 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->setId(-399);
$entityItem->setRowOrder(0);
$entityItem->setTitle('Dokuwiki');
- $entityItem->SetSubtitle("Création de documentations de toute sorte");
+ $entityItem->setSubtitle("Base de connaissances sous forme d’un wiki");
+ $entityItem->SetContent("Le wiki permet de mettre du contenu classé par catégories.
Sur chaque catégorie et sur chaque page, des droits de lecture, modification, suppression peuvent être affectés à des utilisateurs ou des groupes d’utilisateurs.
En établissement, le wiki peut être utilisé comme base de connaissances en intranet / extranet professionnel ou comme support pédagogique d’écriture collaborative.");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
@@ -446,7 +448,7 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->setId(-376);
$entityItem->setRowOrder(0);
$entityItem->setTitle('Econnect');
- $entityItem->SetSubtitle("Gestion de connecteurs vers d'autres applications");
+ $entityItem->setSubtitle("Gestion de connecteurs vers d'autres applications");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
@@ -468,7 +470,7 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->setId(-393);
$entityItem->setRowOrder(0);
$entityItem->setTitle('EAD');
- $entityItem->SetSubtitle("Console d'administration du serveur scribe");
+ $entityItem->setSubtitle("Console d'administration du serveur scribe");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryadm);
@@ -489,8 +491,9 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem = new Item();
$entityItem->setId(-370);
$entityItem->setRowOrder(0);
- $entityItem->setTitle('EOE');
- $entityItem->SetSubtitle("EOLE Outils Elève");
+ $entityItem->setTitle('Outils Élève');
+ $entityItem->setSubtitle("EOLE Outils Elève
(EOE)");
+ $entityItem->setContent("EOLE Outils Élève (EOE) permet à l’élève en particulier de changer son mot de passe d’accès, dans l’objectif de maîtriser son identité numérique sur l’ENT.");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
@@ -511,8 +514,9 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem = new Item();
$entityItem->setId(-371);
$entityItem->setRowOrder(0);
- $entityItem->setTitle('EOP');
- $entityItem->SetSubtitle("EOLE Outils Professeur");
+ $entityItem->setTitle('Outils Professeur');
+ $entityItem->setSubtitle("EOLE Outils Professeur
(EOP)");
+ $entityItem->setContent("Parmi les outils disponibles dans EOLE Outils Professeur (EOP) :
Changement de mot de passe local (Scribe) utilisé sur les postes en établissement
Changer le mot de passe des élèves (uniquement pour les professeurs principaux)
Distribuer des documents / devoirs à des classes et groupes à l’aide du dossier « perso » de l’enseignant et de chaque élève. Cette application est adaptée à un fonctionnement synchrone en établissement, un peu moins en distanciel asynchrone.");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
@@ -534,7 +538,8 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->setId(-382);
$entityItem->setRowOrder(0);
$entityItem->setTitle('Etherhome');
- $entityItem->SetSubtitle("Gestion de vos pads et de vos calcs collaboratifs");
+ $entityItem->setSubtitle("Accès aux pads, calcs et scrums");
+ $entityItem->setContent("Etherhome permet de créer, partager et accéder aux pads (textes), calcs (tableaux) et scrums (murs de textes).
Les pads et calcs sont des supports de travail collaboratif synchrone ou asynchrone, à reprendre éventuellement ensuite dans un traitement de textes ou un tableur ou un logiciel de présentation.");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
@@ -556,7 +561,8 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->setId(-397);
$entityItem->setRowOrder(0);
$entityItem->setTitle('Fluxbb');
- $entityItem->SetSubtitle("Forum");
+ $entityItem->setSubtitle("Forum");
+ $entityItem->setContent("Forum avec gestion des droits des utilisateurs.");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
@@ -578,7 +584,7 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->setId(-368);
$entityItem->setRowOrder(0);
$entityItem->setTitle('Genconfig');
- $entityItem->SetSubtitle("Console de configuration du serveur");
+ $entityItem->setSubtitle("Console de configuration du serveur");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryadm);
@@ -600,7 +606,7 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->setId(-389);
$entityItem->setRowOrder(0);
$entityItem->setTitle('GEPI');
- $entityItem->SetSubtitle("Intégration du logiciel de gestion des notes, absences, cahier de texte");
+ $entityItem->setSubtitle("Intégration du logiciel de gestion des notes, absences, cahier de texte");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
@@ -622,7 +628,7 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->setId(-388);
$entityItem->setRowOrder(0);
$entityItem->setTitle('GLPI');
- $entityItem->SetSubtitle("Gestion de tickets");
+ $entityItem->setSubtitle("Gestion de tickets");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
@@ -644,7 +650,8 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->setId(-388);
$entityItem->setRowOrder(0);
$entityItem->setTitle('Grr');
- $entityItem->SetSubtitle("Gestion et de Réservations de Ressources");
+ $entityItem->setSubtitle("Gestion et de Réservations de Ressources");
+ $entityItem->setContent("GRR permet de réserver des ressources disponibles dans l’établissement : salles, matériels, etc.");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
@@ -666,7 +673,7 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->setId(-363);
$entityItem->setRowOrder(0);
$entityItem->setTitle('Kanboard');
- $entityItem->SetSubtitle("Gestion de Projets");
+ $entityItem->setSubtitle("Gestion de rojets");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
@@ -688,7 +695,8 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->setId(-374);
$entityItem->setRowOrder(0);
$entityItem->setTitle('Limesurvey');
- $entityItem->SetSubtitle("Application de sondage");
+ $entityItem->setSubtitle("Gestion d’enquêtes");
+ $entityItem->setContent("Limesurvey permet de créer des enquêtes en ligne avec différents formats de réponses : texte, nombre, choix multiple avec réponse unique ou non, etc.
Chaque enquête peut être adressée :
soit à des utilisateurs ou groupes par invitation individuelle, ce qui permet d’éviter les doubles réponses
soit de manière anonyme par un lien public");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
@@ -710,7 +718,8 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->setId(-369);
$entityItem->setRowOrder(0);
$entityItem->setTitle('Mindmaps');
- $entityItem->SetSubtitle("Carte Mentale");
+ $entityItem->setSubtitle("Carte Mentale");
+ $entityItem->setContent("Carte mentale simple, enregistrable mais non collaborative.");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
@@ -732,7 +741,8 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->setId(-387);
$entityItem->setRowOrder(0);
$entityItem->setTitle('Moodle');
- $entityItem->SetSubtitle("Application de eLearning");
+ $entityItem->setSubtitle("Cours en ligne");
+ $entityItem->setContent("Plateforme d’apprentissage en ligne (« e-learning ») où l’enseignant peut mettre à disposition :
- des ressources à consulter : textes en ligne, documents joints, vidéos intégrées, etc.
- des activités : devoirs à rendre, tests auto-évalués, glossaire collaboratif, activités multimédia H5P, etc.");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
@@ -754,7 +764,8 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->setId(-366);
$entityItem->setRowOrder(0);
$entityItem->setTitle('Nextcloud');
- $entityItem->SetSubtitle("Stockage de Fichiers");
+ $entityItem->setSubtitle("Dépôt et partage de fichiers");
+ $entityItem->setContent("Nextcloud permet de déposer des fichiers, organisés dans des dossiers.
Ces dossiers et fichiers peuvent être partagés avec des droits de lecture et/ou de modification / suppression :
Soit avec des utilisateurs ou groupes d’utilisateurs
Soit de manière anonyme avec un lien public, paramétrable (durée, mot de passe)");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
@@ -776,7 +787,8 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->setId(-361);
$entityItem->setRowOrder(0);
$entityItem->setTitle('Nineboard');
- $entityItem->SetSubtitle("Gestionnaire de tableau de bord collaboratif");
+ $entityItem->setSubtitle("Accès aux pads, calcs, scrums, whiteboards, timelines et mindmaps");
+ $entityItem->setContent("Nineboard permet de créer, partager et accéder aux pads (textes), calcs (tableaux), scrums (murs de textes en colonne), whiteboards (murs de textes libre), timelines (frises temporelles) et mindmaps (cartes mentales)
Les pads et calcs sont des supports de travail collaboratif synchrone ou asynchrone, à reprendre éventuellement ensuite dans un traitement de textes ou un tableur ou un logiciel de présentation.");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
@@ -798,7 +810,7 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->setId(-1001);
$entityItem->setRowOrder(0);
$entityItem->setTitle('Nineschool');
- $entityItem->SetSubtitle("Gestionnaire d'activités scolaire'");
+ $entityItem->setSubtitle("Gestionnaire d'activités scolaire'");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
@@ -820,7 +832,7 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->setId(-1002);
$entityItem->setRowOrder(0);
$entityItem->setTitle('Ninesurvey');
- $entityItem->SetSubtitle("Application de Sondage par Date");
+ $entityItem->setSubtitle("Application de Sondage par Date");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
@@ -842,7 +854,7 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->setId(-1000);
$entityItem->setRowOrder(0);
$entityItem->setTitle('Onlyoffice');
- $entityItem->SetSubtitle("Application Bureautique");
+ $entityItem->setSubtitle("Application Bureautique");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
@@ -864,7 +876,7 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->setId(-383);
$entityItem->setRowOrder(0);
$entityItem->setTitle('Opensondage');
- $entityItem->SetSubtitle("Application de Sondage par Date");
+ $entityItem->setSubtitle("Création de sondage à réponse simple ou pour le choix d’une date");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
@@ -886,7 +898,7 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->setId(-362);
$entityItem->setRowOrder(0);
$entityItem->setTitle('PhpLdapAdmin');
- $entityItem->SetSubtitle("Gestionnaire d’annuaire LDAP");
+ $entityItem->setSubtitle("Gestionnaire d’annuaire LDAP");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryadm);
@@ -897,7 +909,7 @@ class InitDataCommand extends ContainerAwareCommand
$em->persist($entityItem);
}
- // Item piwigo
+ // Item Piwigo
if($activate_widpiwigo) {
$widpiwigo_url =$this->getContainer()->getParameter('widpiwigo_url');
$entityItem = $em->getRepository('CadolesPortalBundle:Item')->find(-396);
@@ -908,7 +920,7 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->setId(-396);
$entityItem->setRowOrder(0);
$entityItem->setTitle('Piwigo');
- $entityItem->SetSubtitle("Gestionnaire d’albums photos");
+ $entityItem->setSubtitle("Gestionnaire d’albums photos");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
@@ -930,7 +942,7 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->setId(-380);
$entityItem->setRowOrder(0);
$entityItem->setTitle('Piwik');
- $entityItem->SetSubtitle("Application de Statistique de Visite");
+ $entityItem->setSubtitle("Mesures d’audience du portail");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryadm);
@@ -952,7 +964,8 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->setId(-398);
$entityItem->setRowOrder(0);
$entityItem->setTitle('Roundcube');
- $entityItem->SetSubtitle("Webmail");
+ $entityItem->setSubtitle("Messagerie");
+ $entityItem->setContent("Messagerie permettant la communication sécurisée par méls. La messagerie n’a pas pour but d’envoyer des gros fichiers mais plutôt de communiquer des informations, des liens.");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
@@ -960,6 +973,7 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->addGroup($groupall);
}
$entityItem->setUrl($widroundcube_url);
+ $entityItem->setBadgeurl("/ninegate/imap-unread.php");
$em->persist($entityItem);
}
@@ -974,7 +988,7 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->setId(-372);
$entityItem->setRowOrder(0);
$entityItem->setTitle('Sacoche');
- $entityItem->SetSubtitle("Evaluation de compétences");
+ $entityItem->setSubtitle("Evaluation de compétences");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
@@ -996,7 +1010,8 @@ class InitDataCommand extends ContainerAwareCommand
$entityItem->setId(-400);
$entityItem->setRowOrder(0);
$entityItem->setTitle('Wordpress');
- $entityItem->SetSubtitle("Application de Blog");
+ $entityItem->setSubtitle("Sites ou blogs en intranet ou sur internet");
+ $entityItem->setContent("Avec la plateforme Wordpress, sur demande, un administrateur peut créer des blogs ou sites.
Pour chaque blog ou site, des droits peuvent être donnés aux utilisateurs :
Qui peut écrire des articles ?
Qui peut valider ces articles ?
Qui peut consulter ces articles ? (le blog peut aussi être rendu visible publiquement sur internet)
");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
@@ -1011,15 +1026,15 @@ class InitDataCommand extends ContainerAwareCommand
//== WIDGET ============================================================================================================================================
$output->writeln(' > Creation Widget');
- // Widget URL
+ // Widget Page web
$entityWidget = $em->getRepository('CadolesPortalBundle:Widget')->find(-2000);
if(!$entityWidget) $entityWidget = new Widget();
$entityicon = $em->getRepository('CadolesPortalBundle:Icon')->findoneby(["label"=>"uploads/icon/icon_ribbon.png"]);
$entityWidget->setId(-2000);
$entityWidget->setRoworder(0);
$entityWidget->setIcon($entityicon);
- $entityWidget->setName('URL');
- $entityWidget->setDescription("Affiche le contenu d'une url");
+ $entityWidget->setName('Page web');
+ $entityWidget->setDescription("Affiche le contenu d'une page web");
$entityWidget->setRouteview("cadoles_portal_config_panelwidget_view_url");
$entityWidget->setHeight("630");
$entityWidget->setAutoajust(false);
@@ -1091,15 +1106,15 @@ class InitDataCommand extends ContainerAwareCommand
$em->persist($entityWidget);
- // Widget Favoris
+ // Widget Liens
$entityWidget = $em->getRepository('CadolesPortalBundle:Widget')->find(-1960);
if(!$entityWidget) $entityWidget = new Widget();
$entityicon = $em->getRepository('CadolesPortalBundle:Icon')->findoneby(["label"=>"uploads/icon/icon_star.png"]);
$entityWidget->setId(-1960);
$entityWidget->setRoworder(0);
$entityWidget->setIcon($entityicon);
- $entityWidget->setName('Favoris');
- $entityWidget->setDescription("Création de Favoris");
+ $entityWidget->setName('Liens');
+ $entityWidget->setDescription("Bibliothèque de Liens");
$entityWidget->setRouteview("cadoles_portal_config_panelwidget_view_bookmark");
$entityWidget->setHeight("630");
$entityWidget->setAutoajust(true);
@@ -1111,7 +1126,7 @@ class InitDataCommand extends ContainerAwareCommand
$em->persist($entityWidget);
- // Widget Liens
+ // Widget Lien
$entityWidget = $em->getRepository('CadolesPortalBundle:Widget')->find(-1950);
if(!$entityWidget) $entityWidget = new Widget();
$entityicon = $em->getRepository('CadolesPortalBundle:Icon')->findoneby(["label"=>"uploads/icon/icon_bolt.png"]);
@@ -1119,7 +1134,7 @@ class InitDataCommand extends ContainerAwareCommand
$entityWidget->setRoworder(0);
$entityWidget->setIcon($entityicon);
$entityWidget->setName('Lien');
- $entityWidget->setDescription("Création d'un Lien");
+ $entityWidget->setDescription("Création d'un Lien unique");
$entityWidget->setRouteview("cadoles_portal_config_panelwidget_view_link");
$entityWidget->setHeight("200");
$entityWidget->setAutoajust(true);
@@ -1131,14 +1146,14 @@ class InitDataCommand extends ContainerAwareCommand
$em->persist($entityWidget);
- // Widget Editor
+ // Widget Texte
$entityWidget = $em->getRepository('CadolesPortalBundle:Widget')->find(-1940);
if(!$entityWidget) $entityWidget = new Widget();
$entityicon = $em->getRepository('CadolesPortalBundle:Icon')->findoneby(["label"=>"uploads/icon/icon_compose.png"]);
$entityWidget->setId(-1940);
$entityWidget->setRoworder(0);
$entityWidget->setIcon($entityicon);
- $entityWidget->setName('Editeur');
+ $entityWidget->setName('Texte');
$entityWidget->setDescription("Votre propre texte à éditer");
$entityWidget->setRouteview("cadoles_portal_config_panelwidget_view_editor");
$entityWidget->setHeight("630");
@@ -1302,14 +1317,14 @@ class InitDataCommand extends ContainerAwareCommand
$em->persist($entityWidget);
}
- // Widget Information
+ // Widget Informations
$entityWidget = $em->getRepository('CadolesPortalBundle:Widget')->find(-1860);
if(!$entityWidget) $entityWidget = new Widget();
$entityicon = $em->getRepository('CadolesPortalBundle:Icon')->findoneby(["label"=>"uploads/icon/icon_info.png"]);
$entityWidget->setId(-1860);
$entityWidget->setRoworder(0);
$entityWidget->setIcon($entityicon);
- $entityWidget->setName('Information Page');
+ $entityWidget->setName('Informations');
$entityWidget->setDescription("Afficher les informations associées à la page");
$entityWidget->setRouteview("cadoles_portal_config_panelwidget_view_info");
$entityWidget->setHeight("630");
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 070709a0..81564839 100644
--- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/PagewidgetController.php
+++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/PagewidgetController.php
@@ -447,6 +447,26 @@ class PagewidgetController extends Controller
}
}
+ protected function getKeyPreference(&$entity,$key,$value) {
+ $user=$this->getUser();
+ if(!$user)
+ return $value;
+
+ $preference=$user->getPreference();
+ $id=$entity->getId();
+
+ if(!is_array($preference))
+ return $value;
+
+ if(!array_key_exists($key,$preference))
+ return $value;
+
+ if(!array_key_exists($id,$preference[$key]))
+ return $value;
+
+ return $preference[$key][$id];
+ }
+
protected function getRender($view,$params) {
// Paramétres toujours présent dans un rendu de widget
$allways = [
@@ -602,6 +622,9 @@ class PagewidgetController extends Controller
}
}
+ // Préference utilisateur
+ $modedesktop = $this->getKeyPreference($this->entity,"modedesktop",$modedesktop);
+
// Profilage
$itemsordered = $this->em->getRepository("CadolesPortalBundle:Item")->getUserItems($this->user,$bookmarks,$items,$itemcategorys,$iditemcategory,$this->get('session')->get('ssoitems'),$withbookmark,false);
}
@@ -639,10 +662,14 @@ class PagewidgetController extends Controller
break;
}
}
-
+
+ // Préference utilisateur
+ $modedesktop = $this->getKeyPreference($this->entity,"modedesktop",$modedesktop);
+
// Profilage
$itemsordered = $this->em->getRepository("CadolesPortalBundle:Item")->getUserItems($this->user,$bookmarks,$items,$itemcategorys,null,$this->get('session')->get('ssoitems'),0,true);
}
+
// Render
return $this->getRender('viewitemessential.html.twig', [
diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Entity/Item.php b/src/ninegate-1.0/src/Cadoles/PortalBundle/Entity/Item.php
index 0f3f45a1..a73b7a52 100644
--- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Entity/Item.php
+++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Entity/Item.php
@@ -95,6 +95,13 @@ class Item
*/
private $color;
+ /**
+ * @var string
+ *
+ * @ORM\Column(name="badgeurl", type="string", length=250, nullable=true)
+ */
+ private $badgeurl;
+
/**
* @var string
*
@@ -650,4 +657,28 @@ class Item
{
return $this->ssoitem;
}
+
+ /**
+ * Set badgeurl.
+ *
+ * @param string|null $badgeurl
+ *
+ * @return Item
+ */
+ public function setBadgeurl($badgeurl = null)
+ {
+ $this->badgeurl = $badgeurl;
+
+ return $this;
+ }
+
+ /**
+ * Get badgeurl.
+ *
+ * @return string|null
+ */
+ public function getBadgeurl()
+ {
+ return $this->badgeurl;
+ }
}
diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Form/ItemType.php b/src/ninegate-1.0/src/Cadoles/PortalBundle/Form/ItemType.php
index 016c9b39..5ed44e62 100644
--- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Form/ItemType.php
+++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Form/ItemType.php
@@ -118,6 +118,11 @@ class ItemType extends AbstractType
"required" => false
])
+ ->add('badgeurl', TextType::class, [
+ 'label' => "Badge URL",
+ 'required' => false,
+ ])
+
->add('essential', CheckboxType::class, [
"label" => "Item essentiel ?",
"required" => false
diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Blog/list.html.twig b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Blog/list.html.twig
index a43be08d..d3de6d88 100644
--- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Blog/list.html.twig
+++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Blog/list.html.twig
@@ -9,7 +9,7 @@
Ajouter un Blog
-
+
@@ -74,6 +74,12 @@
if (typeof table !== 'undefined') {
table.ajax.reload();
}
+
+ var check = $('#alluser').bootstrapSwitch('state');
+ if(check)
+ $("#labelalluser").html("Afficher les blogs non liés à un utilisateur");
+ else
+ $("#labelalluser").html("Afficher les blogs créés par des utilisateurs");
}
{% endblock %}
diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Calendar/list.html.twig b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Calendar/list.html.twig
index 3833cb22..5687a494 100644
--- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Calendar/list.html.twig
+++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Calendar/list.html.twig
@@ -10,7 +10,7 @@
Ajouter un Calendrier
-
+
@@ -73,6 +73,12 @@
if (typeof table !== 'undefined') {
table.ajax.reload();
}
+
+ var check = $('#alluser').bootstrapSwitch('state');
+ if(check)
+ $("#labelalluser").html("Afficher les calendriers non liés à un utilisateur");
+ else
+ $("#labelalluser").html("Afficher les calendriers créés par des utilisateurs");
}
{% endblock %}
diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Item/edit.html.twig b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Item/edit.html.twig
index 860038ab..afb54563 100755
--- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Item/edit.html.twig
+++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Item/edit.html.twig
@@ -49,6 +49,8 @@
{{ form_row(form.subtitle) }}
{{ form_row(form.essential) }}
{{ form_row(form.content) }}
+ {{ form_row(form.badgeurl) }}
+ {{ form_row(form.protected) }}
diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Page/default.html.twig b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Page/default.html.twig
index 91cebde4..ca2f3487 100644
--- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Page/default.html.twig
+++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Resources/views/Page/default.html.twig
@@ -86,7 +86,7 @@