SeriousKen
15bfcf8cfd
Add support for morphOne relations in backend list columns ( #4079 )
...
Fixes #4078 . Credit to @SeriousKen
2019-04-19 16:31:12 -06:00
Luke Towers
57d54eb882
Improve code clarity
2019-04-19 12:39:36 -06:00
Rachasak Ragkamnerd
70cd444f8a
Added support for 'cache' attribute to addJs() to disable CF RocketLoader ( #4092 )
...
Credit to @itpcc
Due to CloudFlare Rocket Loader, CF will automatically try to optimize page loading speed by changing script type attribute. This breaks the script execution order and makes the user unable to upload the file(s) in the backend using "FileUpload" widget.
However, [CloudFlare allows adding "data-cfasync"](https://support.cloudflare.com/hc/en-us/articles/200169436-How-can-I-have-Rocket-Loader-ignore-specific-JavaScripts- ) to prevent this. And it was used in the [commit #3841 ](https://github.com/octobercms/october/pull/3841/files ).
2019-04-16 20:27:13 -06:00
Alexander Guth
84839ba231
Do not hardcode handler name ( #4235 )
...
Credit to @alxy. This enables us to reuse the widget with a different alias name. Also, this is the octoberish way of referring to handlers. Tested on the Test plugin.
2019-04-05 09:23:50 -06:00
Samuel Georges
5190c8177b
Avoid terminating the app using exit() or die()
...
Refs #3783
Refs #3746
2019-03-29 07:10:07 +11:00
Samuel Georges
334ad94ca4
Merge pull request #3965 from ayumihamsaki2/master
...
Update Dashboard Columns from 10 to 12
2019-03-29 01:04:16 +11:00
Ben Thomson
8c1106f027
Allow list configs to add class to head row cell ( #4207 )
...
Credit to @bennothommo. Documented by https://github.com/octobercms/docs/pull/367
2019-03-25 13:37:32 -06:00
Tomy Smith
40bc6e0d67
Ignore disabled FormWidgets in getSaveData() ( #4116 )
...
Fixes #3983 . Credit to @tmus.
2019-03-19 16:45:32 -06:00
Ben Thomson
13a7cc915d
Use Form getSaveData method when saving form widgets within repeaters ( #4160 )
...
Credit to @bennothommo
2019-03-15 22:39:34 -06:00
Luke Towers
bbf398133e
Fix issues with AJAX handlers on dashboard widgets. Replaces #4132
2019-02-13 15:05:18 -06:00
Luke Towers
1fc8dc6fd4
Added ability to require permissions use ReportWidgets
2019-02-11 16:02:30 -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
Antonie Hogewoning
16ca521cd0
Fix setting default values for repeater in update context ( #4098 )
...
Credit to @CptMeatball
2019-01-31 13:50:21 -06:00
Denis Denisov
ec2a0d5fb0
Tabs and tabels scrolling fix ( #4069 )
...
Fixes #4037 . Credit to @w20k
2019-01-21 23:35:27 -06:00
Luke Towers
8c9be817cc
Added support for min, max, and step for the number field type
2019-01-18 18:14:25 -06:00
Luke Towers
3ff77120c6
Improved disabled support for balloon-selector and fileupload fields
2019-01-16 13:32:31 -06:00
Anže Časar
74484b1ec2
Fix default value translation ( #4062 )
...
Credit to @acasar
2019-01-15 13:38:22 -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
1c0fd1b419
Yet another change to perfect the getParentForm() method
2019-01-10 18:59:29 -06:00
Luke Towers
1b3263d4c7
Pass the containing Form widget to the FormFields that it generates.
...
This enables complex FormWidgets that need to know what Form widget they belong to to access that information with $this->formField->form; This also enables a fix for: https://github.com/rainlab/location-plugin/issues/48
2019-01-10 10:22:59 -06:00
fansaien
5db5522d4d
Fix the filter options being escaped twice ( #4032 )
...
Credit to @fansaien.
Reference: https://github.com/octobercms/october/pull/3793 . This commit added the e() function for translation results.
Because the filter is using the mustache template, and the manual said: All variables are HTML escaped by default. If you want to return unescaped HTML, use the triple mustache: {{{name}}} (https://mustache.github.io/mustache.5.html )
That means the string will be escaped twice. So, I removed the e().
2019-01-03 14:04:26 -06:00
Ben Thomson
ee003c416c
Redirect user to last available page in list widget if current page is unavailable ( #4020 )
...
Credit to @bennothommo. Fixes #4008 .
2018-12-30 12:49:42 -06:00
Ben Thomson
b6bd643e21
Rename prepareModel to prepareQuery, deprecate prepareModel
2018-12-30 16:25:01 +08:00
Luke Towers
26173486d3
Fix issue where the clear search button would submit a form if the search widget is within an HTML form
2018-12-28 11:51:51 -06:00
Luke Towers
a2708ee0f5
Added backend.manage_default_dashboard permission to lock down who has access to change the default dashboard for the system. Fixes #2176
2018-12-20 17:26:49 -06:00
Luke Towers
44ac62abeb
Recompiled LESS using new CSS minification
2018-12-20 13:41:09 -06:00
Woo
eb1d3fadbc
Add format property to list columns ( #3990 )
...
Credit to @vicrly. Fixes #3967 .
2018-12-19 20:52:07 -06:00
Jim Cottrell
34da61805b
Replace URL parameters dynamically without needing a list in advance ( #3361 )
...
Fixes #3358 . Credit to @jimcottrell
2018-12-18 10:03:03 -06:00
Ben Thomson
14c4d1392e
Datatable dropdown usability tweaks ( #3980 )
...
Adds a couple of usability tweaks to the dropdown cell type in the data table widget, to more closely mimic a native dropdown field.
Pressing the up or down arrow keys when the cell is focused but with the dropdown closed will select the previous or next item automatically and set it as the cell value. This does prevent the usual table function of going to the previous or next row when focused on a dropdown cell, but I think it's a worthwhile trade-off. When the dropdown is open, the up and down arrows work the same as previously implemented.
Typing out characters will initiate a search and select the first matching option automatically and set it as the cell value. For example, for the following options:
Apples
Oranges
Bananas
Typing out o and r on the keyboard will automatically select the Oranges option.
Credit to @bennothommo
2018-12-16 09:30:23 -06:00
vosco88
a11868169e
Add reset search (X) to toolbar search input ( #3975 )
...
Credit to @vosco88
2018-12-14 09:04:01 -06:00
ayumihamsaki2
28061bf3e9
Update jquery.isotope library from v1.5.26 to v3.0.6 ( #3966 )
...
Update jquery.isotope library from v1.5.26 to v3.0.6. Credit to @ayumihamsaki2. Refs: https://github.com/octobercms/october/issues/3958
2018-12-07 18:31:51 -06:00
Luke Towers
d53e174469
Change number field type to use HTML5 number type
...
Credit to @w20k for the solution. Fixes #2311 .
2018-12-06 14:40:33 -06:00
Ayumi Hamasaki
dcec14b2e9
Update Dashboard Columns from 10 to 12
...
This PR has been re-coded to split the old PR into two separate PR's. This PR relates to github Issue: https://github.com/octobercms/october/issues/3823
2018-12-06 12:32:57 +00:00
Farrow
a1fb23a984
Adds i18n support for the form field default property ( #3546 )
...
Credit to @Farrow. Previously when creating a backend form with RainLab.Builder if you filled in the "Default" property using the i18n (to get, for example, acme.plugin::lang.field.default) then that string would be output exactly on the form (i.e. <input value="acme.plugin::lang.field.default"...>) instead of being replaced with the actual value of that key from the lang file.
2018-12-01 13:05:47 -06:00
Romaldy Minaya
cca3c704a3
Fixes #3119 ( #3163 )
...
Added readOnly support to RecordFinder, Switch widget and relation widget including dropdown Fixes #3119 . Credit to @romaldyminaya
2018-11-23 00:33:01 -06:00
Nathan van der Werf
6fb6211c56
Escape output to prevent XSS injections ( #3924 )
...
Credit to @nathan-van-der-werf
2018-11-15 15:05:44 -06:00
Luke Towers
e726165554
Add Tab icons functionality ( #3901 )
...
Credit to @ayumihamsaki for the original proposal, @Teranode for the initial work. Related #3888 , #3856 .
2018-10-30 20:06:33 -06:00
Rike-cz
cf8a73f0a2
Ensure that fields are defined before attempting to render a specific field ( #3812 )
...
Credit to @Rike-cz
2018-09-22 19:22:02 -06:00
LucasZdv
9d126a0ab6
Filter group translatable options ( #3793 )
...
Fixes #3789 . Credit to @LucasZdv
2018-09-17 09:33:13 -06:00
vosco88
55575e316b
Update reportcontainer.less ( #3737 )
...
Fix minor padding issue in Firefox. Fixes #3731 . Credit to @vosco88
2018-08-31 00:36:47 -06:00
Samuel Georges
e32de7b753
Annotate class methods
2018-08-30 13:37:39 +10:00
Nathan van der Werf
743252c3ff
Merge branch 'develop' into feature/cleanup
...
# Conflicts:
# modules/backend/widgets/Form.php
2018-08-29 19:18:01 +02:00
Samuel Georges
2d77565e6c
Peer review 52d1388e4e7d7165695af889f8dcc861086ad012
...
This uses a simpler approach and leverages improvements to the validation trait
See 574031d3ee
Refs #2489
2018-08-29 12:19:33 +10:00
Luke Towers
fcec026dff
Add support for checking if nested form fields are required for visual indicator
2018-08-26 12:29:37 -06:00
Nathan van der Werf
8fd16d4db6
Merge branch 'develop' into feature/cleanup
...
# Conflicts:
# modules/backend/formwidgets/FileUpload.php
2018-08-24 19:52:54 +02:00
Nathan van der Werf
0f0d108da0
Remove unused imports
2018-08-24 19:51:59 +02:00
Nathan van der Werf
66fa03f17e
Revert "Remove unused imports"
...
This reverts commit 742a5f415bc45819b11c77402efc114fa2f4451e.
2018-08-24 19:40:40 +02:00
Luke Towers
1c7b311ea9
Added inline API documentation for media manager:
...
Added documentation for the following events:
media.folder.delete
media.file.delete
media.folder.rename
media.file.rename
media.folder.create
media.folder.move
media.file.move
media.file.upload
2018-08-18 08:49:57 -06:00
Luke Towers
be839d0a07
Documented FilterWidget events:
...
Added inline documentation for the following filter widget events:
backend.filter.extendQuery
backend.filter.extendScopesBefore
backend.filter.extendScopes
2018-08-15 21:42:56 -06:00