Skip to content
Snippets Groups Projects
Commit e6883d38 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Renommage de l'application en ESUP-SyGAL

parent 46f392fe
No related branches found
No related tags found
No related merge requests found
Showing
with 28 additions and 24 deletions
...@@ -3,6 +3,7 @@ Journal des modifications ...@@ -3,6 +3,7 @@ Journal des modifications
3.0.1 3.0.1
----- -----
- Renommage de l'application en ESUP-SyGAL.
- [FIX] Bloquage de la signature multiple de l'engagement d'impartilité - [FIX] Bloquage de la signature multiple de l'engagement d'impartilité
- [FIX] Correction du tri des thèses par titre (plantage) et par date de soutenance (inopérant) - [FIX] Correction du tri des thèses par titre (plantage) et par date de soutenance (inopérant)
......
# Installation de SyGAL # Installation de ESUP-SyGAL
Reportez-vous à [cette page](doc/INSTALL.md). Reportez-vous à [cette page](doc/INSTALL.md).
# Application SyGAL # Application ESUP-SyGAL
SYstème de Gestion et d'Accompagement doctoraL SYstème de Gestion et d'Accompagement doctoraL
......
Création d'une base de données pour SyGAL Création d'une base de données pour ESUP-SyGAL
========================================= ==============================================
Les fichiers fournis permettant de créer une base de données pour SyGAL sont : Les fichiers fournis permettant de créer une base de données pour ESUP-SyGAL sont :
- d'une part, le fichier de config et le script bash de construction : - d'une part, le fichier de config et le script bash de construction :
- [`build_db_files.conf.dist`](build_db_files.conf.dist) (à adpater puis à renommer en `.conf`) - [`build_db_files.conf.dist`](build_db_files.conf.dist) (à adpater puis à renommer en `.conf`)
......
#!/usr/bin/env bash #!/usr/bin/env bash
# #
# Script bash de préparation des scripts SQL permettant de créer une base de données pour SyGAL. # Script bash de préparation des scripts SQL permettant de créer une base de données pour ESUP-SyGAL.
# #
usage() { usage() {
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
-- --
-- --
-- Sources de données SyGAL. -- Sources de données ESUP-SyGAL.
-- --
delete from source where code = 'SYGAL::sygal' delete from source where code = 'SYGAL::sygal'
; ;
insert into source (id, code, libelle, importable) insert into source (id, code, libelle, importable)
values (1, 'SYGAL::sygal', 'SyGAL', false) values (1, 'SYGAL::sygal', 'ESUP-SyGAL', false)
; ;
-- --
...@@ -17,7 +17,7 @@ values (1, 'SYGAL::sygal', 'SyGAL', false) ...@@ -17,7 +17,7 @@ values (1, 'SYGAL::sygal', 'SyGAL', false)
delete from utilisateur where username = 'sygal-app' delete from utilisateur where username = 'sygal-app'
; ;
insert into utilisateur (id, username, display_name, password) insert into utilisateur (id, username, display_name, password)
values (1, 'sygal-app', 'Application SyGAL', 'ldap') values (1, 'sygal-app', 'Application ESUP-SyGAL', 'ldap')
; ;
-- --
......
...@@ -47,7 +47,7 @@ return [ ...@@ -47,7 +47,7 @@ return [
// Options pour le service de notification par mail // Options pour le service de notification par mail
'notification' => [ 'notification' => [
// préfixe à ajouter systématiquement devant le sujet des mails // préfixe à ajouter systématiquement devant le sujet des mails
'subject_prefix' => '[SyGAL]', 'subject_prefix' => '[ESUP-SyGAL]',
// destinataires à ajouter systématiquement en copie simple ou cachée de tous les mails // destinataires à ajouter systématiquement en copie simple ou cachée de tous les mails
//'cc' => [], //'cc' => [],
//'bcc' => [], //'bcc' => [],
......
...@@ -8,7 +8,7 @@ return [ ...@@ -8,7 +8,7 @@ return [
'unicaen-app' => [ 'unicaen-app' => [
// Informations concernant l'application. // Informations concernant l'application.
'app_infos' => [ 'app_infos' => [
'nom' => "SyGAL", 'nom' => "ESUP-SyGAL",
'desc' => "SYstème de Gestion et d'Accompagnement doctoraL", 'desc' => "SYstème de Gestion et d'Accompagnement doctoraL",
'version' => '?', // surchargée dans un autre fichier de config (ex: 'config/autoload/auto.version.local.php') 'version' => '?', // surchargée dans un autre fichier de config (ex: 'config/autoload/auto.version.local.php')
'date' => '?', // idem 'date' => '?', // idem
......
# #
# Application SyGAL. # Application ESUP-SyGAL.
# #
MAILTO=bertrand.gauthier@unicaen.fr MAILTO=bertrand.gauthier@unicaen.fr
......
# Installation de SyGAL # Installation de ESUP-SyGAL
......
...@@ -14,6 +14,7 @@ use Application\RouteMatch; ...@@ -14,6 +14,7 @@ use Application\RouteMatch;
use Application\Service\UserContextServiceAwareInterface; use Application\Service\UserContextServiceAwareInterface;
use Application\Service\UserContextServiceAwareTrait; use Application\Service\UserContextServiceAwareTrait;
use BjyAuthorize\Exception\UnAuthorizedException; use BjyAuthorize\Exception\UnAuthorizedException;
use UnicaenApp\Controller\Plugin\AppInfos;
use UnicaenApp\Controller\Plugin\ConfirmPlugin; use UnicaenApp\Controller\Plugin\ConfirmPlugin;
use UnicaenApp\Controller\Plugin\Mail; use UnicaenApp\Controller\Plugin\Mail;
use UnicaenApp\Exception\RuntimeException; use UnicaenApp\Exception\RuntimeException;
...@@ -37,6 +38,7 @@ use ZfcUser\Controller\Plugin\ZfcUserAuthentication; ...@@ -37,6 +38,7 @@ use ZfcUser\Controller\Plugin\ZfcUserAuthentication;
* @method Mail mail() * @method Mail mail()
* @method ConfirmPlugin confirm() * @method ConfirmPlugin confirm()
* @method FlashMessenger flashMessenger() * @method FlashMessenger flashMessenger()
* @method AppInfos appInfos()
*/ */
class AbstractController extends AbstractActionController class AbstractController extends AbstractActionController
implements UserContextServiceAwareInterface implements UserContextServiceAwareInterface
......
...@@ -103,17 +103,18 @@ class MailConfirmationController extends AbstractController { ...@@ -103,17 +103,18 @@ class MailConfirmationController extends AbstractController {
//$this->mailConfirmationService->generateCode($id); //$this->mailConfirmationService->generateCode($id);
$mailConfirmation = $this->mailConfirmationService->getDemandeById($id); $mailConfirmation = $this->mailConfirmationService->getDemandeById($id);
$appName = $this->appInfos()->getNom();
$confirm = $this->url()->fromRoute('mail-confirmation-reception', ['id' => $mailConfirmation->getId(), 'code' => $mailConfirmation->getCode()], ['force_canonical' => true] , true); $confirm = $this->url()->fromRoute('mail-confirmation-reception', ['id' => $mailConfirmation->getId(), 'code' => $mailConfirmation->getCode()], ['force_canonical' => true] , true);
$destinataire = $mailConfirmation->getIndividu()->getPrenom1() ." ". $mailConfirmation->getIndividu()->getNomUsuel() . " " . "&lt;<tt>".$mailConfirmation->getEmail()."</tt>&gt;"; $destinataire = $mailConfirmation->getIndividu()->getPrenom1() ." ". $mailConfirmation->getIndividu()->getNomUsuel() . " " . "&lt;<tt>".$mailConfirmation->getEmail()."</tt>&gt;";
$titre = "[SyGAL] Confirmation de votre email"; $titre = "Confirmation de votre email";
$corps = "<br/>" $corps = "<br/>"
."&nbsp;&nbsp;&nbsp;&nbsp;Bonjour,<br/><br/>" ."&nbsp;&nbsp;&nbsp;&nbsp;Bonjour,<br/><br/>"
."Pour finaliser l'enregistrement de votre email de contact veuillez confirmer celui-ci en cliquant sur le liens suivant :<br/>" ."Pour finaliser l'enregistrement de votre email de contact veuillez confirmer celui-ci en cliquant sur le liens suivant :<br/>"
."<a href='".$confirm."'>" ."<a href='".$confirm."'>"
.$confirm .$confirm
."</a><br/><br/>" ."</a><br/><br/>"
."Une fois confirmé, cet email sera utilisé pour recevoir les notifications de SyGAL et vous permettera de vous connecter à SyGAL."; ."Une fois confirmé, cet email sera utilisé pour recevoir les notifications de $appName et vous permettera de vous connecter à $appName.";
$this->notifierService->triggerMailConfirmation($mailConfirmation, $titre, $corps); $this->notifierService->triggerMailConfirmation($mailConfirmation, $titre, $corps);
......
...@@ -15,7 +15,7 @@ $lieu = "l'Université de Caen Normandie"; ...@@ -15,7 +15,7 @@ $lieu = "l'Université de Caen Normandie";
</td> </td>
<td style="text-align:right;"> <td style="text-align:right;">
Généré par SyGAL <br/> Généré par <?php echo $this->appInfos()->nom ?> <br/>
Le <?php echo $date->format('d/m/Y à H:i:s'); ?> Le <?php echo $date->format('d/m/Y à H:i:s'); ?>
</td> </td>
</tr> </tr>
......
...@@ -382,7 +382,7 @@ class NotifierService extends \Notification\Service\NotifierService ...@@ -382,7 +382,7 @@ class NotifierService extends \Notification\Service\NotifierService
if (!empty($email)) { if (!empty($email)) {
$notif = new Notification(); $notif = new Notification();
$notif $notif
->setSubject("Initialisation de votre compte SyGAL") ->setSubject("Initialisation de votre compte")
->setTo($email) ->setTo($email)
->setTemplatePath('application/utilisateur/mail/init-compte') ->setTemplatePath('application/utilisateur/mail/init-compte')
->setTemplateVariables([ ->setTemplateVariables([
...@@ -408,7 +408,7 @@ class NotifierService extends \Notification\Service\NotifierService ...@@ -408,7 +408,7 @@ class NotifierService extends \Notification\Service\NotifierService
if (!empty($email)) { if (!empty($email)) {
$notif = new Notification(); $notif = new Notification();
$notif $notif
->setSubject("Réinitialisation de votre mot de passe de votre compte SyGAL") ->setSubject("Réinitialisation de votre mot de passe de votre compte")
->setTo($email) ->setTo($email)
->setTemplatePath('application/utilisateur/mail/reinit-compte') ->setTemplatePath('application/utilisateur/mail/reinit-compte')
->setTemplateVariables([ ->setTemplateVariables([
......
...@@ -15,7 +15,7 @@ class SourceService extends BaseService ...@@ -15,7 +15,7 @@ class SourceService extends BaseService
const APPL_SOURCE_CODE = 'SYGAL::sygal'; const APPL_SOURCE_CODE = 'SYGAL::sygal';
const SQL_TEMPLATE_CREATE_APP_SOURCE = const SQL_TEMPLATE_CREATE_APP_SOURCE =
"INSERT INTO SOURCE (ID, CODE, LIBELLE, IMPORTABLE) VALUES (1, '%s', 'SyGAL', 0);"; "INSERT INTO SOURCE (ID, CODE, LIBELLE, IMPORTABLE) VALUES (1, '%s', 'ESUP-SyGAL', 0);";
/** /**
* @return EntityRepository * @return EntityRepository
......
...@@ -26,7 +26,7 @@ class UtilisateurService extends BaseService ...@@ -26,7 +26,7 @@ class UtilisateurService extends BaseService
use UserServiceAwareTrait; use UserServiceAwareTrait;
const SQL_CREATE_APP_USER = const SQL_CREATE_APP_USER =
"INSERT INTO UTILISATEUR (ID, USERNAME, EMAIL, DISPLAY_NAME, PASSWORD) VALUES (1, 'sygal-app', 'noreply@mail.fr', 'Application SyGAL', 'ldap');"; "INSERT INTO UTILISATEUR (ID, USERNAME, EMAIL, DISPLAY_NAME, PASSWORD) VALUES (1, 'sygal-app', 'noreply@mail.fr', 'Application ESUP-SyGAL', 'ldap');";
/** /**
* @return UtilisateurRepository * @return UtilisateurRepository
......
...@@ -133,7 +133,7 @@ $canNotifierPresident = $this->isAllowed(PresidentJuryPrivileges::getResourc ...@@ -133,7 +133,7 @@ $canNotifierPresident = $this->isAllowed(PresidentJuryPrivileges::getResourc
<?php echo $this->messenger()->addMessagesFromFlashMessengerWithNoNamespace() ?> <?php echo $this->messenger()->addMessagesFromFlashMessengerWithNoNamespace() ?>
<p> <p>
Dans le tableau ci-dessous vous retrouvez la liste des président de jury remonté dans SyGAL pour les thèses en attente de correction. Dans le tableau ci-dessous vous retrouvez la liste des président de jury remonté dans <?php echo $this->appInfos()->nom ?> pour les thèses en attente de correction.
</p> </p>
<p> <p>
......
...@@ -63,7 +63,7 @@ if ($tousLesRapportsTeleverses) { ...@@ -63,7 +63,7 @@ if ($tousLesRapportsTeleverses) {
<li> <li>
<strong>Vous devez rédiger un rapport d'activité de fin de thèse</strong> au moment de votre soutenance. <strong>Vous devez rédiger un rapport d'activité de fin de thèse</strong> au moment de votre soutenance.
Dans ce cas, les données indiquées doivent couvrir l'ensemble de la thèse. Il doit être Dans ce cas, les données indiquées doivent couvrir l'ensemble de la thèse. Il doit être
<strong>déposé ci-dessous dans l’application SyGAL au maximum 1 mois avant votre date de soutenance.</strong> <strong>déposé ci-dessous dans l’application <?php echo $this->appInfos()->nom ?> au maximum 1 mois avant votre date de soutenance.</strong>
Son dépôt conditionne votre autorisation de soutenance. Son dépôt conditionne votre autorisation de soutenance.
<a href="<?php echo $this->url('fichier/telecharger-permanent', ['idPermanent' => 'RAPPORT_ACTIVITE_FINTHESE']) ?>" <a href="<?php echo $this->url('fichier/telecharger-permanent', ['idPermanent' => 'RAPPORT_ACTIVITE_FINTHESE']) ?>"
>Cliquez ici pour télécharger le document.</a> >Cliquez ici pour télécharger le document.</a>
......
...@@ -143,7 +143,7 @@ $canModifier = $this->isAllowed(Privileges::getResourceId(UtilisateurPrivileges: ...@@ -143,7 +143,7 @@ $canModifier = $this->isAllowed(Privileges::getResourceId(UtilisateurPrivileges:
class="btn btn-primary action ajax-modal" data-event="zmodification" class="btn btn-primary action ajax-modal" data-event="zmodification"
> >
<span class="glyphicon glyphicon-link"></span> <span class="glyphicon glyphicon-link"></span>
Associé à un individu SyGAL Lier à un individu <?php echo $this->appInfos()->nom ?>
</a> </a>
<?php endif ?> <?php endif ?>
......
...@@ -260,7 +260,7 @@ return [ ...@@ -260,7 +260,7 @@ return [
// 'label' => 'Guide d\'utilisation', // 'label' => 'Guide d\'utilisation',
// 'route' => 'informations/afficher', // 'route' => 'informations/afficher',
// 'params' => ['id' => 162], // 'params' => ['id' => 162],
// 'title' => "Guide d'utilisation de l'application SyGAL", // 'title' => "Guide d'utilisation de l'application",
// ], // ],
// ], // ],
// ], // ],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment