LSaddon::supann: add new components of supannEtuInscription attribute (SUPANN 2021)

This commit is contained in:
Benjamin Renard 2021-06-10 17:58:03 +02:00
parent bf28a6ea94
commit 1683cadd73

View file

@ -52,28 +52,28 @@ class LSformElement_supannEtuInscription extends LSformElement_supannCompositeAt
'msg' => _('Registration year must be an integer'), 'msg' => _('Registration year must be an integer'),
'params' => array ( 'params' => array (
'positive' => true, 'positive' => true,
'min' => 1970 'min' => 1970,
) ),
),
), ),
)
), ),
'regimeinsc' => array ( 'regimeinsc' => array (
'label' => _('Registration regime'), 'label' => _('Registration regime'),
'type' => 'table', 'type' => 'table',
'table' => 'etuRegimeInscription', 'table' => 'etuRegimeInscription',
'required' => true 'required' => true,
), ),
'sectdisc' => array ( 'sectdisc' => array (
'label' => _('Discipline sector'), 'label' => _('Discipline sector'),
'type' => 'table', 'type' => 'table',
'table' => 'etuSecteurDisciplinaire', 'table' => 'etuSecteurDisciplinaire',
'required' => true 'required' => true,
), ),
'typedip' => array ( 'typedip' => array (
'label' => _('Diploma type'), 'label' => _('Diploma type'),
'type' => 'table', 'type' => 'table',
'table' => 'etuTypeDiplome', 'table' => 'etuTypeDiplome',
'required' => true 'required' => true,
), ),
'cursusann' => array ( 'cursusann' => array (
'label' => _('Cursus & Year'), 'label' => _('Cursus & Year'),
@ -82,34 +82,45 @@ class LSformElement_supannEtuInscription extends LSformElement_supannCompositeAt
'regex' => array ( 'regex' => array (
'params' => array ( 'params' => array (
'regex' => '/^[LMDXB][0-9]?$/' 'regex' => '/^[LMDXB][0-9]?$/'
)
), ),
), ),
'required' => true ),
'required' => true,
), ),
'affect' => array ( 'affect' => array (
'label' => _('Entity'), 'label' => _('Entity'),
'type' => 'codeEntite', 'type' => 'codeEntite',
'required' => false 'required' => false,
), ),
'diplome' => array ( 'diplome' => array (
'label' => _('Diploma'), 'label' => _('Diploma'),
'type' => 'table', 'type' => 'table',
'table' => 'etuDiplome', 'table' => 'etuDiplome',
'required' => false 'required' => false,
), ),
'etape' => array ( 'etape' => array (
'label' => _('Step'), 'label' => _('Step'),
'type' => 'table', 'type' => 'table',
'table' => 'etuEtape', 'table' => 'etuEtape',
'required' => false 'required' => false,
), ),
'eltpedago' => array ( 'eltpedago' => array (
'label' => _('Pedagogical element'), 'label' => _('Pedagogical element'),
'type' => 'table', 'type' => 'table',
'table' => 'etuElementPedagogique', 'table' => 'etuElementPedagogique',
'required' => false 'required' => false,
) ),
'population' => array (
'label' => _('Population'),
'type' => 'table',
'table' => 'codePopulation',
'required' => false,
),
'datefin' => array (
'label' => _('End date'),
'type' => 'date',
'required' => false,
),
); );
return parent :: __construct($form, $name, $label, $params, $attr_html); return parent :: __construct($form, $name, $label, $params, $attr_html);
} }