Commit Graph

73 Commits

Author SHA1 Message Date
e9c707238f Delete an accidentally added empty line of code 2023-08-12 18:44:59 +02:00
0fadec1297 Fix a whitespace issue in aggregation table
In a cell with data of type wiki, the non-zero margin-bottom of the last
block element creates an unpleasant whitespace.

This fixes #661.
2023-08-12 18:26:56 +02:00
bb3d822f47 Style inputs
Fixes #642
2023-07-27 12:19:15 +02:00
535a8a873c Merge pull request #633 from alexdraconian/style-fix
Add responsive style to struct input
2023-07-27 11:51:19 +02:00
dbd123161d Minor style adjustments 2023-07-19 15:17:22 +02:00
0ebf30450f make filter syntax use the disabling of dynamic parameters
Also some more style improvements
2023-07-17 13:43:14 +02:00
bea7239ded change the way filters are rendered
Instead of a form, now links are used that immeadiately apply a selected
filter. To construct the link, the type's renderTagCloudLink() method is
reused.

Still to do:

* make it possible to apply multiple filters (this might need some
  adjustments on the renderTagCloudLink() method signature)
* do ensure that one selected filter does not collapse all filter
  possibilities. Cloud currently does this by implementing it's own
  SearchConfig in SearchCloud, but that seems to be limited to handling
  a single schema and field. I think it would make more sense to be able
  enable/disable the dynamic filter handling for the standard
  SearchConfig
* Improve styling. This is currently just a very quick rendering on top
  of <details>
2023-07-12 14:52:21 +02:00
8eaa43a005 filter style improvements 2023-07-12 12:02:46 +02:00
ceb78f4f32 Filter: minor styles adjustments 2023-07-06 17:56:51 +02:00
4fc1424af8 New syntax component "filter" 2023-07-06 17:56:51 +02:00
71b11d8bec add default style for indexed lists 2023-06-26 15:31:15 +02:00
af0ce8d2fb added classes config parameter
This allows users to set custom CSS classes on aggregations potentially
restyling them differently for different use cases.

This makes startScope and finishScope part of the public API of the
Aggregation class. It should no longer be called within render() but is
instead called outside.

This might potentially break plugins implementing their own
aggregations. Needs to be checked
2023-06-26 15:09:40 +02:00
8dca0df0fe Add responsive style to struct input 2023-03-19 22:28:01 +09:00
70dc622959 do not shrink longer labels 2023-03-14 14:35:01 +01:00
94db41dae2 avoid breaking label text off checkboxes 2023-03-14 14:33:42 +01:00
d7491f49e7 Make data entry more comfortable
This restyles the input entry form to make data entry more comfortable,
by enlarging most of the input fields. It also uses more modern CSS to
achieve the same layout as before.

This has only been tested with the dokuwiki template. Adjustements may
be neeed for other templates.
2023-03-14 14:22:43 +01:00
0549dcc5bc PHP code sniffer autofixes 2022-01-13 14:50:12 +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
4fc908c26a Block styles for radio buttons in schema editor 2020-05-11 13:58:32 +02:00
7a3035932f 💄 improve bureaucracy field styling
This should now fix all alignment issues both in mobile and on screen.

See issue #404
2018-10-08 13:17:32 +02:00
ed105ae285 📱 Improve style of struct bureaucracy fields
Especially when it comes to responsive design
2018-07-07 11:11:55 +02:00
4d06cb432f fix: show a properly centered cloud of tags
The float left, irritatingly caused the items to pile up on the right
side. This fixes this and produces a proper cloud.

This fixes #311
2017-11-30 16:00:07 +01:00
79c83e060d Add button to clear schema data 2017-06-16 12:30:03 +02:00
a7c0f8a62e Fix styles for bureaucracy forms
The restructuring of the entry label↔input html in #304 has caused the
css for struct fields in bureaucracy forms to break. This commit should fix
this and hence fix #307.
2017-06-15 16:35:07 +02:00
81fe2ff236 Improve styling of the hint icon for single line labels
This should fix the style issue in #305
2017-06-15 11:42:40 +02:00
c255577a6d Fix labels not hidden in closed struct entry
Since `div.field` are now the only elements inside the fieldsets (beside
the legend), we can just hide them explicitly.

This bug occurred, because the star had a lower specifity than the more
explicitly defined display-states for div.field and its descendants.

Quix-80
2017-06-14 10:22:36 +02:00
433b768331 Fix whitespace 2017-06-14 10:22:36 +02:00
ee9831356b Fix multiple inputs in one label: it's invalid 🙅
Multiple inputs within a single label in invalid HTML. This bug can not
only occur in multi-fields but also in plugin-provided single fields
which may contain multiple input-fields which are then only combined by
javascript.

Thus, we provide an id which every type can assign to the edit-field
best suited. For multi-types this is usually the new-input-template.

Fixes #292
2017-06-14 10:22:36 +02:00
127d6bacba feat: Show translatable schema names on pages
SPR-841 #45
2017-03-01 17:58:25 +01:00
fbd1e8f888 fix: make input fields wider again
This was introduced in 956594215d
2016-12-08 13:59:43 +01:00
cde2661818 Merge pull request #230 from cosmocode/feature/cloudAggregation
Add cloud aggregation similar to data-plugin's datacloud
2016-12-08 09:56:27 +01:00
761e541e56 Merge pull request #227 from cosmocode/feature/listAggregation
Add list aggregation
2016-12-08 09:50:58 +01:00
664e4c7366 refactor: reuse style class from DokuWiki-core 2016-12-07 14:10:37 +01:00
13e634d5bf refactor: join lines to decrease indentation 2016-12-07 11:07:28 +01:00
262c0fc699 feat: make images in clouds square
Also move the code to generate tag cloud links to the AbstractBaseType
and overwrite it in Media and Color
2016-12-06 16:42:29 +01:00
be2ae90033 refactor: remove unnecessary class
We do not reuse any styles from struct aggregations
2016-11-25 13:14:11 +01:00
ea5ad12ac6 feat: add list aggregation
Implement the list aggregation known from the dokuwiki data plugin. This
feature is useful when an entire table would be to much boilerplate.
Usually one would select only a few columns.

Enable the option sepbyheader to behave analogous to the data plugin.

Report any options that are not valid for a list aggregation as error.
Show that error during the render phase of a page. That way the error is visible
always when the page is rendered, not only after the initial save when it is
parsed.

See #90 and see SPR-710
2016-11-25 10:27:03 +01:00
5e893cb9a2 feat: sort tags alphabetically 2016-11-24 15:14:33 +01:00
fa04b28c8e feat: add tag cloud aggregation
The basics are working but there is still a lot to do and to refactor
2016-11-23 16:45:53 +01:00
416ce55cc4 Merge pull request #224 from cosmocode/feature/fixPaginationStyles
use actual number of columns for pagination colspan
2016-11-23 09:12:32 +01:00
02effca59f fix: adjust styles for bootstrap bureaucracy
fixes #201
2016-11-22 15:18:05 +01:00
4bc1074d0b fix: use actual num of cols for pagination colspan
`$this->data['cols']` holds the number of cols defined in the syntax,
which may be different from the displayed cols because the `*` might be
used which counts only as 1 in data['cols'] or there might be columns
defined in the syntax which are not part of the schemas and are hence not
displayed.

Fixes #217 and fixes SPR-711
2016-11-22 11:06:42 +01:00
956594215d This adds a new type Color
This is not terribly useful on it's own, but will be used by other
plugins defining their own types and making use of this.

The default color will never be saved.

This type makes use of <input type="color"> which is not supported in
some older browsers (a simple text input will be displayed by those).
2016-11-16 14:39:05 +01:00
c5ea80b3a7 style adjustments 2016-11-02 16:47:00 +01:00
09dd691a3a first attempt at CSV export 2016-11-01 16:32:32 +01:00
d682ae13b0 made inputs wider. fixes #162 2016-11-01 14:58:33 +01:00
81946bcc11 added some styles for bootstrap3 compatibility. fixes #192 2016-11-01 10:37:51 +01:00
e2c90eebd8 added editors to schema. not checked anywhere, yet 2016-10-06 16:26:06 +02:00
2c4fae077e reset the form on success 2016-08-24 14:59:28 +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