Loading module/Application/src/Application/Controller/IntervenantController.php +1 −1 Changes for module/Application/src/Application/Controller/IntervenantController.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -330,7 +330,7 @@ class IntervenantController extends AbstractController $form->setData($data); if ((!$form->isReadOnly()) && $form->isValid()) { try { if ($form->get('intervenant-edition-login')->getValue() && $form->get('intervenant-edition-password')->getValue()) { if ($form->get('intervenant-edition-lg')->getValue() && $form->get('intervenant-edition-password')->getValue()) { $nom = $intervenant->getNomUsuel(); $prenom = $intervenant->getPrenom(); $dateNaissance = $intervenant->getDateNaissance(); Loading module/Application/src/Application/Form/Intervenant/EditionForm.php +3 −1 Changes for module/Application/src/Application/Form/Intervenant/EditionForm.php: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -233,6 +233,7 @@ class EditionForm extends AbstractForm 'type' => 'Text', 'attributes' => [ 'autocomplete' => 'off', 'readonly' => 'true', ], 'options' => [ 'label' => 'Login', Loading @@ -245,6 +246,7 @@ class EditionForm extends AbstractForm 'type' => 'Password', 'attributes' => [ 'autocomplete' => 'off', 'readonly' => 'true', ], 'options' => [ 'label' => 'Mot de passe (6 caractères min.)', Loading Loading @@ -458,7 +460,7 @@ class EditionForm extends AbstractForm $element->setAttribute('disabled', true); } } else { $noImport = ['syncStatut', 'syncStructure', 'statut', 'structure']; $noImport = ['syncStatut', 'syncStructure', 'statut', 'structure', 'intervenant-edition-login', 'intervenant-edition-password']; foreach ($this->getElements() as $element) { if (!in_array($element->getName(), $noImport)) { Loading module/Application/view/application/intervenant/saisir.phtml +5 −0 Changes for module/Application/view/application/intervenant/saisir.phtml: 5 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -152,6 +152,11 @@ if ($errors) { this.getUserUtilisateurElement().change(function () { that.changementUtilisateur(); }); this.element.find('#new-user').click(function () { that.getLoginElement().attr('readonly', 'false'); that.getPasswordElement().attr('readonly', 'false'); }); }, changementParDefaut: function () Loading Loading
module/Application/src/Application/Controller/IntervenantController.php +1 −1 Changes for module/Application/src/Application/Controller/IntervenantController.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -330,7 +330,7 @@ class IntervenantController extends AbstractController $form->setData($data); if ((!$form->isReadOnly()) && $form->isValid()) { try { if ($form->get('intervenant-edition-login')->getValue() && $form->get('intervenant-edition-password')->getValue()) { if ($form->get('intervenant-edition-lg')->getValue() && $form->get('intervenant-edition-password')->getValue()) { $nom = $intervenant->getNomUsuel(); $prenom = $intervenant->getPrenom(); $dateNaissance = $intervenant->getDateNaissance(); Loading
module/Application/src/Application/Form/Intervenant/EditionForm.php +3 −1 Changes for module/Application/src/Application/Form/Intervenant/EditionForm.php: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -233,6 +233,7 @@ class EditionForm extends AbstractForm 'type' => 'Text', 'attributes' => [ 'autocomplete' => 'off', 'readonly' => 'true', ], 'options' => [ 'label' => 'Login', Loading @@ -245,6 +246,7 @@ class EditionForm extends AbstractForm 'type' => 'Password', 'attributes' => [ 'autocomplete' => 'off', 'readonly' => 'true', ], 'options' => [ 'label' => 'Mot de passe (6 caractères min.)', Loading Loading @@ -458,7 +460,7 @@ class EditionForm extends AbstractForm $element->setAttribute('disabled', true); } } else { $noImport = ['syncStatut', 'syncStructure', 'statut', 'structure']; $noImport = ['syncStatut', 'syncStructure', 'statut', 'structure', 'intervenant-edition-login', 'intervenant-edition-password']; foreach ($this->getElements() as $element) { if (!in_array($element->getName(), $noImport)) { Loading
module/Application/view/application/intervenant/saisir.phtml +5 −0 Changes for module/Application/view/application/intervenant/saisir.phtml: 5 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -152,6 +152,11 @@ if ($errors) { this.getUserUtilisateurElement().change(function () { that.changementUtilisateur(); }); this.element.find('#new-user').click(function () { that.getLoginElement().attr('readonly', 'false'); that.getPasswordElement().attr('readonly', 'false'); }); }, changementParDefaut: function () Loading