Commit dc60a2b2 authored by Thomas Hamel's avatar Thomas Hamel
Browse files

uniformisation affichage champ obligatoire dans form

parent 97863aa5
Loading
Loading
Loading
Loading
+2 −1
Changes for module/Admission/src/Admission/Form/Fieldset/Inscription/InscriptionFieldset.php: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -189,7 +189,8 @@ class InscriptionFieldset extends AdmissionBaseFieldset implements InputFilterPr

        $this->add(
            (new Select("ecoleDoctorale"))
                ->setLabel("Ecole doctorale *")
                ->setLabel("École doctorale <span class='icon icon-obligatoire' style='color: darkred;font-size: 0.8em;' data-bs-toggle='tooltip' title='Obligatoire'></span>")
                ->setLabelOptions(['disable_html_escape' => true])
                ->setLabelAttributes(['data-after' => " / Doctoral school"])
                ->setEmptyOption('Sélectionnez une option')
                ->setAttributes([
+9 −4
Changes for module/Application/src/Application/Form/CreationUtilisateurForm.php: 9 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -34,23 +34,28 @@ class CreationUtilisateurForm extends Form implements InputFilterProviderInterfa
        );
        $this->add(
            (new Text('nomUsuel'))
                ->setLabel("Nom d'usage *")
                ->setLabel("Nom d'usage <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 Text('nomPatronymique'))
            ->setLabel("Nom de famille (patronymique) *")
            ->setLabel("Nom de famille (patronymique) <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 Text('prenom'))
                ->setLabel("Prénom *")
                ->setLabel("Prénom <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 Text('email'))
                ->setLabel("Adresse électronique (sera votre identifiant de connexion) *")
                ->setLabel("Adresse électronique (sera votre 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, ])
        );
        $this->add(
            (new Checkbox('individu'))
                ->setLabel("Création d'individu pour cet utilisateur <br/> <span class='text-danger'><span class='fas fa-exclamation-triangle'></span> Ne pas cocher si pour lier à un individu existant</span>")

        );
        $this->add((new Submit('submit'))
            ->setValue("Enregistrer")
+12 −3
Changes for module/Application/src/Application/Form/InitCompteForm.php: 12 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -36,7 +36,10 @@ class InitCompteForm extends Form
            'type' => Text::class,
            'name' => 'username',
            'options' => [
                'label' => "Identifiant de connexion / Username * :",
                'label' => "Identifiant de connexion / Username <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' => 'username',
@@ -47,7 +50,10 @@ class InitCompteForm extends Form
            'type' => Password::class,
            'name' => 'password1',
            'options' => [
                'label' => "Mot de passe / Password * :",
                'label' => "Mot de passe / Password <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' => 'password1',
@@ -58,7 +64,10 @@ class InitCompteForm extends Form
            'type' => Password::class,
            'name' => 'password2',
            'options' => [
                'label' => "Confirmation du mot de passe / Password confirmation * :",
                'label' => "Confirmation du mot de passe / Password confirmation <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' => 'password2',
+7 −3
Changes for module/Application/src/Application/Form/ProfilForm.php: 7 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -18,7 +18,8 @@ class ProfilForm extends Form {
            'type' => Text::class,
            'name' => 'libelle',
            'options' => [
                'label' => "Libelle* :",
                'label' => "Libelle <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' => 'libelle',
@@ -29,7 +30,8 @@ class ProfilForm extends Form {
            'type' => Text::class,
            'name' => 'code',
            'options' => [
                'label' => "Code* :",
                'label' => "Code <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' => 'code',
@@ -40,7 +42,7 @@ class ProfilForm extends Form {
            'type' => Select::class,
            'name' => 'structure',
            'options' => [
                'label' => "Type de structure* :",
                'label' => "Type de structure :",
                'value_options' => [
                    '' => "Aucun",
                    TypeStructure::CODE_ECOLE_DOCTORALE  => 'École doctorale',
@@ -50,6 +52,8 @@ class ProfilForm extends Form {
            ],
            'attributes' => [
                'id' => 'structure',
                'class' => 'selectpicker show-menu-arrow',
                'data-live-search' => 'true',
            ],
        ]);
        //description
+2 −1
Changes for module/Formation/src/Formation/Form/EnqueteReponse/EnqueteReponseForm.php: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -26,7 +26,8 @@ class EnqueteReponseForm extends Form
                'type' => Select::class,
                'name' => 'select_' . $question->getId(),
                'options' => [
                    'label' => "Niveau de satisfaction * :",
                    'label' => "Niveau de satisfaction <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, ],
                    'empty_option' => "Choisisser un niveau de satisfaction",
                    'value_options' => EnqueteReponse::NIVEAUX,
                ],
Loading