[Registration] add CNIL and usage conditions test blocks
Those text blocks are configurable under /admin/settings/identity_options.
This commit is contained in:
parent
9c08234e13
commit
c40f57fbd7
|
@ -1,8 +1,19 @@
|
|||
from authentic.schemas.schema import *
|
||||
import authentic.admin.configuration as configuration
|
||||
|
||||
configuration.identity_configuration.add_schema(
|
||||
String('xmlrpc_registration_url',
|
||||
presentation_args = { 'cols': 80, 'rows': 25 }
|
||||
for schema in (String('xmlrpc_registration_url',
|
||||
N_('XMLRPC Neogia registration URL'),
|
||||
default = '',
|
||||
presentation_hint = { 'args': { 'size': 100 }}))
|
||||
presentation_hint = { 'args': { 'size': 100 }}),
|
||||
String('cnil_text',
|
||||
N_("Texte d'information CNIL"),
|
||||
default = '',
|
||||
presentation_hint = { 'widget': 'Text',
|
||||
'args': presentation_args }),
|
||||
String('condition_utilisation',
|
||||
N_("Condition d'utilisation"),
|
||||
default = '',
|
||||
presentation_hint = { 'widget': 'Text',
|
||||
'args': presentation_args })):
|
||||
configuration.identity_configuration.add_schema(schema)
|
||||
|
|
|
@ -138,14 +138,18 @@ RecaptchaOptions = { "theme" : "white", "lang" : "fr" };
|
|||
value="manual_challenge">
|
||||
</noscript>''' % { 'pkey' : re_captcha_public_key }
|
||||
|
||||
identities_configuration = configuration.get_configuration('identities')
|
||||
form.add(HtmlWidget, htmltext('<p id="conditions">%s</p>' %
|
||||
identities_configuration.get('condition_utilisation')))
|
||||
form.add(CheckboxWidget, 'validation',
|
||||
title=htmltext(N_('''J'accepte les <a id="conditions" \
|
||||
href="conditions">conditions d'utilisation</a>''')),
|
||||
title=htmltext(N_('''J'accepte les conditions d'utilisation''')),
|
||||
required = True)
|
||||
|
||||
if 0:
|
||||
form.add(HtmlWidget, htmltext(re_captcha))
|
||||
form.add_captcha()
|
||||
form.add(HtmlWidget, htmltext('<p id="cnil">%s</p>' %
|
||||
identities_configuration.get('cnil_text')))
|
||||
|
||||
form.add_submit("submit", _("Submit"))
|
||||
form.add_submit("cancel", _("Cancel"))
|
||||
|
|
91
po/fr.po
91
po/fr.po
|
@ -4,7 +4,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: IFEF Authentic Module 0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2010-06-18 13:40+0000\n"
|
||||
"POT-Creation-Date: 2010-07-28 13:34+0200\n"
|
||||
"PO-Revision-Date: 2010-04-26 12:24+0200\n"
|
||||
"Last-Translator: Benjamin Dauvergne <bdauvergne@entrouvert.com> \n"
|
||||
"Language-Team: French\n"
|
||||
|
@ -21,6 +21,14 @@ msgstr "Appel d'enregistrement à Neogia"
|
|||
msgid "XMLRPC Neogia registration URL"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/configuration.py:10
|
||||
msgid "Texte d'information CNIL"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/configuration.py:15
|
||||
msgid "Condition d'utilisation"
|
||||
msgstr "Conditions d'utilisation"
|
||||
|
||||
#: ../extra/modules/root.ptl:14
|
||||
msgid "Particulier-employeur"
|
||||
msgstr ""
|
||||
|
@ -115,21 +123,19 @@ msgstr "Vous êtes"
|
|||
msgid "Vous devez choisir une classification"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/root.ptl:142
|
||||
msgid ""
|
||||
"J'accepte les <a id=\"conditions\" href=\"conditions\">conditions "
|
||||
"d'utilisation</a>"
|
||||
#: ../extra/modules/root.ptl:145
|
||||
msgid "J'accepte les conditions d'utilisation"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/root.ptl:150
|
||||
#: ../extra/modules/root.ptl:154
|
||||
msgid "Submit"
|
||||
msgstr "Valider"
|
||||
|
||||
#: ../extra/modules/root.ptl:151
|
||||
#: ../extra/modules/root.ptl:155
|
||||
msgid "Cancel"
|
||||
msgstr "Annuler"
|
||||
|
||||
#: ../extra/modules/root.ptl:171 ../extra/modules/root.ptl:172
|
||||
#: ../extra/modules/root.ptl:175 ../extra/modules/root.ptl:176
|
||||
msgid "Registration"
|
||||
msgstr "Inscription"
|
||||
|
||||
|
@ -138,127 +144,126 @@ msgstr "Inscription"
|
|||
msgid "Run job %s"
|
||||
msgstr "Lancer le job %s"
|
||||
|
||||
#: ../extra/modules/afterjobs.ptl:49
|
||||
#: ../extra/modules/afterjobs.ptl:57
|
||||
msgid "Id"
|
||||
msgstr "Identifiant"
|
||||
|
||||
#: ../extra/modules/afterjobs.ptl:49
|
||||
msgid "Email"
|
||||
msgstr "Courriel"
|
||||
|
||||
#: ../extra/modules/afterjobs.ptl:49
|
||||
msgid "Classification"
|
||||
#: ../extra/modules/afterjobs.ptl:57
|
||||
msgid "Action"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/afterjobs.ptl:49
|
||||
#: ../extra/modules/afterjobs.ptl:57
|
||||
msgid "Error"
|
||||
msgstr "Erreur"
|
||||
|
||||
#: ../extra/modules/store.py:6
|
||||
#: ../extra/modules/store.py:8
|
||||
msgid "IFEF Ldap Directory"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:8
|
||||
#: ../extra/modules/store.py:10
|
||||
msgid "Nom"
|
||||
msgstr "Nom"
|
||||
|
||||
#: ../extra/modules/store.py:9
|
||||
#: ../extra/modules/store.py:11
|
||||
msgid "Prenom"
|
||||
msgstr "Prénom"
|
||||
|
||||
#: ../extra/modules/store.py:10
|
||||
#: ../extra/modules/store.py:12
|
||||
msgid "Adresse"
|
||||
msgstr "Adresse"
|
||||
|
||||
#: ../extra/modules/store.py:11
|
||||
#: ../extra/modules/store.py:13
|
||||
msgid "Code postal"
|
||||
msgstr "Code postal"
|
||||
|
||||
#: ../extra/modules/store.py:12 ../extra/modules/store.py:36
|
||||
#: ../extra/modules/store.py:14 ../extra/modules/store.py:38
|
||||
msgid "Ce champ doit contenir cinq chiffres"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:13
|
||||
#: ../extra/modules/store.py:15
|
||||
msgid "Ville pro"
|
||||
msgstr "Ville"
|
||||
|
||||
#: ../extra/modules/store.py:14
|
||||
#: ../extra/modules/store.py:16
|
||||
msgid "Adresse email"
|
||||
msgstr "Courriel"
|
||||
|
||||
#: ../extra/modules/store.py:15
|
||||
#: ../extra/modules/store.py:17
|
||||
msgid "Personal Title"
|
||||
msgstr "Titre"
|
||||
|
||||
#: ../extra/modules/store.py:19
|
||||
#: ../extra/modules/store.py:21
|
||||
msgid "Monsieur"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:20
|
||||
#: ../extra/modules/store.py:22
|
||||
msgid "Madame"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:21
|
||||
#: ../extra/modules/store.py:23
|
||||
msgid "Mademoiselle"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:22
|
||||
#: ../extra/modules/store.py:24
|
||||
msgid "Telephone mobile"
|
||||
msgstr "Téléphone mobile"
|
||||
|
||||
#: ../extra/modules/store.py:23 ../extra/modules/store.py:31
|
||||
#: ../extra/modules/store.py:25 ../extra/modules/store.py:33
|
||||
msgid "Ce champ ne doit contenir que des chiffres, des points ou des espaces."
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:26
|
||||
#: ../extra/modules/store.py:28
|
||||
msgid "Date de naissance"
|
||||
msgstr ""
|
||||
|
||||
#. Field('placeOfBirth', N_('Lieu de naissance')),
|
||||
#: ../extra/modules/store.py:28
|
||||
#: ../extra/modules/store.py:30
|
||||
msgid "Region pro"
|
||||
msgstr "Région professionelle"
|
||||
|
||||
#: ../extra/modules/store.py:29
|
||||
#: ../extra/modules/store.py:31
|
||||
msgid "Departement pro"
|
||||
msgstr "Département professionel"
|
||||
|
||||
#: ../extra/modules/store.py:30
|
||||
#: ../extra/modules/store.py:32
|
||||
msgid "Telephone pro"
|
||||
msgstr "Téléphone professionel"
|
||||
|
||||
#: ../extra/modules/store.py:34
|
||||
#: ../extra/modules/store.py:36
|
||||
msgid "Adresse perso"
|
||||
msgstr "Adresse personnelle"
|
||||
|
||||
#: ../extra/modules/store.py:35
|
||||
#: ../extra/modules/store.py:37
|
||||
msgid "Code postal perso"
|
||||
msgstr "Code postal personnel"
|
||||
|
||||
#: ../extra/modules/store.py:37
|
||||
#: ../extra/modules/store.py:39
|
||||
msgid "Ville perso"
|
||||
msgstr "Ville personnelle"
|
||||
|
||||
#: ../extra/modules/store.py:38
|
||||
#: ../extra/modules/store.py:40
|
||||
msgid "Region perso"
|
||||
msgstr "Région personnelle"
|
||||
|
||||
#: ../extra/modules/store.py:39
|
||||
#: ../extra/modules/store.py:41
|
||||
msgid "Departement perso"
|
||||
msgstr "Département personnel"
|
||||
|
||||
#: ../extra/modules/store.py:41
|
||||
#: ../extra/modules/store.py:43
|
||||
msgid "Telephone perso"
|
||||
msgstr "Téléphone personnel"
|
||||
|
||||
#: ../extra/modules/store.py:42
|
||||
#: ../extra/modules/store.py:44
|
||||
msgid "Classe d'utilisateur"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:46
|
||||
#: ../extra/modules/store.py:48
|
||||
msgid "Numero de pass assistante maternelle"
|
||||
msgstr "Numéro de pass assistante maternelle"
|
||||
|
||||
#: ../extra/modules/store.py:47
|
||||
#: ../extra/modules/store.py:49
|
||||
msgid "Numero de pass SPE"
|
||||
msgstr "Numéro de pass SPE"
|
||||
|
||||
#~ msgid "Email"
|
||||
#~ msgstr "Courriel"
|
||||
|
|
88
po/ifef.pot
88
po/ifef.pot
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2010-06-23 16:03+0200\n"
|
||||
"POT-Creation-Date: 2010-07-28 13:34+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
@ -24,6 +24,14 @@ msgstr ""
|
|||
msgid "XMLRPC Neogia registration URL"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/configuration.py:10
|
||||
msgid "Texte d'information CNIL"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/configuration.py:15
|
||||
msgid "Condition d'utilisation"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/root.ptl:14
|
||||
msgid "Particulier-employeur"
|
||||
msgstr ""
|
||||
|
@ -116,21 +124,19 @@ msgstr ""
|
|||
msgid "Vous devez choisir une classification"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/root.ptl:142
|
||||
msgid ""
|
||||
"J'accepte les <a id=\"conditions\" href=\"conditions\">conditions "
|
||||
"d'utilisation</a>"
|
||||
#: ../extra/modules/root.ptl:145
|
||||
msgid "J'accepte les conditions d'utilisation"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/root.ptl:150
|
||||
#: ../extra/modules/root.ptl:154
|
||||
msgid "Submit"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/root.ptl:151
|
||||
#: ../extra/modules/root.ptl:155
|
||||
msgid "Cancel"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/root.ptl:171 ../extra/modules/root.ptl:172
|
||||
#: ../extra/modules/root.ptl:175 ../extra/modules/root.ptl:176
|
||||
msgid "Registration"
|
||||
msgstr ""
|
||||
|
||||
|
@ -139,127 +145,123 @@ msgstr ""
|
|||
msgid "Run job %s"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/afterjobs.ptl:49
|
||||
#: ../extra/modules/afterjobs.ptl:57
|
||||
msgid "Id"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/afterjobs.ptl:49
|
||||
msgid "Email"
|
||||
#: ../extra/modules/afterjobs.ptl:57
|
||||
msgid "Action"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/afterjobs.ptl:49
|
||||
msgid "Classification"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/afterjobs.ptl:49
|
||||
#: ../extra/modules/afterjobs.ptl:57
|
||||
msgid "Error"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:6
|
||||
#: ../extra/modules/store.py:8
|
||||
msgid "IFEF Ldap Directory"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:8
|
||||
#: ../extra/modules/store.py:10
|
||||
msgid "Nom"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:9
|
||||
#: ../extra/modules/store.py:11
|
||||
msgid "Prenom"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:10
|
||||
#: ../extra/modules/store.py:12
|
||||
msgid "Adresse"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:11
|
||||
#: ../extra/modules/store.py:13
|
||||
msgid "Code postal"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:12 ../extra/modules/store.py:36
|
||||
#: ../extra/modules/store.py:14 ../extra/modules/store.py:38
|
||||
msgid "Ce champ doit contenir cinq chiffres"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:13
|
||||
#: ../extra/modules/store.py:15
|
||||
msgid "Ville pro"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:14
|
||||
#: ../extra/modules/store.py:16
|
||||
msgid "Adresse email"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:15
|
||||
#: ../extra/modules/store.py:17
|
||||
msgid "Personal Title"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:19
|
||||
#: ../extra/modules/store.py:21
|
||||
msgid "Monsieur"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:20
|
||||
#: ../extra/modules/store.py:22
|
||||
msgid "Madame"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:21
|
||||
#: ../extra/modules/store.py:23
|
||||
msgid "Mademoiselle"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:22
|
||||
#: ../extra/modules/store.py:24
|
||||
msgid "Telephone mobile"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:23 ../extra/modules/store.py:31
|
||||
#: ../extra/modules/store.py:25 ../extra/modules/store.py:33
|
||||
msgid "Ce champ ne doit contenir que des chiffres, des points ou des espaces."
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:26
|
||||
#: ../extra/modules/store.py:28
|
||||
msgid "Date de naissance"
|
||||
msgstr ""
|
||||
|
||||
#. Field('placeOfBirth', N_('Lieu de naissance')),
|
||||
#: ../extra/modules/store.py:28
|
||||
#: ../extra/modules/store.py:30
|
||||
msgid "Region pro"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:29
|
||||
#: ../extra/modules/store.py:31
|
||||
msgid "Departement pro"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:30
|
||||
#: ../extra/modules/store.py:32
|
||||
msgid "Telephone pro"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:34
|
||||
#: ../extra/modules/store.py:36
|
||||
msgid "Adresse perso"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:35
|
||||
#: ../extra/modules/store.py:37
|
||||
msgid "Code postal perso"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:37
|
||||
#: ../extra/modules/store.py:39
|
||||
msgid "Ville perso"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:38
|
||||
#: ../extra/modules/store.py:40
|
||||
msgid "Region perso"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:39
|
||||
#: ../extra/modules/store.py:41
|
||||
msgid "Departement perso"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:41
|
||||
#: ../extra/modules/store.py:43
|
||||
msgid "Telephone perso"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:42
|
||||
#: ../extra/modules/store.py:44
|
||||
msgid "Classe d'utilisateur"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:46
|
||||
#: ../extra/modules/store.py:48
|
||||
msgid "Numero de pass assistante maternelle"
|
||||
msgstr ""
|
||||
|
||||
#: ../extra/modules/store.py:47
|
||||
#: ../extra/modules/store.py:49
|
||||
msgid "Numero de pass SPE"
|
||||
msgstr ""
|
||||
|
|
Reference in New Issue