explanations about roles now that they are mandatory befoire creating a form

This commit is contained in:
Frédéric Péters 2005-05-23 11:33:43 +00:00
parent 2597b43cf4
commit 6e6ac2594d
7 changed files with 280 additions and 134 deletions

View File

@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: wcs 0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2005-05-21 19:57+0200\n"
"POT-Creation-Date: 2005-05-23 13:30+0200\n"
"PO-Revision-Date: 2005-04-29 12:27+0200\n"
"Last-Translator: Frederic Peters <fpeters@entrouvert.com>\n"
"Language-Team: french\n"
@ -81,7 +81,7 @@ msgstr "Vérifiez le contenu du formulaire puis cliquer sur 'Suivant'"
msgid "Your case will be handled by:"
msgstr "Votre dossier sera pris en charge par :"
#: ../wcs/forms/root.ptl:226 ../wcs/forms/root.ptl:316 ../wcs/admin/menu.ptl:5
#: ../wcs/forms/root.ptl:226 ../wcs/forms/root.ptl:316 ../wcs/admin/menu.ptl:6
msgid "Forms"
msgstr "Formulaires"
@ -176,7 +176,7 @@ msgstr "Identifiant du formulaire"
msgid "Form Name"
msgstr "Nom du formulaire"
#: ../wcs/admin/forms.ptl:78 ../wcs/admin/forms.ptl:304
#: ../wcs/admin/forms.ptl:78 ../wcs/admin/forms.ptl:308
msgid "Fields"
msgstr "Champs"
@ -192,7 +192,7 @@ msgstr "Destinataire"
msgid "Recipient Email"
msgstr "Adresse email du destinataire"
#: ../wcs/admin/forms.ptl:85 ../wcs/admin/menu.ptl:7 ../wcs/admin/users.ptl:39
#: ../wcs/admin/forms.ptl:85 ../wcs/admin/menu.ptl:8 ../wcs/admin/users.ptl:39
#: ../wcs/admin/users.ptl:56
msgid "Roles"
msgstr "Rôles"
@ -238,9 +238,9 @@ msgstr "Nombre de lignes"
msgid "optional"
msgstr "optionnel"
#: ../wcs/admin/forms.ptl:192 ../wcs/admin/forms.ptl:303
#: ../wcs/admin/roles.ptl:107 ../wcs/admin/settings.ptl:38
#: ../wcs/admin/users.ptl:181 ../wcs/admin/categories.ptl:103
#: ../wcs/admin/forms.ptl:192 ../wcs/admin/forms.ptl:307
#: ../wcs/admin/roles.ptl:115 ../wcs/admin/settings.ptl:38
#: ../wcs/admin/users.ptl:181 ../wcs/admin/categories.ptl:108
msgid "Edit"
msgstr "Modifier"
@ -264,50 +264,53 @@ msgstr "Supprimer le formulaire"
msgid "Deleting Form:"
msgstr "Suppression du formulaire :"
#: ../wcs/admin/forms.ptl:293 ../wcs/admin/roles.ptl:100
#: ../wcs/admin/settings.ptl:27 ../wcs/admin/users.ptl:170
#: ../wcs/admin/categories.ptl:96
msgid "New"
msgstr "Nouveau"
#: ../wcs/admin/forms.ptl:305 ../wcs/admin/roles.ptl:108
#: ../wcs/admin/settings.ptl:39 ../wcs/admin/users.ptl:182
#: ../wcs/admin/categories.ptl:104
msgid "Delete"
msgstr "Supprimer"
#: ../wcs/admin/forms.ptl:306
msgid "Listing"
msgstr "Listing"
#: ../wcs/admin/forms.ptl:322 ../wcs/admin/forms.ptl:323
#: ../wcs/admin/forms.ptl:295 ../wcs/admin/forms.ptl:328
#: ../wcs/admin/forms.ptl:329
msgid "New Form"
msgstr "Nouveau formulaire"
#: ../wcs/admin/menu.ptl:6
#: ../wcs/admin/forms.ptl:297 ../wcs/admin/forms.ptl:316
msgid "You first have to define roles."
msgstr "Vous devez d'abord définir des rôles"
#: ../wcs/admin/forms.ptl:309 ../wcs/admin/roles.ptl:116
#: ../wcs/admin/settings.ptl:39 ../wcs/admin/users.ptl:182
#: ../wcs/admin/categories.ptl:109
msgid "Delete"
msgstr "Supprimer"
#: ../wcs/admin/forms.ptl:310
msgid "Listing"
msgstr "Listing"
#: ../wcs/admin/menu.ptl:7
msgid "Users"
msgstr "Utilisateurs"
#: ../wcs/admin/menu.ptl:8
#: ../wcs/admin/menu.ptl:9
msgid "Categories"
msgstr "Catégories"
#: ../wcs/admin/menu.ptl:9
#: ../wcs/admin/menu.ptl:10
msgid "Settings"
msgstr "Paramètres"
#: ../wcs/admin/menu.ptl:10
#: ../wcs/admin/menu.ptl:11
msgid "WCS Form Server"
msgstr "Serveur de formulaires"
#: ../wcs/admin/menu.ptl:38
#: ../wcs/admin/menu.ptl:44
msgid "logout"
msgstr "déconnexion"
#: ../wcs/admin/menu.ptl:61
#: ../wcs/admin/menu.ptl:67
msgid "WCS Administration"
msgstr "Administration de WCS"
#: ../wcs/admin/menu.ptl:73 ../wcs/admin/menu.ptl:75
msgid "Error"
msgstr "Erreur"
#: ../wcs/admin/roles.ptl:24 ../wcs/admin/roles.ptl:36
msgid "Role Id"
msgstr "Identifiant du rôle"
@ -336,7 +339,20 @@ msgstr "Supprimer le rôle"
msgid "Deleting Role:"
msgstr "Suppression du rôle :"
#: ../wcs/admin/roles.ptl:120 ../wcs/admin/roles.ptl:121
#: ../wcs/admin/roles.ptl:99
msgid "Roles are useful for two different things:"
msgstr "Les rôles sont utilisés pour deux aspects différents :"
#: ../wcs/admin/roles.ptl:101
msgid "To know who will receive and manage a given type of form."
msgstr "Pour déterminer qui recevra et gérera un type donné de formulaire."
#: ../wcs/admin/roles.ptl:102
msgid "To know who can fill a given type of form."
msgstr "Pour déterminer qui pourra compléter un type donné de formulaire."
#: ../wcs/admin/roles.ptl:108 ../wcs/admin/roles.ptl:128
#: ../wcs/admin/roles.ptl:129
msgid "New Role"
msgstr "Nouveau rôle"
@ -345,6 +361,10 @@ msgstr "Nouveau rôle"
msgid "Identity Providers"
msgstr "Fournisseurs d'identités"
#: ../wcs/admin/settings.ptl:27 ../wcs/admin/users.ptl:170
msgid "New"
msgstr "Nouveau"
#: ../wcs/admin/settings.ptl:37
msgid "View"
msgstr "Voir"
@ -545,7 +565,13 @@ msgstr "Supprimer la catégorie"
msgid "Deleting Category:"
msgstr "Suppression de la catégorie :"
#: ../wcs/admin/categories.ptl:116 ../wcs/admin/categories.ptl:117
#: ../wcs/admin/categories.ptl:96
msgid "Categories are used to sort the different forms."
msgstr ""
"Les catégories sont utilisées pour y ranger les différents formulaires."
#: ../wcs/admin/categories.ptl:101 ../wcs/admin/categories.ptl:121
#: ../wcs/admin/categories.ptl:122
msgid "New Category"
msgstr "Nouvelle catégorie"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2005-05-20 16:49+0200\n"
"POT-Creation-Date: 2005-05-23 13:30+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,7 +24,7 @@ msgstr ""
msgid "There were errors processing your form. See below for details."
msgstr ""
#: ../wcs/formdef.py:77
#: ../wcs/formdef.py:86
#, python-format
msgid ""
"Hi,\n"
@ -33,110 +33,112 @@ msgid ""
"link: %(url)s\n"
msgstr ""
#: ../wcs/formdef.py:82
#: ../wcs/formdef.py:91
msgid "A new form has been submitted"
msgstr ""
#: ../wcs/forms/root.ptl:48 ../wcs/forms/root.ptl:75 ../wcs/forms/root.ptl:178
#: ../wcs/forms/root.ptl:52 ../wcs/forms/root.ptl:88 ../wcs/forms/root.ptl:191
#, python-format
msgid "The form has been recorded on %s with the number %s."
msgstr ""
#: ../wcs/forms/root.ptl:52
#: ../wcs/forms/root.ptl:61
msgid "Your case is handled by:"
msgstr ""
#: ../wcs/forms/root.ptl:63 ../wcs/forms/root.ptl:83 ../wcs/forms/root.ptl:195
#: ../wcs/forms/root.ptl:72 ../wcs/forms/root.ptl:96 ../wcs/forms/root.ptl:213
msgid "Back Home"
msgstr ""
#: ../wcs/forms/root.ptl:116
#: ../wcs/forms/root.ptl:129
msgid "Filling"
msgstr ""
#: ../wcs/forms/root.ptl:116
#: ../wcs/forms/root.ptl:129
msgid "Validating"
msgstr ""
#: ../wcs/forms/root.ptl:116
#: ../wcs/forms/root.ptl:129
msgid "Receipt"
msgstr ""
#: ../wcs/forms/root.ptl:126 ../wcs/forms/root.ptl:137
#: ../wcs/forms/root.ptl:167
#: ../wcs/forms/root.ptl:139 ../wcs/forms/root.ptl:150
#: ../wcs/forms/root.ptl:180
msgid "Next"
msgstr ""
#: ../wcs/forms/root.ptl:136 ../wcs/forms/root.ptl:166
#: ../wcs/forms/root.ptl:149 ../wcs/forms/root.ptl:179
msgid "Previous"
msgstr ""
#: ../wcs/forms/root.ptl:163
#: ../wcs/forms/root.ptl:176
msgid "Check values then click next."
msgstr ""
#: ../wcs/forms/root.ptl:182
#: ../wcs/forms/root.ptl:200
msgid "Your case will be handled by:"
msgstr ""
#: ../wcs/forms/root.ptl:208 ../wcs/forms/root.ptl:298 ../wcs/admin/menu.ptl:5
#: ../wcs/forms/root.ptl:226 ../wcs/forms/root.ptl:316 ../wcs/admin/menu.ptl:6
msgid "Forms"
msgstr ""
#: ../wcs/forms/root.ptl:215
#: ../wcs/forms/root.ptl:233
#, python-format
msgid "You are logged in as %s."
msgstr ""
#: ../wcs/forms/root.ptl:248
#: ../wcs/forms/root.ptl:266
msgid "Misc"
msgstr ""
#: ../wcs/forms/root.ptl:266
#: ../wcs/forms/root.ptl:284
msgid "Your Current Forms"
msgstr ""
#: ../wcs/forms/root.ptl:276
#: ../wcs/forms/root.ptl:294
msgid "Enter Identification Token"
msgstr ""
#: ../wcs/forms/root.ptl:277
#: ../wcs/forms/root.ptl:295
msgid "Logout"
msgstr ""
#: ../wcs/forms/root.ptl:280
#: ../wcs/forms/root.ptl:298
msgid "Login"
msgstr ""
#: ../wcs/forms/root.ptl:289 ../wcs/admin/users.ptl:119
#: ../wcs/admin/users.ptl:120 ../wcs/admin/users.ptl:128
#: ../wcs/admin/users.ptl:150 ../wcs/admin/users.ptl:172
#: ../wcs/forms/root.ptl:307 ../wcs/admin/users.ptl:127
#: ../wcs/admin/users.ptl:128 ../wcs/admin/users.ptl:136
#: ../wcs/admin/users.ptl:158 ../wcs/admin/users.ptl:180
msgid "Identification Token"
msgstr ""
#: ../wcs/forms/root.ptl:291 ../wcs/admin/forms.ptl:94
#: ../wcs/admin/forms.ptl:127 ../wcs/admin/forms.ptl:255
#: ../wcs/admin/roles.ptl:29 ../wcs/admin/roles.ptl:39
#: ../wcs/admin/roles.ptl:74 ../wcs/admin/settings.ptl:142
#: ../wcs/forms/root.ptl:309 ../wcs/admin/forms.ptl:94
#: ../wcs/admin/forms.ptl:132 ../wcs/admin/forms.ptl:260
#: ../wcs/admin/roles.ptl:31 ../wcs/admin/roles.ptl:43
#: ../wcs/admin/roles.ptl:78 ../wcs/admin/settings.ptl:142
#: ../wcs/admin/settings.ptl:201 ../wcs/admin/settings.ptl:252
#: ../wcs/admin/users.ptl:45 ../wcs/admin/users.ptl:61
#: ../wcs/admin/users.ptl:97 ../wcs/admin/users.ptl:112
#: ../wcs/admin/users.ptl:105 ../wcs/admin/users.ptl:120
#: ../wcs/admin/categories.ptl:29 ../wcs/admin/categories.ptl:39
#: ../wcs/admin/categories.ptl:74
msgid "Cancel"
msgstr ""
#: ../wcs/forms/root.ptl:292 ../wcs/admin/forms.ptl:93
#: ../wcs/admin/forms.ptl:126 ../wcs/admin/forms.ptl:254
#: ../wcs/admin/roles.ptl:28 ../wcs/admin/roles.ptl:38
#: ../wcs/admin/roles.ptl:73 ../wcs/admin/settings.ptl:53
#: ../wcs/forms/root.ptl:310 ../wcs/admin/forms.ptl:93
#: ../wcs/admin/forms.ptl:131 ../wcs/admin/forms.ptl:259
#: ../wcs/admin/roles.ptl:30 ../wcs/admin/roles.ptl:42
#: ../wcs/admin/roles.ptl:77 ../wcs/admin/settings.ptl:53
#: ../wcs/admin/settings.ptl:125 ../wcs/admin/settings.ptl:141
#: ../wcs/admin/settings.ptl:200 ../wcs/admin/settings.ptl:251
#: ../wcs/admin/users.ptl:44 ../wcs/admin/users.ptl:62
#: ../wcs/admin/users.ptl:98 ../wcs/admin/categories.ptl:28
#: ../wcs/admin/users.ptl:106 ../wcs/admin/categories.ptl:28
#: ../wcs/admin/categories.ptl:38 ../wcs/admin/categories.ptl:73
msgid "Submit"
msgstr ""
#: ../wcs/forms/root.ptl:300
#: ../wcs/forms/root.ptl:318
msgid "Bla bla bla"
msgstr ""
@ -172,7 +174,7 @@ msgstr ""
msgid "Form Name"
msgstr ""
#: ../wcs/admin/forms.ptl:78 ../wcs/admin/forms.ptl:299
#: ../wcs/admin/forms.ptl:78 ../wcs/admin/forms.ptl:308
msgid "Fields"
msgstr ""
@ -188,7 +190,7 @@ msgstr ""
msgid "Recipient Email"
msgstr ""
#: ../wcs/admin/forms.ptl:85 ../wcs/admin/menu.ptl:7 ../wcs/admin/users.ptl:39
#: ../wcs/admin/forms.ptl:85 ../wcs/admin/menu.ptl:8 ../wcs/admin/users.ptl:39
#: ../wcs/admin/users.ptl:56
msgid "Roles"
msgstr ""
@ -222,105 +224,133 @@ msgstr ""
msgid "Items"
msgstr ""
#: ../wcs/admin/forms.ptl:185
#: ../wcs/admin/forms.ptl:126
msgid "Line length"
msgstr ""
#: ../wcs/admin/forms.ptl:128
msgid "Number of rows"
msgstr ""
#: ../wcs/admin/forms.ptl:190
msgid "optional"
msgstr ""
#: ../wcs/admin/forms.ptl:187 ../wcs/admin/forms.ptl:298
#: ../wcs/admin/roles.ptl:103 ../wcs/admin/settings.ptl:38
#: ../wcs/admin/users.ptl:173 ../wcs/admin/categories.ptl:103
#: ../wcs/admin/forms.ptl:192 ../wcs/admin/forms.ptl:307
#: ../wcs/admin/roles.ptl:115 ../wcs/admin/settings.ptl:38
#: ../wcs/admin/users.ptl:181 ../wcs/admin/categories.ptl:108
msgid "Edit"
msgstr ""
#: ../wcs/admin/forms.ptl:197
#: ../wcs/admin/forms.ptl:202
msgid "Export to CSV format"
msgstr ""
#: ../wcs/admin/forms.ptl:241 ../wcs/admin/forms.ptl:242
#: ../wcs/admin/forms.ptl:246 ../wcs/admin/forms.ptl:247
msgid "Edit Form"
msgstr ""
#: ../wcs/admin/forms.ptl:253
#: ../wcs/admin/forms.ptl:258
msgid "You are about to irrevocably delete this form."
msgstr ""
#: ../wcs/admin/forms.ptl:259
#: ../wcs/admin/forms.ptl:264
msgid "Delete Form"
msgstr ""
#: ../wcs/admin/forms.ptl:260
#: ../wcs/admin/forms.ptl:265
msgid "Deleting Form:"
msgstr ""
#: ../wcs/admin/forms.ptl:288 ../wcs/admin/roles.ptl:96
#: ../wcs/admin/settings.ptl:27 ../wcs/admin/users.ptl:162
#: ../wcs/admin/categories.ptl:96
msgid "New"
msgstr ""
#: ../wcs/admin/forms.ptl:300 ../wcs/admin/roles.ptl:104
#: ../wcs/admin/settings.ptl:39 ../wcs/admin/users.ptl:174
#: ../wcs/admin/categories.ptl:104
msgid "Delete"
msgstr ""
#: ../wcs/admin/forms.ptl:301
msgid "Listing"
msgstr ""
#: ../wcs/admin/forms.ptl:317 ../wcs/admin/forms.ptl:318
#: ../wcs/admin/forms.ptl:295 ../wcs/admin/forms.ptl:328
#: ../wcs/admin/forms.ptl:329
msgid "New Form"
msgstr ""
#: ../wcs/admin/menu.ptl:6
#: ../wcs/admin/forms.ptl:297 ../wcs/admin/forms.ptl:316
msgid "You first have to define roles."
msgstr ""
#: ../wcs/admin/forms.ptl:309 ../wcs/admin/roles.ptl:116
#: ../wcs/admin/settings.ptl:39 ../wcs/admin/users.ptl:182
#: ../wcs/admin/categories.ptl:109
msgid "Delete"
msgstr ""
#: ../wcs/admin/forms.ptl:310
msgid "Listing"
msgstr ""
#: ../wcs/admin/menu.ptl:7
msgid "Users"
msgstr ""
#: ../wcs/admin/menu.ptl:8
#: ../wcs/admin/menu.ptl:9
msgid "Categories"
msgstr ""
#: ../wcs/admin/menu.ptl:9
#: ../wcs/admin/menu.ptl:10
msgid "Settings"
msgstr ""
#: ../wcs/admin/menu.ptl:10
#: ../wcs/admin/menu.ptl:11
msgid "WCS Form Server"
msgstr ""
#: ../wcs/admin/menu.ptl:38
#: ../wcs/admin/menu.ptl:44
msgid "logout"
msgstr ""
#: ../wcs/admin/menu.ptl:61
#: ../wcs/admin/menu.ptl:67
msgid "WCS Administration"
msgstr ""
#: ../wcs/admin/roles.ptl:24 ../wcs/admin/roles.ptl:34
#: ../wcs/admin/menu.ptl:73 ../wcs/admin/menu.ptl:75
msgid "Error"
msgstr ""
#: ../wcs/admin/roles.ptl:24 ../wcs/admin/roles.ptl:36
msgid "Role Id"
msgstr ""
#: ../wcs/admin/roles.ptl:26 ../wcs/admin/roles.ptl:36
#: ../wcs/admin/roles.ptl:26 ../wcs/admin/roles.ptl:38
msgid "Role Name"
msgstr ""
#: ../wcs/admin/roles.ptl:60 ../wcs/admin/roles.ptl:61
#: ../wcs/admin/roles.ptl:28 ../wcs/admin/roles.ptl:40
msgid "Role Details"
msgstr ""
#: ../wcs/admin/roles.ptl:64 ../wcs/admin/roles.ptl:65
msgid "Edit Role"
msgstr ""
#: ../wcs/admin/roles.ptl:72
#: ../wcs/admin/roles.ptl:76
msgid "You are about to irrevocably delete this role."
msgstr ""
#: ../wcs/admin/roles.ptl:78
#: ../wcs/admin/roles.ptl:82
msgid "Delete Role"
msgstr ""
#: ../wcs/admin/roles.ptl:79
#: ../wcs/admin/roles.ptl:83
msgid "Deleting Role:"
msgstr ""
#: ../wcs/admin/roles.ptl:116 ../wcs/admin/roles.ptl:117
#: ../wcs/admin/roles.ptl:99
msgid "Roles are useful for two different things:"
msgstr ""
#: ../wcs/admin/roles.ptl:101
msgid "To know who will receive and manage a given type of form."
msgstr ""
#: ../wcs/admin/roles.ptl:102
msgid "To know who can fill a given type of form."
msgstr ""
#: ../wcs/admin/roles.ptl:108 ../wcs/admin/roles.ptl:128
#: ../wcs/admin/roles.ptl:129
msgid "New Role"
msgstr ""
@ -329,6 +359,10 @@ msgstr ""
msgid "Identity Providers"
msgstr ""
#: ../wcs/admin/settings.ptl:27 ../wcs/admin/users.ptl:170
msgid "New"
msgstr ""
#: ../wcs/admin/settings.ptl:37
msgid "View"
msgstr ""
@ -339,7 +373,7 @@ msgid "Metadata"
msgstr ""
#: ../wcs/admin/settings.ptl:51 ../wcs/admin/settings.ptl:123
#: ../wcs/admin/settings.ptl:211
#: ../wcs/admin/settings.ptl:246
msgid "Public Key"
msgstr ""
@ -388,31 +422,52 @@ msgstr ""
msgid "Add and remove identity providers"
msgstr ""
#: ../wcs/admin/settings.ptl:204
#: ../wcs/admin/settings.ptl:186
msgid "Appearance"
msgstr ""
#: ../wcs/admin/settings.ptl:190 ../wcs/admin/settings.ptl:206
#: ../wcs/admin/settings.ptl:207
msgid "Theme"
msgstr ""
#: ../wcs/admin/settings.ptl:190
msgid "Configure Theme"
msgstr ""
#: ../wcs/admin/settings.ptl:197
msgid "CSS Filename"
msgstr ""
#: ../wcs/admin/settings.ptl:199
msgid "Leave empty for default theme"
msgstr ""
#: ../wcs/admin/settings.ptl:239
msgid "Provider ID"
msgstr ""
#: ../wcs/admin/settings.ptl:206
#: ../wcs/admin/settings.ptl:241
msgid "Base URL"
msgstr ""
#: ../wcs/admin/settings.ptl:208
#: ../wcs/admin/settings.ptl:243
msgid "Organization Name"
msgstr ""
#: ../wcs/admin/settings.ptl:210
#: ../wcs/admin/settings.ptl:245
msgid "Private Key"
msgstr ""
#: ../wcs/admin/settings.ptl:214
#: ../wcs/admin/settings.ptl:249
msgid "Identity Provider Introduction, Common Domain"
msgstr ""
#: ../wcs/admin/settings.ptl:215
#: ../wcs/admin/settings.ptl:250
msgid "Disabled if empty"
msgstr ""
#: ../wcs/admin/settings.ptl:218 ../wcs/admin/settings.ptl:219
#: ../wcs/admin/settings.ptl:256 ../wcs/admin/settings.ptl:257
msgid "Service Provider Configuration"
msgstr ""
@ -432,45 +487,45 @@ msgstr ""
msgid "Email"
msgstr ""
#: ../wcs/admin/users.ptl:84 ../wcs/admin/users.ptl:85
#: ../wcs/admin/users.ptl:92 ../wcs/admin/users.ptl:93
msgid "Edit User"
msgstr ""
#: ../wcs/admin/users.ptl:96
#: ../wcs/admin/users.ptl:104
msgid "You are about to irrevocably delete this user."
msgstr ""
#: ../wcs/admin/users.ptl:102
#: ../wcs/admin/users.ptl:110
msgid "Delete User"
msgstr ""
#: ../wcs/admin/users.ptl:103
#: ../wcs/admin/users.ptl:111
msgid "Deleting User:"
msgstr ""
#: ../wcs/admin/users.ptl:113
#: ../wcs/admin/users.ptl:121
msgid "Generate"
msgstr ""
#: ../wcs/admin/users.ptl:123
#: ../wcs/admin/users.ptl:131
#, python-format
msgid "Note that user has already been issued an identification token: %s"
msgstr ""
#: ../wcs/admin/users.ptl:134
#: ../wcs/admin/users.ptl:142
#, python-format
msgid "Identification Token for %s:"
msgstr ""
#: ../wcs/admin/users.ptl:138
#: ../wcs/admin/users.ptl:146
msgid "Done"
msgstr ""
#: ../wcs/admin/users.ptl:140
#: ../wcs/admin/users.ptl:148
msgid "Send by email"
msgstr ""
#: ../wcs/admin/users.ptl:145
#: ../wcs/admin/users.ptl:153
#, python-format
msgid ""
"You have been given an identification token.\n"
@ -480,7 +535,7 @@ msgid ""
"Your token is %s"
msgstr ""
#: ../wcs/admin/users.ptl:186 ../wcs/admin/users.ptl:187
#: ../wcs/admin/users.ptl:194 ../wcs/admin/users.ptl:195
msgid "New User"
msgstr ""
@ -508,6 +563,11 @@ msgstr ""
msgid "Deleting Category:"
msgstr ""
#: ../wcs/admin/categories.ptl:116 ../wcs/admin/categories.ptl:117
#: ../wcs/admin/categories.ptl:96
msgid "Categories are used to sort the different forms."
msgstr ""
#: ../wcs/admin/categories.ptl:101 ../wcs/admin/categories.ptl:121
#: ../wcs/admin/categories.ptl:122
msgid "New Category"
msgstr ""

