diff --git a/data/parametres.php b/data/parametres.php index 20166b74fc838621841de6324fbb14dd06d1d860..009bd0d64f70fa395aea3aaecbdded921731b557 100644 --- a/data/parametres.php +++ b/data/parametres.php @@ -121,6 +121,9 @@ return [ "doc-intervenant-permanents" => [ "DESCRIPTION" => "URL de la documentation OSE pour les permanents", ], + "doc-intervenant-etudiants" => [ + "DESCRIPTION" => "URL de la documentation OSE pour les étudiants", + ], /* Disciplines */ diff --git a/module/Application/src/Controller/IndexController.php b/module/Application/src/Controller/IndexController.php index 9e2ad532f8aaa302349c3bec5028d6dcebcd3832..534f1153a79562eab53d18c44a03c10aafc152ec 100755 --- a/module/Application/src/Controller/IndexController.php +++ b/module/Application/src/Controller/IndexController.php @@ -32,8 +32,9 @@ class IndexController extends AbstractController $role = $this->serviceUserContext->getSelectedIdentityRole(); $documentation = [ - 'vacataires' => $this->getServiceParametres()->get('doc-intervenant-vacataires'), - 'permanents' => $this->getServiceParametres()->get('doc-intervenant-permanents'), + 'E' => $this->getServiceParametres()->get('doc-intervenant-vacataires'), + 'P' => $this->getServiceParametres()->get('doc-intervenant-permanents'), + 'S' => $this->getServiceParametres()->get('doc-intervenant-etudiants'), ]; $view = new ViewModel([ diff --git a/module/Application/src/Form/ParametresForm.php b/module/Application/src/Form/ParametresForm.php index 8401b177f1ce51b75526015b757f7255803c7c78..26ae3a5670508e6f96f20c97f39175157c4b7b34 100755 --- a/module/Application/src/Form/ParametresForm.php +++ b/module/Application/src/Form/ParametresForm.php @@ -279,6 +279,14 @@ class ParametresForm extends AbstractForm ], ]); + $this->add([ + 'name' => 'doc-intervenant-etudiants', + 'type' => 'Text', + 'options' => [ + 'label' => 'Étudiants', + ], + ]); + $this->add([ 'type' => 'Select', 'name' => 'oseuser', diff --git a/module/Application/view/application/index/index.phtml b/module/Application/view/application/index/index.phtml index 183d4f50172358f47fb825d5360837ced6b017cb..c9ea49f05d800e6c2cf12255d3e9edabd3bd9bc7 100755 --- a/module/Application/view/application/index/index.phtml +++ b/module/Application/view/application/index/index.phtml @@ -42,7 +42,7 @@ $onlyIntervenant = $intervenant && (null == $context->getSelectedIdentityRole()- /* Guide à télécharger... */ - $guideType = $intervenant->getStatut()->estVacataire() ? 'vacataires' : 'permanents'; + $guideType = $intervenant->getStatut()->getTypeIntervenant()->getCode(); if (!empty($documentation[$guideType])) { echo $this->tag('div', ['class' => 'alert alert-info', 'style' => 'margin-top:1em', 'role' => 'alert'])->html( 'Un guide d\'utilisation de OSE vous est proposé. Vous pouvez le télécharger en suivant le lien ci-contre : ' diff --git a/module/Application/view/application/parametre/generaux.phtml b/module/Application/view/application/parametre/generaux.phtml index 4e2b616854d37834710f8b6ca76b2945c29916de..3e6bc1609081d5319121ee8ec05ef8cd25be9ec5 100755 --- a/module/Application/view/application/parametre/generaux.phtml +++ b/module/Application/view/application/parametre/generaux.phtml @@ -312,6 +312,11 @@ <?= $this->formControlGroup($form->get('doc-intervenant-permanents')); ?> </div> </div> + <div class="row"> + <div class="col-md-6"> + <?= $this->formControlGroup($form->get('doc-intervenant-etudiants')); ?> + </div> + </div> </div> </div>