Traduits toutes les chaînes, ajout des attributs étudiants et des validations de syntaxe

This commit is contained in:
Benjamin Dauvergne 2015-02-04 14:59:04 +01:00
parent 3f88c6ed96
commit a9646e3fb5
5 changed files with 455 additions and 143 deletions

View File

@ -28,7 +28,8 @@ $GLOBALS['LSobjects']['LSsupannEntite'] = array (
'rdn' => 'supannCodeEntite',
'container_dn' => 'ou=structures',
'display_name_format' => '%{ou}',
'label' => 'Entities',
'label' => 'Entités',
'displayAttrName' => true,
// LSform
'LSform' => array (
@ -38,12 +39,12 @@ $GLOBALS['LSobjects']['LSsupannEntite'] = array (
'infos' => array(
'label' => 'Informations',
'args' => array (
'description',
'ou',
'supannTypeEntite',
'supannCodeEntite',
'supannRefId',
'supannCodeEntiteParent',
'supannTypeEntite',
'ou',
'description',
'supannRefId',
)
),
'com' => array (
@ -92,7 +93,7 @@ $GLOBALS['LSobjects']['LSsupannEntite'] = array (
/* ----------- start -----------*/
'ou' => array (
'label' => "Short name",
'label' => "Nom cours",
'ldap_type' => 'ascii',
'html_type' => 'text',
'required' => 1,
@ -119,7 +120,7 @@ $GLOBALS['LSobjects']['LSsupannEntite'] = array (
/* ----------- start -----------*/
'supannCodeEntiteParent' => array (
'label' => 'Parent entity',
'label' => 'Entité parente',
'ldap_type' => 'ascii',
'html_type' => 'select_object',
'html_options' => array(
@ -127,13 +128,13 @@ $GLOBALS['LSobjects']['LSsupannEntite'] = array (
'object_type' => 'LSsupannEntiteBase',
'display_name_format' => '%{description}',
'value_attribute' => 'supannCodeEntite'
)
)
),
'required' => 1,
'multiple' => 0,
'validation' => array (
array (
'msg' => "This entity doesn't exist.",
'msg' => "Cette entité n'existe pas.",
'object_type' => 'LSsupannEntiteBase',
'filter' => 'supannCodeEntite=%{val}',
'result' => 1
@ -153,14 +154,22 @@ $GLOBALS['LSobjects']['LSsupannEntite'] = array (
/* ----------- start -----------*/
'supannCodeEntite' => array (
'label' => 'Entity identifier',
'label' => 'Identifiant de l\'entité',
'ldap_type' => 'ascii',
'html_type' => 'text',
'required' => 1,
'multiple' => 0,
'check_data' => array (
'regex' => array(
'params' => array(
'regex' => '^[a-zA-Z0-9_-]+$',
),
'msg' => "L'identifiant ne peut contenir que des nombres, des lettres ou les caractères - et _."
),
),
'validation' => array (
array (
'msg' => "This identifier is already affected.",
'msg' => "Cet identifiant est déjà utilisé.",
'object_type' => 'LSsupannEntite',
'filter' => '(supannCodeEntite=%{val})',
'result' => 0
@ -215,7 +224,7 @@ $GLOBALS['LSobjects']['LSsupannEntite'] = array (
/* ----------- start -----------*/
'postalAddress' => array (
'label' => 'Address',
'label' => 'Adresse postale',
'ldap_type' => 'postalAddress',
'html_type' => 'textarea',
'required' => 0,
@ -232,7 +241,7 @@ $GLOBALS['LSobjects']['LSsupannEntite'] = array (
/* ----------- start -----------*/
'telephoneNumber' => array (
'label' => 'Phone',
'label' => 'Téléphone fixe',
'ldap_type' => 'ascii',
'html_type' => 'text',
'required' => 0,
@ -250,7 +259,7 @@ $GLOBALS['LSobjects']['LSsupannEntite'] = array (
/* ----------- start -----------*/
'supannRefId' => array (
'label' => 'Identifier reference',
'label' => 'Référence externe',
'ldap_type' => 'ascii',
'html_type' => 'text',
'required' => 0,
@ -267,7 +276,7 @@ $GLOBALS['LSobjects']['LSsupannEntite'] = array (
/* ----------- start -----------*/
'supannTypeEntite' => array (
'label' => "Entity type",
'label' => "Type de l\'entité",
'ldap_type' => 'ascii',
'html_type' => 'supannTypeEntite',
'multiple' => 1,

View File

@ -27,7 +27,7 @@ $GLOBALS['LSobjects']['LSsupannEntiteBase'] = array (
'rdn' => 'supannCodeEntite',
'container_dn' => 'ou=structures',
'display_name_format' => '%{description}',
'label' => 'Entities',
'label' => 'Entités',
// LSform
'LSform' => array (
@ -48,7 +48,7 @@ $GLOBALS['LSobjects']['LSsupannEntiteBase'] = array (
'attrs' => array (
/* ----------- start -----------*/
'supannCodeEntiteParent' => array (
'label' => 'Parent entity',
'label' => 'Entité parente',
'ldap_type' => 'ascii',
'html_type' => 'select_object',
'html_options' => array(
@ -66,7 +66,15 @@ $GLOBALS['LSobjects']['LSsupannEntiteBase'] = array (
/* ----------- start -----------*/
'supannCodeEntite' => array (
'label' => 'Entity identifier',
'label' => 'Identifiant de l\'entité',
'check_data' => array (
'regex' => array(
'params' => array(
'regex' => '^[a-zA-Z0-9_-]+$',
),
'msg' => "L'identifiant ne peut contenir que des nombres, des lettres ou les caractères - et _."
),
),
'ldap_type' => 'ascii',
'html_type' => 'text',
'multiple' => 0,
@ -84,7 +92,7 @@ $GLOBALS['LSobjects']['LSsupannEntiteBase'] = array (
/* ----------- start -----------*/
'supannRefId' => array (
'label' => 'Identifier reference',
'label' => 'Référence externe',
'ldap_type' => 'ascii',
'html_type' => 'text',
'required' => 0,
@ -94,7 +102,7 @@ $GLOBALS['LSobjects']['LSsupannEntiteBase'] = array (
/* ----------- start -----------*/
'supannTypeEntite' => array (
'label' => "Entity type",
'label' => "Type de l\'entité",
'ldap_type' => 'ascii',
'html_type' => 'supannTypeEntite',
'multiple' => 1,

View File

@ -28,7 +28,8 @@ $GLOBALS['LSobjects']['LSsupannGroup'] = array (
'rdn' => 'cn',
'container_dn' => 'ou=groups',
'display_name_format' => '%{cn}',
'label' => 'Groups',
'label' => 'Groupes',
'displayAttrName' => true,
'LSaddons' => array (
'supann',
@ -46,10 +47,19 @@ $GLOBALS['LSobjects']['LSsupannGroup'] = array (
/* ----------- start -----------*/
'cn' => array (
'label' => "Name",
'label' => "Identifiant",
'help_info' => 'L\'identifiant ne doit contenir que des nombres, des lettres ou le caractère -.',
'ldap_type' => 'ascii',
'html_type' => 'text',
'required' => 1,
'check_data' => array (
'regex' => array(
'params' => array(
'regex' => '^[a-zA-Z0-9-]+$',
),
'msg' => 'L\'identifiant ne doit contenir que des nombres, des lettres ou le caractère -.',
),
),
'validation' => array (
array (
'filter' => 'cn=%{val}',
@ -71,7 +81,7 @@ $GLOBALS['LSobjects']['LSsupannGroup'] = array (
/* ----------- start -----------*/
'member' => array (
'label' => 'Members (DN)',
'label' => 'Membre',
'ldap_type' => 'ascii',
'html_type' => 'select_object',
'html_options' => array(
@ -112,7 +122,7 @@ $GLOBALS['LSobjects']['LSsupannGroup'] = array (
/* ----------- end -----------*/
/* ----------- start -----------*/
'owner' => array (
'label' => 'Owner (DN)',
'label' => 'Propriétaires',
'ldap_type' => 'ascii',
'html_type' => 'select_object',
'html_options' => array(
@ -135,7 +145,7 @@ $GLOBALS['LSobjects']['LSsupannGroup'] = array (
/* ----------- end -----------*/
/* ----------- start -----------*/
'supannGroupeAdminDN' => array (
'label' => 'Admin (DN)',
'label' => 'Administrateurs des membres',
'ldap_type' => 'ascii',
'html_type' => 'select_object',
'html_options' => array(
@ -158,7 +168,7 @@ $GLOBALS['LSobjects']['LSsupannGroup'] = array (
/* ----------- end -----------*/
/* ----------- start -----------*/
'supannGroupeLecteurDN' => array (
'label' => 'Reader (DN)',
'label' => 'Lecteurs des membres',
'ldap_type' => 'ascii',
'html_type' => 'select_object',
'html_options' => array(
@ -181,7 +191,7 @@ $GLOBALS['LSobjects']['LSsupannGroup'] = array (
/* ----------- end -----------*/
/* ----------- start -----------*/
'supannGroupeDateFin' => array (
'label' => 'Group End Date',
'label' => 'Date de fin de validité',
'ldap_type' => 'date',
'html_type' => 'date',
'html_options' => array(
@ -203,7 +213,7 @@ $GLOBALS['LSobjects']['LSsupannGroup'] = array (
/* ----------- end -----------*/
/* ----------- start -----------*/
'supannRefId' => array (
'label' => 'Identifier reference',
'label' => 'Référence externe',
'ldap_type' => 'ascii',
'html_type' => 'text',
'rights' => array(

View File

@ -30,7 +30,8 @@ $GLOBALS['LSobjects']['LSsupannOrg'] = array (
'rdn' => 'supannCodeEntite',
'container_dn' => 'ou=structures',
'display_name_format' => '%{o}',
'label' => 'Organization',
'label' => 'Organisations',
'displayAttrName' => true,
// LSform
'LSform' => array (
@ -99,7 +100,7 @@ $GLOBALS['LSobjects']['LSsupannOrg'] = array (
'attrs' => array (
/* ----------- start -----------*/
'o' => array (
'label' => "Organization name",
'label' => "Nom",
'ldap_type' => 'ascii',
'html_type' => 'text',
'required' => 1,
@ -126,7 +127,7 @@ $GLOBALS['LSobjects']['LSsupannOrg'] = array (
/* ----------- start -----------*/
'supannEtablissement' => array (
'label' => 'Institute',
'label' => 'Code établissement',
'ldap_type' => 'ascii',
'html_type' => 'supannEtablissement',
'required' => 1,
@ -143,14 +144,22 @@ $GLOBALS['LSobjects']['LSsupannOrg'] = array (
/* ----------- start -----------*/
'supannCodeEntite' => array (
'label' => 'Entity identifier',
'label' => 'Identifiant de l\'entité',
'check_data' => array (
'regex' => array(
'params' => array(
'regex' => '^[a-zA-Z0-9_-]+$',
),
'msg' => "L'identifiant ne peut contenir que des nombres, des lettres ou les caractères - et _."
),
),
'ldap_type' => 'ascii',
'html_type' => 'text',
'required' => 1,
'multiple' => 0,
'validation' => array (
array (
'msg' => "This identifier is already affected.",
'msg' => "Cet identifiant est déjà utilisé.",
'object_type' => 'LSsupannEntite',
'filter' => '(supannCodeEntite=%{val})',
'result' => 0
@ -205,7 +214,7 @@ $GLOBALS['LSobjects']['LSsupannOrg'] = array (
/* ----------- start -----------*/
'postalAddress' => array (
'label' => 'Address',
'label' => 'Adresse postale',
'ldap_type' => 'postalAddress',
'html_type' => 'textarea',
'required' => 0,
@ -222,7 +231,7 @@ $GLOBALS['LSobjects']['LSsupannOrg'] = array (
/* ----------- start -----------*/
'telephoneNumber' => array (
'label' => 'Phone',
'label' => 'Téléphone fixe',
'ldap_type' => 'ascii',
'html_type' => 'text',
'required' => 0,
@ -240,7 +249,7 @@ $GLOBALS['LSobjects']['LSsupannOrg'] = array (
/* ----------- start -----------*/
'supannRefId' => array (
'label' => 'Identifier reference',
'label' => 'Référence externe',
'ldap_type' => 'ascii',
'html_type' => 'text',
'required' => 0,
@ -257,7 +266,7 @@ $GLOBALS['LSobjects']['LSsupannOrg'] = array (
/* ----------- start -----------*/
'supannTypeEntite' => array (
'label' => "Entity type",
'label' => 'Type de l\'entité',
'ldap_type' => 'ascii',
'html_type' => 'supannTypeEntite',
'multiple' => 1,
@ -274,9 +283,17 @@ $GLOBALS['LSobjects']['LSsupannOrg'] = array (
/* ----------- start -----------*/
'eduOrgHomePageURI' => array (
'label' => "Website",
'label' => "URL du site web",
'ldap_type' => 'ascii',
'html_type' => 'url',
'check_data' => array (
'regex' => array(
'params' => array(
'regex' => '^https?://.*',
),
'msg' => "Veuillez entrer une URL."
),
),
'multiple' => 1,
'rights' => array(
'admin' => 'w',
@ -291,7 +308,7 @@ $GLOBALS['LSobjects']['LSsupannOrg'] = array (
/* ----------- start -----------*/
'eduOrgLegalName' => array (
'label' => "Legal name",
'label' => "Nom légal",
'ldap_type' => 'ascii',
'html_type' => 'text',
'multiple' => 0,
@ -304,9 +321,17 @@ $GLOBALS['LSobjects']['LSsupannOrg'] = array (
/* ----------- start -----------*/
'eduOrgSuperiorURI' => array (
'label' => "Superior organization Website",
'label' => 'URL du site web de l\'organisation parente',
'ldap_type' => 'ascii',
'html_type' => 'url',
'check_data' => array (
'regex' => array(
'params' => array(
'regex' => '^https?://.*',
),
'msg' => "Veuillez entrer une URL."
),
),
'multiple' => 1,
'rights' => array(
'admin' => 'w',
@ -321,9 +346,17 @@ $GLOBALS['LSobjects']['LSsupannOrg'] = array (
/* ----------- start -----------*/
'eduOrgWhitePagesURI' => array (
'label' => "Whitepage Website",
'label' => "URL du site des pages blanches",
'ldap_type' => 'ascii',
'html_type' => 'url',
'check_data' => array (
'regex' => array(
'params' => array(
'regex' => '^https?://.*',
),
'msg' => "Veuillez entrer une URL."
),
),
'multiple' => 1,
'rights' => array(
'admin' => 'w',
@ -338,7 +371,7 @@ $GLOBALS['LSobjects']['LSsupannOrg'] = array (
/* ----------- start -----------*/
'l' => array (
'label' => "Locality",
'label' => "Ville",
'ldap_type' => 'ascii',
'html_type' => 'text',
'multiple' => 1,

View File

@ -38,7 +38,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
//"disable_creation" => true,
'display_name_format' => '%{displayName}',
'label' => 'Users',
'label' => 'Personnes',
'displayAttrName' => true,
// LSrelation
@ -67,45 +67,58 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
// Layout
'layout' => array (
'Civility' => array(
'label' => 'Civility',
'label' => 'Civilité',
'img' => 1,
'args' => array (
'uid',
'eduPersonPrincipalName',
'supannAliasLogin',
'supannRefId',
'supannCivilite',
'givenName',
'sn',
'givenName',
'cn',
'displayName',
'eduPersonNickname',
'supannAliasLogin',
'supannRefId',
'userPassword',
'description',
'jpegPhoto'
)
),
'school' => array (
'label' => 'School',
'args' => array (
'supannEtablissement',
'eduPersonAffiliation',
'eduPersonPrimaryAffiliation',
'supannActivite',
'supannEtuId',
'supannCodeINE',
'description',
'supannParrainDN',
)
),
'admin' => array (
'label' => 'Personnel',
'args' => array (
'supannEmpId',
'supannActivite',
'supannEmpCorps',
'supannEntiteAffectation',
'supannEntiteAffectationPrincipale',
'supannRoleEntite',
'supannRoleGenerique',
'supannTypeEntiteAffectation',
'supannEtablissement',
'supannParrainDN',
)
),
'school' => array (
'label' => 'Étudiant',
'args' => array (
'supannEtuID',
'supannCodeINE',
'supannEtuInscription',
'supannEtuAnneeInscription',
'supannEtuCursusAnnee',
'supannEtuDiplome',
'supannEtuElementPedagogique',
'supannEtuEtape',
'supannEtuRegimeInscription',
'supannEtuSecteurDisciplinaire',
'supannEtuTypeDiplome',
)
),
'communication' => array (
'label' => 'Communication',
'label' => 'Contact',
'args' => array (
'preferredLanguage',
'telephoneNumber',
@ -147,20 +160,21 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'uid' => array (
'label' => 'Identifier',
'label' => 'Identifiant',
'help_info' => 'L\'identifiant ne doit contenir que des lettres ou des chiffres.',
'ldap_type' => 'ascii',
'html_type' => 'text',
'required' => 1,
'check_data' => array (
'alphanumeric' => array(
'msg' => "The identifier must contain only letters or numbers."
'msg' => 'L\'identifiant ne doit contenir que des lettres ou des chiffres.',
),
),
'validation' => array (
array (
'filter' => '(|(uid=%{val})(supannAliasLogin=%{val}))',
'result' => 0,
'msg' => 'This identifier is already used.'
'msg' => 'Cet identifiant est déjà utilisé.'
)
),
'rights' => array(
@ -181,6 +195,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'userPassword' => array (
'label' => 'Password',
'help_info' => 'Le mot de passe doit faire plus de 8 caractères.',
'ldap_type' => 'password',
'html_type' => 'password',
'html_options' => array(
@ -196,10 +211,9 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
),
'check_data' => array(
'password' => array(
'msg' => 'The password length must be between 7 and 10 characters.',
'msg' => 'Le mot de passe doit faire plus de 8 caractères.',
'params' => array(
'minLength' => 7,
'maxLength' => 10
'minLength' => 8,
)
)
),
@ -218,19 +232,28 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'eduPersonPrincipalName' => array (
'label' => 'Identifier single institutional',
'label' => 'Identifiant global',
'help_info' => 'Syntaxe identique à une adresse e-mail.',
'ldap_type' => 'ascii',
'html_type' => 'text',
'required' => 1,
'generate_value_format' => '%{uid}@' . $GLOBALS['LS_SUPANN_EPPN_DOMAIN'],
'check_data' => array (
'regex' => array(
'msg' => "Entrez un code Xn.",
'params' => array(
'regex' => '^.*@.*$',
),
),
),
'generate_value_format' => '%{uid}@' . $GLOBALS['LS_SUPANN_EPPN_DOMAIN'],
'validation' => array (
array (
'filter' => 'eduPersonPrincipalName=%{val}',
'result' => 0,
'msg' => 'This identifier is already used.'
'msg' => 'Cet identifiant est déjà utilisé.'
)
),
view => 1,
'view' => 1,
'rights' => array(
'admin' => 'w'
),
@ -239,9 +262,16 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'supannAliasLogin' => array (
'label' => 'Alias login',
'label' => 'Alias de l\'identifiant',
'help_info' => 'L\'identifiant ne doit contenir que des lettres ou des chiffres.',
'ldap_type' => 'ascii',
'html_type' => 'text',
'required' => 1,
'check_data' => array (
'alphanumeric' => array(
'msg' => 'L\'identifiant ne doit contenir que des lettres ou des chiffres.',
),
),
'validation' => array (
array (
'filter' => '(|(uid=%{val})(supannAliasLogin=%{val}))',
@ -262,7 +292,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'supannRefId' => array (
'label' => 'Identifier reference',
'label' => 'Référence externe',
'ldap_type' => 'ascii',
'html_type' => 'text',
'rights' => array(
@ -278,7 +308,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'givenName' => array (
'label' => 'First Name',
'label' => 'Prénom',
'ldap_type' => 'ascii',
'html_type' => 'text',
'rights' => array(
@ -299,7 +329,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'sn' => array (
'label' => 'Name',
'label' => 'Nom',
'ldap_type' => 'ascii',
'html_type' => 'text',
'required' => 1,
@ -321,44 +351,37 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'cn' => array (
'label' => 'Full Name',
'label' => 'Nom complet (pour la recherche)',
'ldap_type' => 'ascii',
'html_type' => 'text',
'required' => 1,
'generate_function' => 'generate_cn',
'views' => 1,
'rights' => array(
'self' => 'r',
'admin' => 'w'
'admin' => 'r'
),
'form' => array (
'modify' => 1,
)
'view' => 1,
),
/* ----------- end -----------*/
/* ----------- start -----------*/
'displayName' => array (
'label' => 'Display name',
'label' => 'Nom complet (pour l\'affichage)',
'ldap_type' => 'ascii',
'html_type' => 'text',
'required' => 1,
'generate_function' => 'generate_displayName',
'views' => 1,
'rights' => array(
'self' => 'r',
'admin' => 'w'
'admin' => 'r'
),
'view' => 1,
'form' => array (
'modify' => 1,
)
),
/* ----------- end -----------*/
/* ----------- start -----------*/
'eduPersonNickname' => array (
'label' => 'Nickname',
'label' => 'Diminutif',
'ldap_type' => 'ascii',
'html_type' => 'text',
'rights' => array(
@ -373,7 +396,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'telephoneNumber' => array (
'label' => 'Phone',
'label' => 'Téléphone fixe',
'ldap_type' => 'ascii',
'html_type' => 'text',
'multiple' => 1,
@ -391,7 +414,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'supannAutreTelephone' => array (
'label' => 'Other phones',
'label' => 'Téléphone fixe (autre)',
'ldap_type' => 'ascii',
'html_type' => 'text',
'multiple' => 1,
@ -410,7 +433,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'mobile' => array (
'label' => 'Mobile phone',
'label' => 'Téléphone mobile',
'ldap_type' => 'ascii',
'html_type' => 'text',
'multiple' => 1,
@ -451,14 +474,14 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
'html_type' => 'mail',
'check_data' => array (
'email' => array(
'msg' => "Given email address is invalid.",
'msg' => "Cette adresse est invalide.",
),
),
'validation' => array (
array (
'filter' => '(&(!(uid=%{uid}))(|(mail=%{val})(supannAutreMail=%{val})(supannMailPerso=%{val})))',
'result' => 0,
'msg' => 'This mail is already used.'
'msg' => 'Cette adresse est déjà utilisée.'
)
),
'rights' => array(
@ -475,20 +498,20 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'supannAutreMail' => array (
'label' => 'Alternate e-mail',
'label' => 'E-mail (autre)',
'ldap_type' => 'ascii',
'html_type' => 'mail',
'multiple' => 1,
'check_data' => array (
'email' => array(
'msg' => "Given email address is invalid.",
'msg' => "Cette adresse est invalide.",
),
),
'validation' => array (
array (
'filter' => '(&(!(uid=%{uid}))(|(mail=%{val})(supannAutreMail=%{val})(supannMailPerso=%{val})))',
'result' => 0,
'msg' => 'This mail is already used.'
'msg' => 'Cette adresse est déjà utilisée.'
)
),
'rights' => array(
@ -505,12 +528,12 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'mailForwardingAddress' => array (
'label' => 'Forwarding e-mail',
'label' => 'E-mail de renvoi',
'ldap_type' => 'ascii',
'html_type' => 'mail',
'check_data' => array (
'email' => array(
'msg' => "Given email address is invalid.",
'msg' => "Cette adresse est invalide.",
),
),
'rights' => array(
@ -526,19 +549,19 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'supannMailPerso' => array (
'label' => 'E-mail perso',
'label' => 'E-mail personnel',
'ldap_type' => 'ascii',
'html_type' => 'mail',
'check_data' => array (
'email' => array(
'msg' => "Given email address is invalid.",
'msg' => "Cette adresse est invalide.",
),
),
'validation' => array (
array (
'filter' => '(&(!(uid=%{uid}))(|(mail=%{val})(supannAutreMail=%{val})(supannMailPerso=%{val})))',
'result' => 0,
'msg' => 'This mail is already used.'
'msg' => 'Cette adresse est déjà utilisée.'
)
),
'rights' => array(
@ -556,7 +579,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'postalAddress' => array (
'label' => 'Address',
'label' => 'Adresse postale',
'ldap_type' => 'postalAddress',
'html_type' => 'textarea',
'rights' => array(
@ -573,7 +596,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'supannCivilite' => array (
'label' => 'Civility',
'label' => 'Civilité',
'ldap_type' => 'ascii',
'html_type' => 'select_list',
'html_options' => array (
@ -597,7 +620,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'supannEtuId' => array (
'label' => 'Student number',
'label' => 'Identifiant étudiant',
'ldap_type' => 'ascii',
'html_type' => 'text',
'rights' => array(
@ -614,7 +637,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'supannCodeINE' => array (
'label' => 'INE Code',
'label' => 'Code INE',
'ldap_type' => 'ascii',
'html_type' => 'text',
'rights' => array(
@ -632,7 +655,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'supannEmpId' => array (
'label' => 'Employee number',
'label' => 'Identifiant d\'employé',
'ldap_type' => 'ascii',
'html_type' => 'text',
'rights' => array(
@ -666,7 +689,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'supannEtablissement' => array (
'label' => 'Institute',
'label' => 'Code établissement',
'ldap_type' => 'ascii',
'html_type' => 'supannEtablissement',
'required' => 1,
@ -686,7 +709,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'supannListeRouge' => array (
'label' => 'Red list',
'label' => 'Sur liste rouge?',
'ldap_type' => 'boolean',
'ldap_options' => array(
'true_value' => 'TRUE',
@ -709,7 +732,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'eduPersonAffiliation' => array (
'label' => 'Affiliate',
'label' => 'Profils eduPerson',
'ldap_type' => 'numeric',
'html_type' => 'select_box',
'html_options' => array (
@ -729,7 +752,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'eduPersonPrimaryAffiliation' => array (
'label' => 'Primary affiliate',
'label' => 'Profil eduPerson principal',
'ldap_type' => 'numeric',
'html_type' => 'select_box',
'html_options' => array (
@ -747,27 +770,36 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
),
/* ----------- end -----------*/
/* ----------- start -----------*/
'labeledURI' => array (
'label' => "Personal website",
'ldap_type' => 'ascii',
'html_type' => 'url',
'multiple' => 1,
'rights' => array(
'admin' => 'w',
'self' => 'w'
),
'view' => 1,
'form' => array (
'modify' => 1,
'create' => 1
)
/* ----------- start -----------*/
'labeledURI' => array (
'label' => "URL du site web personnel",
'help_info' => "Veuillez entrer une URL.",
'ldap_type' => 'ascii',
'html_type' => 'url',
'check_data' => array (
'regex' => array(
'params' => array(
'regex' => '^https?://.*',
),
/* ----------- end -----------*/
'msg' => "Veuillez entrer une URL."
),
),
'multiple' => 1,
'rights' => array(
'admin' => 'w',
'self' => 'w'
),
'view' => 1,
'form' => array (
'modify' => 1,
'create' => 1
)
),
/* ----------- end -----------*/
/* ----------- start -----------*/
'preferredLanguage' => array (
'label' => 'Preferred language',
'label' => 'Langue préférée',
'ldap_type' => 'ascii',
'html_type' => 'select_list',
'html_options' => array (
@ -787,8 +819,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'userCertificate' => array (
'label' => 'Certificate',
'help_info' => 'X.509 certificate of the person.',
'label' => 'Certificat X.509',
'ldap_type' => 'ascii',
'html_type' => 'textarea',
'rights' => array(
@ -804,7 +835,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'eduPersonOrgDN' => array (
'label' => 'Institute',
'label' => 'DN de l\'organisation (eduPerson)',
'ldap_type' => 'ascii',
'html_type' => 'text',
'generate_function' => 'generate_eduPersonOrgDN',
@ -816,7 +847,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'supannEntiteAffectation' => array (
'label' => 'Assignment',
'label' => 'Entités d\'affectation',
'ldap_type' => 'ascii',
'html_type' => 'select_object',
'html_options' => array(
@ -828,7 +859,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
'multiple' => 1,
'validation' => array (
array (
'msg' => "This entity doesn't exist.",
'msg' => "Cette entité n\'existe pas.",
'object_type' => 'LSsupannEntite',
'filter' => 'supannCodeEntite=%{val}',
'result' => 1
@ -852,7 +883,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'eduPersonOrgUnitDN' => array (
'label' => 'Assignment (DN)',
'label' => 'DN des entités d\'affectation (eduPerson)',
'ldap_type' => 'ascii',
'html_type' => 'text',
'multiple' => 1,
@ -865,7 +896,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'supannEntiteAffectationPrincipale' => array (
'label' => 'Primary assignment',
'label' => 'Entité d\'affectation principale',
'ldap_type' => 'ascii',
'html_type' => 'select_object',
'html_options' => array(
@ -877,7 +908,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
'multiple' => 0,
'validation' => array (
array (
'msg' => "This entity doesn't exist.",
'msg' => "Cette entité n'existe pas.",
'object_type' => 'LSsupannEntite',
'filter' => 'supannCodeEntite=%{val}',
'result' => 1
@ -901,7 +932,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'eduPersonPrimaryOrgUnitDN' => array (
'label' => 'Primary assignment',
'label' => 'DN de l\'entité d\'affectation principale (eduPerson)',
'ldap_type' => 'ascii',
'html_type' => 'text',
'multiple' => 0,
@ -914,8 +945,8 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'supannParrainDN' => array (
'label' => 'Godfather',
'help_info' => 'Godfather of this person in directory.',
'label' => 'Parrains',
'help_info' => 'Personnes ayant demandées l\'inscription dans l\'annuaire.',
'ldap_type' => 'ascii',
'ldap_options' => array (
'LSobjectType' => 'LSsupannPerson',
@ -931,7 +962,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
'multiple' => 1,
'validation' => array (
array (
'msg' => "This person doesn't exist.",
'msg' => "Cette personne n'existe pas dans l\'annuaire.",
'basedn' => '%{val}',
'result' => 1
)
@ -950,7 +981,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'supannActivite' => array (
'label' => 'Activities',
'label' => 'Activités',
'ldap_type' => 'ascii',
'html_type' => 'supannActivite',
'multiple' => 1,
@ -966,7 +997,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- end -----------*/
/* ----------- start -----------*/
'supannRoleEntite' => array (
'label' => 'Roles in entities',
'label' => 'Rôle dans les entités',
'ldap_type' => 'ascii',
'html_type' => 'supannRoleEntite',
'multiple' => 1,
@ -983,7 +1014,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'supannRoleGenerique' => array (
'label' => 'Roles in entities : List of roles',
'label' => 'Rôle dans les entités : liste de rôles',
'ldap_type' => 'ascii',
'html_type' => 'supannRoleGenerique',
'multiple' => 1,
@ -1000,7 +1031,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'supannTypeEntiteAffectation' => array (
'label' => "Roles in entities : List of entities's type",
'label' => 'Rôle dans les entités: liste des types d\'entité',
'ldap_type' => 'ascii',
'html_type' => 'supannTypeEntite',
'multiple' => 1,
@ -1017,7 +1048,7 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
/* ----------- start -----------*/
'description' => array (
'label' => 'Admin comment',
'label' => 'Description/Commentaire',
'ldap_type' => 'ascii',
'html_type' => 'textarea',
'multiple' => 1,
@ -1032,6 +1063,227 @@ $GLOBALS['LSobjects']['LSsupannPerson'] = array (
),
/* ----------- end -----------*/
/* ----------- start -----------*/
'supannEtuInscription' => array (
'label' => 'Inscriptions administratives et pédagogiques',
'ldap_type' => 'ascii',
'html_type' => 'supannEtuInscription',
'multiple' => 1,
'rights' => array(
'admin' => 'w'
),
'view' => 1,
'form' => array (
'modify' => 1,
'create' => 1
)
),
/* ----------- end -----------*/
/* ----------- start -----------*/
'supannEtuAnneeInscription' => array (
'label' => 'Année d\'inscription',
'ldap_type' => 'ascii',
'html_type' => 'text',
'check_data' => array (
'integer' => array(
'msg' => "Entrez une année."
),
),
'multiple' => 1,
'rights' => array(
'admin' => 'w'
),
'view' => 1,
'form' => array (
'modify' => 1,
'create' => 1
)
),
/* ----------- end -----------*/
/* ----------- start -----------*/
'supannEtuCursusAnnee' => array (
'label' => 'Cursus et année',
'help_info' => 'Syntaxe sur deux caractères “Xn” X est choisi parmi les valeurs L, M, D, X et n représente l\'année
en cours dans le diplôme. Si l\'année n\'est pas connue n peut être omis.',
'ldap_type' => 'ascii',
'html_type' => 'text',
'check_data' => array (
'regex' => array(
'msg' => "Entrez un code Xn.",
'params' => array(
'regex' => '^[LMDX][0-9]$',
),
),
),
'multiple' => 1,
'rights' => array(
'admin' => 'w'
),
'view' => 1,
'form' => array (
'modify' => 1,
'create' => 1
)
),
/* ----------- end -----------*/
/* ----------- start -----------*/
'supannEtuDiplome' => array (
'label' => 'Diplôme',
'help_info' => 'Code étiqueté ex.: {SIZE}0833434',
'ldap_type' => 'ascii',
'html_type' => 'text',
'check_data' => array (
'regex' => array(
'msg' => "Entrez un code étiqueté.",
'params' => array(
'regex' => '^{[^}]+}.+$',
),
),
),
'multiple' => 1,
'rights' => array(
'admin' => 'w'
),
'view' => 1,
'form' => array (
'modify' => 1,
'create' => 1
)
),
/* ----------- end -----------*/
/* ----------- start -----------*/
'supannEtuElementPedagogique' => array (
'label' => 'Élément pédagogique',
'ldap_type' => 'ascii',
'html_type' => 'text',
'multiple' => 1,
'rights' => array(
'admin' => 'w'
),
'view' => 1,
'form' => array (
'modify' => 1,
'create' => 1
)
),
/* ----------- end -----------*/
/* ----------- start -----------*/
'supannEtuEtape' => array (
'label' => 'Étape',
'ldap_type' => 'ascii',
'html_type' => 'text',
'multiple' => 1,
'rights' => array(
'admin' => 'w'
),
'view' => 1,
'form' => array (
'modify' => 1,
'create' => 1
)
),
/* ----------- end -----------*/
/* ----------- start -----------*/
'supannEtuID' => array (
'label' => 'Identifiant de scolarité',
'ldap_type' => 'ascii',
'html_type' => 'text',
'multiple' => 1,
'rights' => array(
'admin' => 'w'
),
'view' => 1,
'form' => array (
'modify' => 1,
'create' => 1
)
),
/* ----------- end -----------*/
/* ----------- start -----------*/
'supannEtuRegimeInscription' => array (
'label' => 'Type d\'enseignement SISE',
'help_info' => 'Code SISE',
'ldap_type' => 'ascii',
'html_type' => 'text',
'check_data' => array (
'regex' => array(
'msg' => "Entrez un code étiqueté.",
'params' => array(
'regex' => '^{[^}]+}.+$',
),
),
),
'multiple' => 1,
'rights' => array(
'admin' => 'w'
),
'view' => 1,
'form' => array (
'modify' => 1,
'create' => 1
)
),
/* ----------- end -----------*/
/* ----------- start -----------*/
'supannEtuSecteurDisciplinaire' => array (
'label' => 'Secteur disciplénaire de diplôme ou d\'enseignement',
'help_info' => 'Code SISE',
'ldap_type' => 'ascii',
'html_type' => 'text',
'check_data' => array (
'regex' => array(
'msg' => "Entrez un code étiqueté.",
'params' => array(
'regex' => '^{[^}]+}.+$',
),
),
),
'multiple' => 1,
'rights' => array(
'admin' => 'w'
),
'view' => 1,
'form' => array (
'modify' => 1,
'create' => 1
)
),
/* ----------- end -----------*/
/* ----------- start -----------*/
'supannEtuTypeDiplome' => array (
'label' => 'Type ou catégorie du diplôme préparé',
'help_info' => 'Code SISE',
'ldap_type' => 'ascii',
'html_type' => 'text',
'check_data' => array (
'regex' => array(
'msg' => "Entrez un code étiqueté.",
'params' => array(
'regex' => '^{[^}]+}.+$',
),
),
),
'multiple' => 1,
'rights' => array(
'admin' => 'w'
),
'view' => 1,
'form' => array (
'modify' => 1,
'create' => 1
)
),
/* ----------- end -----------*/
) // Fin args
);
?>