47 Commits

Author SHA1 Message Date
Samuel Georges
96537033c8 Recompile assets 2019-09-11 20:02:43 +10:00
Dan Harrin
3365820178 Use selected dropdown item as repeater title (#4544)
Credit to @DanHarrin. Initial implementation by @MattPurland. Finishes https://github.com/octobercms/october/pull/2956
2019-08-16 16:13:35 +08:00
Ben Thomson
ee2b53fe71 Add hidden "loaded" flag for repeaters
This allows the repeater to retrieve the load value
from the model only on initialisation. Any further
requests to the repeater (ie. AJAX requests) should
use the POST data.
2019-04-11 17:57:27 +08:00
Ben Thomson
ac98f70a25 Revert reordering handler changes 2019-04-11 10:37:39 +08:00
Ben Thomson
744d578df7 Only run sortable handler if specified 2019-04-09 10:52:14 +08:00
Ben Thomson
f49b5ab4b8 Add callback for handling sorted repeater items 2019-04-08 23:40:41 +08:00
Ben Thomson
98832fbc57 Initial work on handlers for re-ordering repeater items 2019-04-08 15:57:04 +08:00
Luke Towers
b4b4b1b566 Remove extra __index_ and __group_ fields from the Repeater and use only the data itself to handle initializing widgets and processing data.
Refs: #4230
2019-04-04 01:23:32 -06:00
Ben Thomson
970d5622c0 Allow datatables to work within a repeater (#4102)
Fixes #4063. Credit to @bennothommo.
2019-02-04 12:50:40 -06:00
Luke Towers
2d6b9c76a9 Recompile assets 2019-01-15 13:35:12 -06:00
Luke Towers
a9a0544ab0 recompiled stylesheets, retaining newlines for improved diff readability 2019-01-14 11:52:16 -06:00
Luke Towers
44ac62abeb Recompiled LESS using new CSS minification 2018-12-20 13:41:09 -06:00
Christos Christou
9f63ad2739 Fix Repeater max & min client side validation when using groups (#3953)
Credit to @c2webstudio.
2018-12-03 13:53:12 -06:00
Luke Towers
fd4ee47065 Improved repeater item collapse button when remove button not present 2018-08-22 21:06:06 -06:00
Luke Towers
29c0c8c33d Improvements to Repeater form widget styling
Improved the styling of the Repeater form widget, made it easier to distinguish between individual repeater items
2018-08-22 20:51:26 -06:00
Luke Towers
cbed54a263 Implemented minItems repeater property on client & server
Also implemented maxItems on server (previously only client). Fixes https://github.com/octobercms/october/issues/3668
2018-08-12 01:33:51 -06:00
Luke Towers
6774920003 Finish implementing titleFrom option for Repeaters
Ref: e7609aa5e8
2018-08-11 20:27:53 -06:00
Joey
541f0a78f1 Fix for missing _group field when saving data from a nested group repeater (#3523)
Fixes #3067. Credit to @Narkoleptika. Thanks to @petehalverson for his docker container work for replicating.
2018-04-26 00:13:28 -06:00
Floris Koch
161d81a192 Update _repeater_item.htm (#3149)
Allows using language files for group titles.
2017-10-03 10:15:29 -06:00
Samuel Georges
1db67af8e8 Merge remote-tracking branch 'remotes/origin/develop' into l55upgrade
Conflicts:
	modules/system/lang/en/lang.php
2017-07-11 10:48:54 +10:00
Luke Towers
056a37fce4 Fix repeater title generation in readOnly mode
Refs: 2a16847724
2017-07-09 13:06:23 -06:00
Luke Towers
2a16847724 Add support for readOnly Repeater Widgets (#2960)
* Add support for previewMode in Repeater FormWidget
Refs: #2724, 5f91c45f79
* Add support for previewMode in Repeater FormWidget

Refs: #2724, 5f91c45f79

* Add support for previewMode in Repeater FormWidget

Refs: #2724, 5f91c45f79

* Add support for previewMode in Repeater FormWidget

Refs: #2724, 5f91c45f79
2017-07-08 13:34:04 -06:00
Samuel Georges
600035cd49 Tszuj up some styling
Add active states and color correct treeview
Adjust proportions of repeater add button
2017-06-24 17:18:08 +10:00
Luke Towers
95cd3f7077 Translate group name and description
Refs: https://github.com/octobercms/october/issues/2772#issuecomment-301125572
2017-05-12 11:22:13 -06:00
Samuel Georges
c52f91a6d2 Collapsed items should default to or include the group name - Refs #2772 2017-04-24 13:24:56 +10:00
Samuel Georges
dac744dbc6 Scrollpad not rendering on open - Refs #2772 2017-04-24 13:24:56 +10:00
Samuel Georges
acfe619cb9 Add button lacks loading state - Refs #2772 2017-04-24 13:24:55 +10:00
Samuel Georges
83e80745b3 Fixes issue with index incrementation 2017-04-22 21:40:35 +10:00
Samuel Georges
46fcdbc636 Progress on repeater field groups
Refs #2772
2017-04-22 21:04:37 +10:00
Christophe Vuagniaux
9e74fe6a53 Repeaters Firefox compatibility fixes (#2738)
* Repeaters fix Firefox collapse/expand buttons not working

* Repeaters fix Firefox open new tab when CTRL + click on Expand/Collapse buttons
2017-04-08 20:21:34 +10:00
Samuel Georges
e9cc782120 Peer review #2723 2017-03-01 14:31:37 +11:00
Luke Towers
3aa251db4e Client side enforcement of repeater maxitems
Adds client side enforcement of the max items property of the repeater form widget
2017-02-28 20:43:08 -06:00
Samuel Georges
023f2ac0f5 Push add/remove events to JS
Refs #2710 /cc @LukeTowers
2017-03-01 12:40:15 +11:00
Samuel Georges
e7609aa5e8 Improvements to repeater collapsing
Removed the expand all, collapse all buttons, they are a bit too bulky so have been replaced with the standard CTRL+click behavior.
Added foundation library to repeater.js
Add "titleFrom" option to specify which input to use for the collapsed title
Styling improvements

Refs #2632 + #2631
2017-01-28 11:59:28 +11:00
Christophe Vuagniaux
4dbe172a43 Repeaters add Expand Collapse buttons see #2631 2017-01-28 11:03:49 +11:00
Samuel Georges
675a6a4224 Code improvements
Refs #2235
2016-07-23 14:22:36 +10:00
Samuel Georges
07b0c7d0ce Merge pull request #2235 from acasar/nested-depends-on
DependsOn in repeater
2016-07-23 13:36:24 +10:00
Samuel Georges
80fb1f42cc Further code improvements
Refs #2233
2016-07-23 13:06:38 +10:00
Anže Časar
79bb4c2035 Nested DependsOn 2016-07-22 00:38:32 +02:00
Anže Časar
453096bb27 Fix nested repeater 2016-07-21 18:55:03 +02:00
Szabó Gergő
73c70a15ed Improve the multilingual support 2015-11-24 22:00:05 +01:00
Samuel Georges
73ed24c4c1 Repeater should purely render fields, with no container or tabs
Refs https://github.com/rainlab/pages-plugin/pull/95
2015-11-05 07:31:35 +11:00
Samuel Georges
bed7d0825f Fixes loading animation in various places 2015-06-03 19:22:18 +10:00
Samuel Georges
0f630c80d9 Improve framework code to support $(this) in data attributes 2015-04-08 07:44:26 +10:00
Samuel Georges
ad6447f5f2 Fixes #995 - Adds sorting to repeater 2015-03-23 20:03:37 +11:00
Samuel Georges
fe5deb68e7 Repeater should populate with existing dataset 2015-03-05 19:02:23 +11:00
Samuel Georges
022eb4d673 Create initial version of repeater form widget 2015-03-04 19:05:32 +11:00