Loading module/Application/src/Application/Form/Intervenant/EditionForm.php +18 −1 Changes for module/Application/src/Application/Form/Intervenant/EditionForm.php: 18 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -220,6 +220,9 @@ class EditionForm extends AbstractForm $this->add([ 'name' => 'login', 'type' => 'Text', 'attributes' => [ 'autocomplete' => 'false', ], 'options' => [ 'label' => 'Login', ], Loading @@ -229,8 +232,11 @@ class EditionForm extends AbstractForm $this->add([ 'name' => 'password', 'type' => 'Password', 'attributes' => [ 'autocomplete' => 'false', ], 'options' => [ 'label' => 'Mot de passe', 'label' => 'Mot de passe (6 caractères min.)', ], ]); Loading Loading @@ -411,6 +417,17 @@ class EditionForm extends AbstractForm } } } if (!$object->getId()) { $syncElements = ['syncStatut', 'syncStructure', 'source', 'sourceCode']; foreach ($syncElements as $elementName) { $element = $this->get($elementName); /** @var Element $element */ $element->setAttribute('readonly', true); $element->setAttribute('disabled', true); $element->setAttribute('title', 'Paramètres de synchronisation inutiles dans le cas de la création d\'une nouvelle fiche'); } } } } Loading Loading
module/Application/src/Application/Form/Intervenant/EditionForm.php +18 −1 Changes for module/Application/src/Application/Form/Intervenant/EditionForm.php: 18 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -220,6 +220,9 @@ class EditionForm extends AbstractForm $this->add([ 'name' => 'login', 'type' => 'Text', 'attributes' => [ 'autocomplete' => 'false', ], 'options' => [ 'label' => 'Login', ], Loading @@ -229,8 +232,11 @@ class EditionForm extends AbstractForm $this->add([ 'name' => 'password', 'type' => 'Password', 'attributes' => [ 'autocomplete' => 'false', ], 'options' => [ 'label' => 'Mot de passe', 'label' => 'Mot de passe (6 caractères min.)', ], ]); Loading Loading @@ -411,6 +417,17 @@ class EditionForm extends AbstractForm } } } if (!$object->getId()) { $syncElements = ['syncStatut', 'syncStructure', 'source', 'sourceCode']; foreach ($syncElements as $elementName) { $element = $this->get($elementName); /** @var Element $element */ $element->setAttribute('readonly', true); $element->setAttribute('disabled', true); $element->setAttribute('title', 'Paramètres de synchronisation inutiles dans le cas de la création d\'une nouvelle fiche'); } } } } Loading