Commit Graph

40 Commits

Author SHA1 Message Date
4fc1424af8 New syntax component "filter" 2023-07-06 17:56:51 +02:00
307755deb4 Remove redundant 'schema' from new entry editor
Schema can be extracted from searchconf
2023-03-13 18:14:18 +01:00
87788c7fd1 Allow column config in serial syntax
The same columns are used in aggregation and new entry editor
2023-03-13 08:24:54 +01:00
addb381a40 Simpler dot-safe selector 2022-07-04 21:41:31 +02:00
b188f49818 Handle media fields in bureaucracy plugin 2022-07-04 20:40:47 +02:00
20210e7c7e Remove form autofocus (#603)
Fixes #597
2022-04-06 10:47:04 +02:00
17dda596c0 Respect ACLs in serial editor (#599)
Fixes #589
2022-03-29 13:25:31 +02:00
0549dcc5bc PHP code sniffer autofixes 2022-01-13 14:50:12 +01:00
709d7a580e Add config option to disable deleting serial data in aggregations 2021-01-16 18:03:00 +01:00
308cc83fd5 refactoring names
To avoid confusion with the Lookup type, the three different ways of
accessing a schema have now the following names:

* page data - for revisioned struct data attached to a page
* serial data - for an unrevisioned list of struct data attached to a
                page
* global data - for an unrevisioned list of struct data not attached to
                any page (formaly known as lookup schema)

The editor mechanism used for serial and global data is now called
AggregationEditor

Some reference to lookup schemas is still in the bureaucracy support
part.
2020-05-14 13:05:03 +02:00
0330783181 Remove redundant serial code
There is actually very little need to split the handling of lookup (not page specific) and serial (page bound) data, because row ids are globally unique and never shared between those two types.
2020-04-02 14:48:47 +02:00
efe74305e3 Fix multi columns
Use the correct column for joining tables depending on data type. This is an initial "it works" implementation and should be revised and done more carefully.
2020-04-01 16:15:11 +02:00
69f7ec8f84 Using page revisions in inline editor guarantees that correct data access is initialized 2020-03-31 10:19:22 +02:00
6fd73b4b83 Inline editors are mostly adapted to new data access 2020-03-25 16:00:48 +01:00
b9d35ff22b Rudimentary handling of serial data
Serial data is bound to a page but does not affect versioning
2020-03-18 21:46:52 +01:00
0ceefd5c55 Start unifying schema types
Schemas per se are type agnostic, isLookup property is removed. Data is stored and accessed differently based on how it is entered and retrieved.

The crucial change is introduction of the composite key of pid and rid. Previous page data utilizes rid = 0 to differentiate itself. Other types, notably lookup, have autoincrementing rid.

Database migration is not implemented yet.
2020-03-18 19:42:48 +01:00
b80ca5e1e3 fix: make html5 datetime picker actually work
The datetime picker expects and produces dates / time pairs separated by
the "T" character, not a space. Further, it does not handle seconds at
all.

Therefore, we have to provide the timestamp in the input field separated
by a "T" and for consistency drop seconds altogether. Hence, it
becomes necessary to replace the "T" by a space again before providing it to jQuery
date picker fallback.

Further, we have to actually parse the "T" when validating the
timestamps we receive from the user.
2018-01-26 12:20:51 +01:00
91cdb71177 fix: do not input double year from jquery date picker
As defined by the jquery ui datepicker documentation, "yy" referes
to the four digit year.
2018-01-26 12:17:00 +01:00
b987ff3dff simplified HTML5 input type support check 2018-01-04 23:12:18 +01:00
34f483db19 use HTML5 date and datetime-local inputs with jquery as fallback, make the year easier to edit 2018-01-04 01:57:12 +01:00
79cb79f5ac Get colname from label again
This should fix the ajax bug for autocompletion and hence
resolve #305
2017-06-15 11:42:40 +02:00
9c233c0c95 Fix a let that we missed for IE10 compatibility
IE10 does not understand `let` and `const`, so we still have to use var
2017-04-20 12:07:52 +02:00
d0b1b95139 Move edited multiwrap out of .newtemplate container
Fixes issue #276
2017-03-08 15:59:31 +01:00
8925ba298f allow summarize in lookups. fixes #262
Since the sums are not updated on saving, a successfull inline save now
removes the sums until the page was reloaded.
2017-01-24 12:11:23 +01:00
a0d3166be2 refactor: remove 2nd find and tertiary operator 2016-11-14 14:42:04 +01:00
854aaac5ec fix: ajax-append the 1st row to lookups as well
This fixes SPR-694 and it fixes #207
2016-11-14 12:39:18 +01:00
f599b80970 correctly initialize multiple lookup editors 2016-11-03 13:25:38 +01:00
0b23a49c5e focus first input field in lookup editor. fixes #172 2016-11-01 14:55:05 +01:00
068610443e fixed collapsing schemas in entry editor 2016-11-01 11:12:10 +01:00
4a681ff986 fix problems when more than one .dokuwiki element exists
closes #182
2016-10-10 15:54:15 +02:00
2c4fae077e reset the form on success 2016-08-24 14:59:28 +02:00
f107f479f0 show new row when adding to lookup
This renders the newly created row and adds it dynamically to the
existing table.
2016-08-24 14:29:20 +02:00
c498205a73 check CSRF token on row delete 2016-08-18 11:46:16 +02:00
b1758b8fb6 Merge branch 'master' into lookups
* master:
  output the key not value for unknown option in ConfigParser
  media fields need unique IDs. fixes #152
  fixed references to old Integer type
  removed Integer type
  Version upped
  fixed problem with multicolumns and made the param name clearer
  added missing schema file
  when Page uses titles, sorting should use title #146
  Decimal type needs to type cast for order and compare #146
  make sure pages are assigned in tests
  give types a way to influence sorting
  add slight shadow for aggregation images
  Fixed multi fields for inline editor
  test wildcard adding in Search
2016-08-11 10:24:59 +02:00
366695523d Fixed multi fields for inline editor
Fixed applying of Template copying for new fields.
2016-08-09 14:23:38 +02:00
8f6959ae5d nicer styling 2016-08-08 17:03:46 +02:00
04346cd26d delete lookup rows 2016-08-08 14:22:42 +02:00
4bc2843f02 saving lookups works 2016-08-04 18:30:14 +02:00
6b5e52fdc8 first go at the lookup table editor
All functionality is added via JavaScript after an initial AJAX call.
This call can be used to check permissions later (without the need to
invalidate caches)
2016-08-04 16:19:43 +02:00
37d0530f92 split up script into multiple parts, add entry funcs to inline editor 2016-08-02 16:42:20 +02:00