Skip to content
Snippets Groups Projects
Commit 025635ad authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Lien de doc pour les étudiants

parent 82050760
Branches
Tags 23.0
No related merge requests found
......@@ -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 */
......
......@@ -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([
......
......@@ -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',
......
......@@ -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 : '
......
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment