Commit Graph

5732 Commits

Author SHA1 Message Date
Frédéric Péters 93ffe3f9dc misc: restore (but deprecate) access to .formdef in form_objects (#32730) 2019-05-02 13:53:08 +02:00
Frédéric Péters daf32c5a54 backoffice: also hide fields with uuid from inspect view (#32677) 2019-05-02 13:53:07 +02:00
Frédéric Péters 188a443b5e translation update 2019-05-02 13:53:07 +02:00
Frédéric Péters 4015674a21 forms: let user recall draft on first page (#32263) 2019-05-02 13:44:00 +02:00
Frédéric Péters c57cc62ac9 workflows: add possibility to trigger global actions with a webservice (#32184) 2019-05-02 12:58:18 +02:00
Frédéric Péters 2513ad6665 misc: move workflow custom directories getter to workflow class (#32184) 2019-05-02 12:58:18 +02:00
Nicolas Roche fbc1d9e1ea forms: clean form processing context before running workflow actions (#32558) 2019-05-02 11:08:15 +02:00
Frédéric Péters 70bbbe8c24 misc: don't special case FileField when displaying field value (#32734) 2019-05-02 10:16:42 +02:00
Frédéric Péters eaef231e89 misc: strip invalid xml characters from submitted data (#32729) 2019-05-02 10:07:51 +02:00
Thomas NOËL 142ef10355 admin: handle empty values on user page (#32643) 2019-05-02 10:01:23 +02:00
Frédéric Péters 634570cf20 lazy: fix access to user field data (#32717) 2019-05-01 16:08:30 +02:00
Frédéric Péters 22fc1227dd lazy: add queryset-like features to lazy formdef (#32244)
{% for formdata in form.formdef.objects.pending %}
  {{formdata.number}}
{% endfor %}
2019-05-01 16:08:30 +02:00
Frédéric Péters e0d82144a7 misc: rename/move FormDefSubstVar to lazy variables module (#32244) 2019-05-01 16:08:30 +02:00
Frédéric Péters 1f0bea71a2 forms: sync map with address fields (#27418) 2019-05-01 16:07:01 +02:00
Frédéric Péters adb5b170ac misc: really remove all invalid characters from xml (#32726) 2019-05-01 16:06:09 +02:00
Frédéric Péters f2fe49567f sql: replace dashes used in backoffice attribute names in order clause (#32684) 2019-04-29 19:30:37 +02:00
Frédéric Péters 101c650a56 sql: replace dashes used in backoffice attribute names (#32678) 2019-04-29 17:09:22 +02:00
Thomas NOËL 7fbd17431c debian: disable timeout of systemd service (#32634) 2019-04-25 23:38:53 +02:00
Frédéric Péters 520a34c0ac misc: don't crash restoring unset table with rows field (#32424) 2019-04-23 11:20:13 +02:00
Thomas NOËL 447368ea95 sql: add evo.who on evolution update (#31472) 2019-04-23 09:43:59 +02:00
Frédéric Péters 4d72f6ca62 workflows: run field migrations in form workflow action (#32459) 2019-04-20 08:08:58 +02:00
Benjamin Dauvergne de0a999ac1 saml: use RSA-SHA256 signature method (#32010) 2019-04-19 11:07:08 +02:00
Frédéric Péters 6421cddc00 help: shuffle api-fill.page for better formatting (#32434) 2019-04-18 11:50:42 +02:00
Frédéric Péters 10301475e4 sql: fix column name used for _structured field (#32430) 2019-04-18 07:49:19 +02:00
Paul Marillonnet 5a5f2eb71a workflows: do not crash on global action name duplicate (#20874) 2019-04-17 17:33:30 +02:00
Frédéric Péters e916dcf8d2 api: don't crash /api/forms when there are no formdefs (#32415) 2019-04-17 12:41:26 +02:00
Frédéric Péters dcb0b0fc58 misc: add site option to force lazy evaluation (#29951) 2019-04-16 15:09:00 +02:00
Frédéric Péters 653db00150 lazy: add support for __radd__ ("foo" + form_var_bla) (#29951) 2019-04-16 15:09:00 +02:00
Frédéric Péters a481797540 workflows: keep compatibility dict intact in display message action (#29951) 2019-04-16 15:08:55 +02:00
Benjamin Dauvergne 669140ab01 fields: accept Item(s)Field.items can be None (fixes #32363) 2019-04-16 10:58:59 +02:00
Frédéric Péters fb1e70e94d tests: don't use "aaa" as list item to avoid clash with statics hash 2019-04-16 10:07:00 +02:00
Thomas NOËL e3a4f92817 workflows: jump on trigger only once (#32326) 2019-04-16 09:32:28 +02:00
Frédéric Péters 9e9b5e1463 misc: give unique identifiers to backoffice fields (#17375) 2019-04-16 08:16:16 +02:00
Frédéric Péters 5ef21e4734 tests: adjust for new select2/placeholder support (#32222) 2019-04-15 14:14:03 +02:00
Benjamin Dauvergne 048024af93 api: store display/structured on submit of an item field with raw id (#32013) 2019-04-15 14:09:10 +02:00
Benjamin Dauvergne 04e06d4e02 doc: complete api-fill.page about item and items field (#32013) 2019-04-15 14:09:10 +02:00
Frédéric Péters 617191674b forms: move hint inside select2 (like normal select) (#32222) 2019-04-15 13:38:16 +02:00
Frédéric Péters 63dcac7784 misc: reset <select> set by geolocation on unknown value (#32245) 2019-04-15 13:36:57 +02:00
Frédéric Péters e408679d06 misc: add l10n to default template tags libraries (#32265) 2019-04-15 13:35:46 +02:00
Frédéric Péters e02206fb85 lazy: add internal_id and page_no properties to form data (#32264) 2019-04-15 13:35:46 +02:00
Frédéric Péters 5f8f4a87be api: use dedicated django views for session-less APIs (#23023) 2019-04-15 09:32:43 +02:00
Frédéric Péters e9c01df247 sql: change default to rebuild global view (#32191) 2019-04-15 09:32:43 +02:00
Benjamin Dauvergne 2cb534760d api: export structured items of item and items fields (#32014)
It's only exported if the call is signed, it's exported in a new field
'structured_items' to keep signature of 'items'.
2019-04-15 08:39:43 +02:00
Frédéric Péters 04e04d56bf tests: add checks for trigger restricted to roles 2019-04-11 14:59:55 +02:00
Frédéric Péters 189ede3c58 workflows: let backoffice item field be assigned from data label (#32134) 2019-04-10 13:23:48 +02:00
Thomas NOËL 3bf1110393 misc: be explicit about input format passed to graphicsmagick (#32109) 2019-04-09 16:51:00 +02:00
Benjamin Dauvergne bbeb4033ba templatetags: add tags for token generation/validation (#31268)
- add {% token_decimal n %} -> n digits random token
- add {% token_alphanum n %} -> n digits/uppercase-letters (without
  0,1,I and O) random token
- token1|token_check:token2 -> verify token1 is equal to token2
  insensitive to case and prefix/suffix spaces.
2019-04-05 13:54:30 +02:00
Frédéric Péters 51df06ed9d ezt: don't crash displaying unknown reference (#32024) 2019-04-05 12:45:08 +02:00
Frédéric Péters 7356623963 translation update 2019-04-05 11:00:31 +02:00
Frédéric Péters 3bf61b16b3 forms: add support for live change of JSON data source (#31492) 2019-04-04 19:24:58 +02:00