View File

@ -262,3 +262,29 @@ pre {
overflow: scroll;
}
div.explanation {
margin: 0 140px 1em 0;
background: white url(bg-footer.png) top right repeat-y;
border: 1px solid #ccc;
padding: 3px;
}
div.explanation ol,
div.explanation p {
margin: 0;
}
div#error-page {
border: 1px solid #a00;
}
div#error-page h2 {
margin: 0;
border-bottom: 1px solid #a00;
background: #f52;
padding: 0 3px;
}
div#error-page p {
padding: 0 3px;
}

View File

@ -91,9 +91,14 @@ class CategoriesDirectory(Directory):
def _q_index [html] (self):
wcs.misc.reload_cfg()
html_top('categories', title = 'Categories')
'<div class="explanation">'
'<p>%s</p>' % _('Categories are used to sort the different forms.')
'</div>'
"""<ul id="nav-categories-admin">
<li><a href="new">%s</a></li>
</ul>""" % _('New')
</ul>""" % _('New Category')
for k in storage.get_storage().keys('categories'):
category = storage.get_storage().retrieve('categories', k)

View File

@ -7,7 +7,7 @@ from quixote import errors
from quixote.html import htmltext
from quixote.util import dump_request
from menu import html_top, html_foot
from menu import html_top, html_foot, error_page
import wcs.misc
from wcs.formdef import FormDef
@ -288,9 +288,13 @@ class FormsDirectory(Directory):
def _q_index [html] (self):
wcs.misc.reload_cfg()
html_top('forms', title = 'Forms')
"""<ul id="nav-forms-admin">
<li><a href="new">%s</a></li>
</ul>""" % _('New')
if len(get_user_roles()) > 0:
"""<ul id="nav-forms-admin">
<li><a href="new">%s</a></li>
</ul>""" % _('New Form')
else:
"<p>%s</p>" % _('You first have to define roles.')
for k in storage.get_storage().keys('formdefs'):
formdef = storage.get_storage().retrieve('formdefs', k)
@ -308,6 +312,8 @@ class FormsDirectory(Directory):
html_foot()
def new [html] (self):
if len(get_user_roles()) == 0:
return error_page('forms', _("You first have to define roles."))
formdef = FormDef()
formdefui = FormDefUI(formdef)
form = formdefui.edit_form_ui()
@ -330,3 +336,4 @@ class FormsDirectory(Directory):
def _q_lookup(self, component):
return FormDefPage(component)

View File

@ -1,5 +1,6 @@
import quixote
from wcs import storage
import wcs.misc
items = [
('forms', N_('Forms')),
@ -12,9 +13,14 @@ items = [
def header_menu [html] (selected = None):
s = ["""<ul id="menu">\n"""]
base_url = quixote.get_request().environ['SCRIPT_NAME'] + '/admin'
users = True
if len(wcs.misc.cfg.get('idp', {}).items()) == 0:
users = False
for k, v in items:
if k == '/':
continue # skip root
if k == 'users' and users is False:
continue
if k == selected:
s.append('<li class="active">')
else:
@ -62,3 +68,11 @@ def html_top [html] (section, title = None):
def html_foot [html] ():
return """</div><div id="footer"><p id="lasso">Powered by Lasso</p></div></body></html>"""
def error_page [html] (section, error):
html_top(section, title = _('Error'))
'<div id="error-page">'
'<h2>%s</h2>' % _('Error')
'<p>%s</p>' % error
'</div>'
html_foot()

View File

@ -95,9 +95,17 @@ class RolesDirectory(Directory):
def _q_index [html] (self):
wcs.misc.reload_cfg()
html_top('roles', title = 'Roles')
'<div class="explanation">'
'<p>%s</p>' % _('Roles are useful for two different things:')
'<ol>'
' <li>%s</li>' % _('To know who will receive and manage a given type of form.')
' <li>%s</li>' % _('To know who can fill a given type of form.')
'</ol>'
'</div>'
"""<ul id="nav-roles-admin">
<li><a href="new">%s</a></li>
</ul>""" % _('New')
</ul>""" % _('New Role')
for k in storage.get_storage().keys('roles'):
role = storage.get_storage().retrieve('roles', k)