Commit 532b12c9 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Contournement de l'autocomplete de FF très relou

parent 7202818c
Loading
Loading
Loading
Loading
+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
@@ -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();
+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
@@ -233,6 +233,7 @@ class EditionForm extends AbstractForm
            'type'       => 'Text',
            'attributes' => [
                'autocomplete' => 'off',
                'readonly'     => 'true',
            ],
            'options'    => [
                'label' => 'Login',
@@ -245,6 +246,7 @@ class EditionForm extends AbstractForm
            'type'       => 'Password',
            'attributes' => [
                'autocomplete' => 'off',
                'readonly'     => 'true',
            ],
            'options'    => [
                'label' => 'Mot de passe (6 caractères min.)',
@@ -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)) {
+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
@@ -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 ()