Commit 303066ce authored by Thomas Hamel's avatar Thomas Hamel
Browse files

uniformisation des champs obligatoires

parent 2b39a7dc
Loading
Loading
Loading
Loading
+2 −1
Changes for module/Application/src/Application/Form/AdresseMail/AdresseMailForm.php: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -13,7 +13,8 @@ class AdresseMailForm extends Form {

        $this->add(
            (new Text('email'))
                ->setLabel("Adresse électronique (identifiant de connexion) :")
                ->setLabel("Adresse électronique (identifiant de connexion) <span class='icon icon-obligatoire' style='color: darkred;font-size: 0.8em;' data-bs-toggle='tooltip' title='Obligatoire'></span> :")
                ->setLabelOptions(['disable_html_escape' => true,])
        );

        FormUtils::addSaveButton($this);
+2 −1
Changes for module/Application/src/Application/Form/AutorisationInscriptionForm.php: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -25,7 +25,8 @@ class AutorisationInscriptionForm extends Form implements InputFilterProviderInt
                    0 => "Non",
                ])
                ->setAttributes(['id' => 'autorisationInscription'])
                ->setLabel("Autorisez-vous l'inscription dans l'année suivante ?")
                ->setLabel("Autorisez-vous l'inscription dans l'année suivante ? <span class='icon icon-obligatoire' style='color: darkred;font-size: 0.8em;' data-bs-toggle='tooltip' title='Obligatoire'></span>")
                ->setLabelOptions(['disable_html_escape' => true,])
        );

        $this->add(
+4 −2
Changes for module/Application/src/Application/Form/CreationUtilisateurFromIndividuForm.php: 4 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -37,12 +37,14 @@ class CreationUtilisateurFromIndividuForm extends Form implements InputFilterPro

        $this->add(
            (new Password('password'))
                ->setLabel("Mot de passe :")
                ->setLabel("Mot de passe <span class='icon icon-obligatoire' style='color: darkred;font-size: 0.8em;' data-bs-toggle='tooltip' title='Obligatoire'></span> :")
                ->setLabelOptions(['disable_html_escape' => true,])
        );

        $this->add(
            (new Password('passwordbis'))
                ->setLabel("Confirmation du mot de passe :")
                ->setLabel("Confirmation du mot de passe <span class='icon icon-obligatoire' style='color: darkred;font-size: 0.8em;' data-bs-toggle='tooltip' title='Obligatoire'></span> :")
                ->setLabelOptions(['disable_html_escape' => true,])
        );

        FormUtils::addSaveButton($this);
+4 −2
Changes for module/Application/src/Application/Form/MailConfirmationForm.php: 4 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -28,11 +28,13 @@ class MailConfirmationForm extends Form
        $this->add(new Hidden('id'));
        $this->add(new Hidden('idIndividu'));
        $this->add((new Text('individu'))
            ->setLabel("Votre identité :")
            ->setLabel("Votre identité <span class='icon icon-obligatoire' style='color: darkred;font-size: 0.8em;' data-bs-toggle='tooltip' title='Obligatoire'></span> :")
            ->setLabelOptions(['disable_html_escape' => true,])
            ->setAttribute('readonly', 'readonly')
        );
        $this->add((new Text('email'))
            ->setLabel("Votre adresse électronique :")
            ->setLabel("Votre adresse électronique <span class='icon icon-obligatoire' style='color: darkred;font-size: 0.8em;' data-bs-toggle='tooltip' title='Obligatoire'></span> :")
            ->setLabelOptions(['disable_html_escape' => true,])
        );
        $this->add((new Checkbox('refusListeDiff'))
            ->setLabel("Je refuse de recevoir sur cette adresse les messages des listes de diffusion ?")
+8 −2
Changes for module/Application/src/Application/Form/Rapport/RapportAvisForm.php: 8 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -53,10 +53,13 @@ class RapportAvisForm extends Form implements InputFilterProviderInterface
            'type' => Radio::class,
            'name' => 'avis',
            'options' => [
                'label' => 'Avis :',
                'label' => "Avis <span class='icon icon-obligatoire' style='color: darkred;font-size: 0.8em;' data-bs-toggle='tooltip' title='Obligatoire'></span> :",
                'label_attributes' => [
                    'class' => 'required',
                ],
                'label_options' => [
                    'disable_html_escape' => true,
                ],
                'empty_option' => "Sélectionner...",
                'disable_inarray_validator' => true,
            ],
@@ -70,7 +73,10 @@ class RapportAvisForm extends Form implements InputFilterProviderInterface
            'name' => 'commentaires',
            'type' => Textarea::class,
            'options' => [
                'label' => "Commentaires :",
                'label' => "Commentaires <span class='icon icon-obligatoire' style='color: darkred;font-size: 0.8em;' data-bs-toggle='tooltip' title='Obligatoire'></span> :",
                'label_options' => [
                    'disable_html_escape' => true,
                ],
            ],
            'attributes' => [
                'id' => 'commentaires',
Loading