Loading data/parametres.php +6 −0 Changes for data/parametres.php: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -228,4 +228,10 @@ Cordialement, "VALEUR" => "active", "DESCRIPTION" => "Permettre la création d'avenants au contrat", ], /* Contrat */ "contrat_projet" => [ "VALEUR" => "active", "DESCRIPTION" => "Permettre la création d'un contrat sans passé par le projet", ], ]; No newline at end of file module/Application/src/Entity/Db/Parametre.php +1 −0 Changes for module/Application/src/Entity/Db/Parametre.php: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ class Parametre implements HistoriqueAwareInterface const CONTRAT_FRANCHI_DATE_RETOUR = 'date-retour'; const AVENANT = 'avenant'; const CONTRAT_PROJET = 'contrat_projet'; use HistoriqueAwareTrait; Loading module/Application/src/Form/ParametresForm.php +17 −0 Changes for module/Application/src/Form/ParametresForm.php: 17 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -582,6 +582,23 @@ class ParametresForm extends AbstractForm 'data-size' => 20, ], ]); $this->add([ 'type' => 'Select', 'name' => 'contrat_projet', 'options' => [ 'label' => 'Possibilité de créer un contrat sans passer par le projet', 'value_options' => [ PARAMETRE::CONTRAT_PROJET => 'Le contrat peut être crée sans passer par le projet', 'desactive' => 'Fonctionnalité désactivée', ], ], 'attributes' => [ 'class' => 'selectpicker', 'data-size' => 20, ], ]); } Loading module/Application/view/application/parametre/generaux.phtml +5 −2 Changes for module/Application/view/application/parametre/generaux.phtml: 5 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -135,11 +135,14 @@ <li><strong>:annee :</strong> année universitaire du contrat (ex : 2019/2020)</li> </ul> </p> <?= $this->formControlGroup($form->get('avenant')); ?> <?= $this->formControlGroup($form->get('contrat_projet')); ?> </div> <div class="row"> <div class="col-md-6"> <?= $this->formControlGroup($form->get('avenant')); ?> </div> <div class="row"> </div> </div> </div> Loading Loading
data/parametres.php +6 −0 Changes for data/parametres.php: 6 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -228,4 +228,10 @@ Cordialement, "VALEUR" => "active", "DESCRIPTION" => "Permettre la création d'avenants au contrat", ], /* Contrat */ "contrat_projet" => [ "VALEUR" => "active", "DESCRIPTION" => "Permettre la création d'un contrat sans passé par le projet", ], ]; No newline at end of file
module/Application/src/Entity/Db/Parametre.php +1 −0 Changes for module/Application/src/Entity/Db/Parametre.php: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ class Parametre implements HistoriqueAwareInterface const CONTRAT_FRANCHI_DATE_RETOUR = 'date-retour'; const AVENANT = 'avenant'; const CONTRAT_PROJET = 'contrat_projet'; use HistoriqueAwareTrait; Loading
module/Application/src/Form/ParametresForm.php +17 −0 Changes for module/Application/src/Form/ParametresForm.php: 17 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -582,6 +582,23 @@ class ParametresForm extends AbstractForm 'data-size' => 20, ], ]); $this->add([ 'type' => 'Select', 'name' => 'contrat_projet', 'options' => [ 'label' => 'Possibilité de créer un contrat sans passer par le projet', 'value_options' => [ PARAMETRE::CONTRAT_PROJET => 'Le contrat peut être crée sans passer par le projet', 'desactive' => 'Fonctionnalité désactivée', ], ], 'attributes' => [ 'class' => 'selectpicker', 'data-size' => 20, ], ]); } Loading
module/Application/view/application/parametre/generaux.phtml +5 −2 Changes for module/Application/view/application/parametre/generaux.phtml: 5 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -135,11 +135,14 @@ <li><strong>:annee :</strong> année universitaire du contrat (ex : 2019/2020)</li> </ul> </p> <?= $this->formControlGroup($form->get('avenant')); ?> <?= $this->formControlGroup($form->get('contrat_projet')); ?> </div> <div class="row"> <div class="col-md-6"> <?= $this->formControlGroup($form->get('avenant')); ?> </div> <div class="row"> </div> </div> </div> Loading