Commit Graph

3894 Commits

Author SHA1 Message Date
Frédéric Péters 034633a020 fields: review item field to get back to previous behaviour (#8785)
In recent commits we tried to handle optional item field with an empty value
prepended to the list of options but while this allows the user to leave
optional fields uncompleted this is not the same behaviour we add.

Return to the previous behaviour.  The only way for an item field to be skipped
is now to be displayed as a <select> field with the hint put as the first
element.
2015-10-27 15:30:49 +01:00
Thomas NOËL b0c5ce245c update french translations 2015-10-26 15:57:42 +01:00
Frédéric Péters abaf9825df misc: add system icon, to be used for hobo 2015-10-26 15:35:06 +01:00
Frédéric Péters 9e1c4ead13 misc: fix check of window.console 2015-10-26 15:28:02 +01:00
Frédéric Péters 32a22ed1bf misc: only use console.log if it's available 2015-10-26 15:23:45 +01:00
Frédéric Péters e97b4d6233 fields: fix display of optional item fields that have no items (#8769) 2015-10-26 10:14:01 +01:00
Frédéric Péters 5c21487c4c fields: fix handling of optional item fields (#8737)
External data sources would add an empty element when the list was optional but
this was not the case when using the internal elements, and things were worked
around when rendering, and inserting, sometimes, the hint as a first element.

This is changed to always have an empty element as first item, and replacing it
with the hint when rendering.
2015-10-23 09:32:19 +02:00
Frédéric Péters a46d91e7d2 general: re-use draft formdata object if it exists (#8668) 2015-10-23 09:32:19 +02:00
Frédéric Péters f3cfe17d58 form: skip over None variables when computing autocomplete variadic URL (#8631) 2015-10-23 09:32:19 +02:00
Frédéric Péters 39a88562d9 forms: show uploaded images as thumbnails in form and validation pages (#8675) 2015-10-23 09:29:53 +02:00
Frédéric Péters 7088b86772 form: add aria-required to widgets (#8676) 2015-10-23 09:29:24 +02:00
Frédéric Péters 05f8268ae2 api: expose formdata retrieval api under /api/ (#8678) 2015-10-23 09:28:57 +02:00
Frédéric Péters df9bab4c1f form: add novalidate to cancel, previous and save-draft buttons (#6188) 2015-10-23 09:28:43 +02:00
Frédéric Péters 2126931d33 fields: correctly check data source tuple size (#8719) 2015-10-23 09:28:31 +02:00
Benjamin Dauvergne 704c420c0f hobo_notify: use publisher.user_class (#8664)
Using wcs.users.User directly is incompatible with SQL storage.
2015-10-16 10:51:39 +02:00
Benjamin Dauvergne 5d1bd13115 hobo_notify: reset user.roles before adding roles from the notification (#8444) 2015-10-13 16:30:17 +02:00
Benjamin Dauvergne 02b6add5cb hobo_notify: add user provisionning (#8444) 2015-10-13 15:18:45 +02:00
Benjamin Dauvergne ebe2e5b071 hobo_notify: adapt to change in message format (#8444) 2015-10-13 15:18:45 +02:00
Frédéric Péters 83a10b716e saml: handle PROFILE_ERROR_STATUS_NOT_SUCCESS like lasso.LOGIN_... (#8616) 2015-10-13 11:51:34 +02:00
Frédéric Péters 0d4f07d56f api: fix return of role associated to a workflow function (#8601) 2015-10-11 16:29:37 +02:00
Frédéric Péters caf87ecc34 misc: handle summary_url in submission context (#8595) 2015-10-09 18:32:15 +02:00
Frédéric Péters ae14c854da api: publish formdef workflow functions (#8589) 2015-10-09 16:56:28 +02:00
Frédéric Péters 123fc09698 forms: redirect to first form page on lost session (#8462) 2015-10-08 15:02:49 +02:00
Frédéric Péters f6b5a0f7e0 js: fix display of ckeditor (#8559) 2015-10-08 15:01:01 +02:00
Frédéric Péters 2dd44b7b44 misc: don't add new backoffice directories to _q_exports (#8550)
This brings a bypass of the _q_lookup call and the security checks are
therefore skipped.
2015-10-08 10:03:39 +02:00
Thomas NOËL 133e45f2b3 fix a french translation (#8556) 2015-10-08 09:30:53 +02:00
Thomas NOËL 2a6f0f36cc tests: use "Global View" string after d4b8bf3 (#8534) 2015-10-07 11:07:37 +02:00
Thomas NOËL f14d323eb1 update french translations 2015-10-07 10:40:49 +02:00
Thomas NOËL d4b8bf3a76 backoffice: rename "general listing" to "Global View" (#8534) 2015-10-07 10:24:26 +02:00
Frédéric Péters 4f421ba215 backoffice: add a link to the originating mail (#8446) 2015-10-07 10:14:46 +02:00
Frédéric Péters ffd3200c06 misc: simplify version discovery (#8531)
No more handwritten version number in wcs/__init__.py, no more support for
qommon as it was once used in Authentic, no more support for subversion.
2015-10-07 10:12:43 +02:00
Thomas NOËL 2af85d24c8 release 1.14 2015-10-06 16:31:40 +02:00
Frédéric Péters 4c02e6861c misc: handle ckeditor jquery adapter failing to load 2015-10-06 16:28:56 +02:00
Frédéric Péters b707e9591e admin: don't fail on duplicated role names when editing an user (#8443) 2015-10-06 15:46:39 +02:00
Frédéric Péters 90cc04bdcb misc: don't display tracking code entry box on category pages (#8441) 2015-10-06 15:46:38 +02:00
Frédéric Péters 1688c973c1 workflows: stay in (front/back)office after generating a document (#8447) 2015-10-06 12:11:04 +02:00
Thomas NOËL e2b5a50b5a api: allow for ?full=on on /api/user/drafts (#8450) 2015-10-01 23:35:52 +02:00
Frédéric Péters 68e26d3997 workflows: send correct file when multiple ones share the same name (#8453) 2015-10-01 17:17:04 +02:00
Frédéric Péters 8f76953579 sql: store workflow_roles_array as strings (#8451) 2015-10-01 13:25:04 +02:00
Frédéric Péters e58e2a4963 misc: mark "Load" (from tracking code) for translation (#8299) 2015-09-30 18:30:37 +02:00
Frédéric Péters bf2947ffea misc: always add wcs.listing.js when displaying global listing 2015-09-30 15:34:44 +02:00
Frédéric Péters 5e19aaf305 po: add translations for a few new strings 2015-09-30 15:16:56 +02:00
Frédéric Péters 9404eb65ee backoffice: add "current forms" view (#8227) 2015-09-30 15:16:56 +02:00
Benjamin Dauvergne 1e124b0cf2 hobo_notify: construct new roles using the uuid as their id (#8400)
To prevent any possibility of duplication we choose to use the uuid as
the id of new roles. So when a new Role is built in concurrent threads,
it will get the same id in both threads and so one will overwrite the
pickle written by the other preventing duplication.
2015-09-29 19:07:04 +02:00
Frédéric Péters 475abd5a6c misc: load json input as strings, not unicode (#8406) 2015-09-29 18:47:15 +02:00
Frédéric Péters b4f9caf21f forms: flatten list of steps (#8355) 2015-09-29 14:57:25 +02:00
Frédéric Péters a58fcf4cae api: export all role attributes with user info (#8397) 2015-09-29 09:35:16 +02:00
Frédéric Péters 558c4df65e general: keep submission context additional details (#8306) 2015-09-28 18:35:39 +02:00
Frédéric Péters f0e88b1cc3 api: add possibility to get to user API through /api/users/{user_id} 2015-09-25 18:14:12 +02:00
Frédéric Péters 5843ad8f33 api: add API to get list of users (#8345) 2015-09-25 18:14:12 +02:00