Commit Graph

354 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
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 05f8268ae2 api: expose formdata retrieval api under /api/ (#8678) 2015-10-23 09:28:57 +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 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 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
Thomas NOËL 2a6f0f36cc tests: use "Global View" string after d4b8bf3 (#8534) 2015-10-07 11:07:37 +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
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 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
Frédéric Péters 31510a0f65 misc: allow duplicated role names (#8373)
This doesn't let the user create such roles as the result will always be
confusing lists but at least it won't crash if an external process creates
such roles.
2015-09-25 17:55:42 +02:00
Frédéric Péters 77ad631093 api: fix "formdefs of category" API to not return all formdefs (#8340) 2015-09-23 23:50:14 +02:00
Frédéric Péters 8afcddfaac api: add API to submit new formdata (#8298) 2015-09-23 14:26:51 +02:00
Frédéric Péters 3d252af241 forms: always set a new url_name when importing (#8315) 2015-09-22 18:57:55 +02:00
Frédéric Péters f22031acf4 tests: also run admin pages tests with sql enabled (#8315) 2015-09-22 18:57:51 +02:00
Frédéric Péters 59fd4c662b backoffice: add lists of backoffice submission drafts (#8176) 2015-09-22 18:57:41 +02:00
Frédéric Péters 1fd9ddf050 forms: add attribute to know formdatas created from backoffice (#8176) 2015-09-22 16:52:07 +02:00
Frédéric Péters ff4b2c152c formdata: add actions_roles index (#8281) 2015-09-22 16:52:07 +02:00
Frédéric Péters 1c20613197 sql: add a way to select() over different formdefs (#8179) 2015-09-22 16:52:07 +02:00
Frédéric Péters 20d84a0cda workflows: allow changes to "workflow functions" (#8256) 2015-09-22 16:52:07 +02:00
Frédéric Péters 1eb04fb441 tests: run form pages tests with English as language 2015-09-22 16:52:07 +02:00
Frédéric Péters acb6726bcf admin: turn permissions panel into a matrix of roles/accesses (#8239)
This also adds "backoffice access" to this panel, so it's no longer required to
go into individual roles to set that one.
2015-09-22 13:32:47 +02:00
Frédéric Péters 7e12818eb8 misc: support variables in URL in root and category redirects (#8301) 2015-09-22 13:32:47 +02:00
Frédéric Péters fbef6d3c56 workflows: add error handling to webservice call action (#7124) 2015-09-22 13:32:47 +02:00
Frédéric Péters 51bec8d58f misc: add possibility of redirection of category pages (#8218) 2015-09-22 13:32:47 +02:00
Frédéric Péters a7eed9c60a misc: add possibility of redirection of homepage (#8216) 2015-09-22 13:32:47 +02:00
Frédéric Péters 6e7f88400f misc: fix missing variable in bounce processing 2015-09-19 16:29:54 +02:00
Frédéric Péters 04e8b077ae api: allow for ?full=on on /api/user/forms (#8283) 2015-09-19 15:51:34 +02:00
Frédéric Péters 6de84723ea api: move user related API to /api/user/ (#8283) 2015-09-19 15:51:34 +02:00
Frédéric Péters 21cfacc69a api: add keywords and description to formdefs API (#8282) 2015-09-19 15:51:34 +02:00
Frédéric Péters 96f7d8c7bd api: put formdefs and categories API under /api/ (#8295) 2015-09-19 15:51:34 +02:00
Frédéric Péters 893c923ecb fields: feed "live" formdata as variables when evaluating conditions (#8272) 2015-09-17 11:31:21 +02:00
Frédéric Péters 38bc5ea87a backoffice: minor change to export commands labels (#8229) 2015-09-15 11:55:18 +02:00
Benjamin Dauvergne e894d0ce2e new hobo_notify command to handle role provisionning/deprovisionning messages (fixes #8219)
It gets wcs roles from uuid or slug of the authentic2 role; if role is
using a slug it's replaced by the uuid. It handles rename by using uuid
as the slug of roles.

Targetted tenants are identified through their SAML entity id.
2015-09-15 11:19:22 +02:00