Commit 2453bb5e authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Ajout du tel perso dans l'édition de la fiche intervenant

parent ba9787a1
Loading
Loading
Loading
Loading
Loading
+12 −7
Original line number Diff line number Diff line
@@ -63,6 +63,7 @@ class EditionForm extends AbstractForm
        'codeRh'             => ['type' => 'string'],
        'utilisateurCode'    => ['type' => 'string'],
        'emailPerso'         => ['type' => 'string'],
        'telPerso' => ['type' => 'string'],
        'source'             => ['type' => Source::class],
        'sourceCode'         => ['type' => 'string'],
        'syncStatut'         => ['type' => 'bool'],
@@ -240,13 +241,16 @@ class EditionForm extends AbstractForm
            'type'       => Email::class,
            'options'    => [
                'label' => 'E-mail personnel',
                //'label_options' => ['disable_html_escape' => true],
            ],
            'attributes' => [
                //'placeholder' => "Email établissement",
                //'class'     => 'form-control left-border-none dossierElement',
                   ]);

        $this->add([
                       'name'    => 'telPerso',
                       'type'    => 'Text',
                       'options' => [
                           'label' => 'Tél. personnel',
                       ],
            'type'       => Email::class,

                   ]);

        $utilisateur = new SearchAndSelect('utilisateur');
@@ -571,6 +575,7 @@ class EditionForm extends AbstractForm
                    ['name' => EmailAddress::class],
                ],
            ],
            'telPerso' => ['required' => false],
            'statut'                       => ['required' => false],
            'structure'                    => ['required' => false],
            'discipline'                   => ['required' => false],
+2 −1
Original line number Diff line number Diff line
@@ -85,7 +85,8 @@ if ($errors) {
                        <div class="col-md-8"><?= $this->formControlGroup($form->get('nomPatronymique')); ?></div>
                    </div>
                    <div class="row">
                        <div class="col-md-12"><?= $this->formControlGroup($form->get('emailPerso')); ?></div>
                        <div class="col-md-6"><?= $this->formControlGroup($form->get('emailPerso')); ?></div>
                        <div class="col-md-6"><?= $this->formControlGroup($form->get('telPerso')); ?></div>
                    </div>
                    <div class="row">
                        <div class="col-md-6"><?= $this->formControlGroup($form->get('validiteDebut')); ?></div>