Loading data/parametres.php +3 −0 Original line number Diff line number Diff line Loading @@ -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 */ Loading module/Application/src/Controller/IndexController.php +3 −2 Original line number Diff line number Diff line Loading @@ -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([ Loading module/Application/src/Form/ParametresForm.php +8 −0 Original line number Diff line number Diff line Loading @@ -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', Loading module/Application/view/application/index/index.phtml +1 −1 Original line number Diff line number Diff line Loading @@ -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 : ' Loading module/Application/view/application/parametre/generaux.phtml +5 −0 Original line number Diff line number Diff line Loading @@ -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> Loading Loading
data/parametres.php +3 −0 Original line number Diff line number Diff line Loading @@ -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 */ Loading
module/Application/src/Controller/IndexController.php +3 −2 Original line number Diff line number Diff line Loading @@ -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([ Loading
module/Application/src/Form/ParametresForm.php +8 −0 Original line number Diff line number Diff line Loading @@ -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', Loading
module/Application/view/application/index/index.phtml +1 −1 Original line number Diff line number Diff line Loading @@ -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 : ' Loading
module/Application/view/application/parametre/generaux.phtml +5 −0 Original line number Diff line number Diff line Loading @@ -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> Loading