Loading 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 AVENANT_STRUCT = 'avenant_Struct'; const CONTRAT_DIRECT = 'contrat_direct'; const CONTRAT_DATE = 'contrat_date'; Loading module/Application/src/Form/ParametresForm.php +3 −2 Changes for module/Application/src/Form/ParametresForm.php: 3 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -573,8 +573,9 @@ class ParametresForm extends AbstractForm 'label' => 'Possibilité de créer des avenants', 'value_options' => [ PARAMETRE::AVENANT => 'Les avenants sont disponibles', 'desactive' => 'Fonctionnalité désactivée', PARAMETRE::AVENANT => 'Tous les avenants sont disponibles', PARAMETRE::AVENANT_STRUCT => 'Un avenant est disponible par composante si celle-ci n\'a pas de contrat', 'desactive' => 'Aucun avenant ne peut être crée', ], ], 'attributes' => [ Loading module/Application/view/application/contrat/index.phtml +2 −1 Changes for module/Application/view/application/contrat/index.phtml: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ $hasContrat = false; foreach ($contrats as $contrat) { if (!$contrat->estUnProjet()) { $hasContrat = true; $contrat->getStructure(); } } Loading Loading @@ -98,7 +99,7 @@ $this->messenger() ?> </tr> <?php endforeach; ?> <?php else: ?> <div class="well"> <div class="alert alert-info"> <h2>La création d'avenant n'est pas disponible, elle a été désactivée dans les paramètres.</h2> </div> <?php endif; ?> Loading Loading
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 AVENANT_STRUCT = 'avenant_Struct'; const CONTRAT_DIRECT = 'contrat_direct'; const CONTRAT_DATE = 'contrat_date'; Loading
module/Application/src/Form/ParametresForm.php +3 −2 Changes for module/Application/src/Form/ParametresForm.php: 3 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -573,8 +573,9 @@ class ParametresForm extends AbstractForm 'label' => 'Possibilité de créer des avenants', 'value_options' => [ PARAMETRE::AVENANT => 'Les avenants sont disponibles', 'desactive' => 'Fonctionnalité désactivée', PARAMETRE::AVENANT => 'Tous les avenants sont disponibles', PARAMETRE::AVENANT_STRUCT => 'Un avenant est disponible par composante si celle-ci n\'a pas de contrat', 'desactive' => 'Aucun avenant ne peut être crée', ], ], 'attributes' => [ Loading
module/Application/view/application/contrat/index.phtml +2 −1 Changes for module/Application/view/application/contrat/index.phtml: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ $hasContrat = false; foreach ($contrats as $contrat) { if (!$contrat->estUnProjet()) { $hasContrat = true; $contrat->getStructure(); } } Loading Loading @@ -98,7 +99,7 @@ $this->messenger() ?> </tr> <?php endforeach; ?> <?php else: ?> <div class="well"> <div class="alert alert-info"> <h2>La création d'avenant n'est pas disponible, elle a été désactivée dans les paramètres.</h2> </div> <?php endif; ?> Loading