Samuel Georges
669a4cee6e
Merge branch 'maintenance-mediamanager' into develop
2017-10-16 17:56:34 +11:00
Samuel Georges
2a1234d21c
Update MM lang refs
2017-10-16 17:52:50 +11:00
Samuel Georges
fdc2891734
Update deprecated refs
2017-10-14 22:06:34 +11:00
Luke Towers
4203e65549
Deprecated Cms\Controllers\Media in favour of the backend one. Fixed other references to moved pieces of the Media Manager. Finally a proper fix for https://github.com/octobercms/october/pull/2604
2017-10-08 23:12:04 -06:00
datune
4a0a488ff6
Account for NestedTree Trait setting ( #3143 )
...
* Account for NestedTree Trait setting
See https://github.com/rainlab/blog-plugin/issues/338 . The Lists Widget did not account for the NestedTree setting.
* Update Lists.php
2017-10-04 14:04:12 -06:00
jimcottrell
263200fd7b
Support form field commentHtml flag for section, checkbox, and switch types ( #3150 )
2017-10-03 13:41:14 -06:00
Luke Towers
c2f204008b
Moved the MediaManager widget from the CMS module to the System module
2017-09-27 22:23:58 -06:00
Samuel Georges
58aa360eab
The text input value should be explicit, not mutated, ever.
...
Rollback fb893efb9ca3a0fa25e3bb9fd01f55cef6216473
Refs #2942
Refs #3101
2017-09-15 08:41:05 +10:00
Samuel Georges
cd76f2e04f
Field definition should override magic
2017-09-13 14:29:42 +10:00
Luke Towers
9565565865
Add ignoreTimezone option to datepicker field and column types.
...
Adds the ability to specify an `ignoreTimezone: true` option on the config for a datepicker form widget or date column type. This will ignore both October's and the backend user's timezone settings to display the date exactly as it is stored.
2017-09-10 22:39:15 -06:00
Samuel Georges
8a1b060a29
Tidy up from #3084
2017-09-06 09:00:53 +10:00
Jofry S
2c97c55ea8
Allow simple pagination option on ListControllers
2017-09-05 13:33:51 +10:00
Luke Towers
7c3d4705fc
Support firstDay in date & date range filters
...
Ref: 962aa32a60 (commitcomment-23597564)
2017-08-11 08:59:06 -06:00
Luke Towers
a705a70f35
Cleanup for #2856
...
Removed `minNumber` and `maxNumber` options, they are not enforceable on the client side without a lot more work. Added `number` filter type, added missing numberrange filter template, consolidated styles for filter-date and filter-number filters.
2017-08-05 18:10:36 -06:00
Luke Towers
be87fbbb87
added feature to allow filtering over a number range ( #2856 )
...
Original by @purposebuiltscott in #2856
2017-08-05 14:01:59 -06:00
Luke Towers
e41f047722
Support yearRange property on the daterange scopetype
2017-08-05 12:40:15 -06:00
Luke Towers
67fb168e6c
Support yearRange property on the date scopetype
2017-08-05 12:39:20 -06:00
Luke Towers
962aa32a60
Improve flexibility of scope type properties
...
Improves the flexibility of scope type properties by removing conditional logic specific to the date and daterange scope types and laying the groundwork for scopes to define their own custom properties that can be loaded from the scope configuration defined by the developer.
2017-08-05 12:38:20 -06:00
Samuel Georges
953336d250
Option "searching" defaults to false
2017-07-15 14:34:53 +10:00
Samuel Georges
db943c077b
This doesn't need to be a form
2017-07-15 12:29:20 +10:00
Samuel Georges
4239caf9eb
Enable searching via config
...
Only the ServerEventDataSource supports this for now. This is purely to satisfy https://github.com/rainlab/translate-plugin/pull/272
Clean up and fix net spam
2017-07-15 12:18:11 +10:00
Samuel Georges
3145611150
Add search to table widget
...
Refs https://github.com/rainlab/translate-plugin/pull/272
Recompile assets
2017-07-15 12:06:50 +10:00
Samuel Georges
dc3e521c36
Merge pull request #2968 from slowpokefarm/master
...
Allow using zero-keys in Filter widget options
2017-07-15 00:05:39 +10:00
Stanislav Rimsha
6f691680cf
Allow using zero-keys in Filter widget options
2017-07-14 15:57:47 +02: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
c9e31fd83b
Support previewMode for the balloon-selector
...
Add support for previewMode in the Balloon Selector form field type.
Refs: #2724 , 5f91c45
2017-07-09 12:53:29 -06:00
Szabó Gergő
f7f507dbdc
Translate the value of the text field ( #2942 )
...
It is a useful feature, if you like to add translatable value.
2017-06-26 09:38:31 -06:00
Samuel Georges
c3570ffd7e
The event emitter should not be a dependency
...
Fixes #2938
2017-06-23 08:11:41 +10:00
Samuel Georges
9eb0cc24ae
Opens a channel for model to talk with form widget
...
.. and controller and beyond.
2017-06-17 21:20:34 +10:00
Samuel Georges
41cc1744f1
Tab panes now support CSS spec
...
See form docs > paneCssClass
2017-06-05 17:37:13 +10:00
Samuel Georges
f0df1f458b
Merge branch 'develop' into l55upgrade
...
Conflicts:
modules/system/assets/ui/storm.css
2017-05-27 22:24:57 +10:00
Priit Perna
2b3b6ece46
Made checkbox quick selection configurable
...
With this change the following configuration will show the quick selection links:
"quickselect" => true
2017-05-18 15:16:42 +03:00
Samuel Georges
7e76f39e6c
Add app.name config
...
Various other refittings
2017-05-16 18:50:41 +10:00
Quezler
cc17b679f1
Code dusting ( #2826 )
...
Code cleaning according to PSR-2 w/ exemptions (mostly dust).
2017-04-24 21:38:19 +10:00
CSNWEB
3cfb8c7587
DRY up the code
2017-04-09 04:01:34 +02:00
CSNWEB
ee2dd7ac1c
Add readOnly / disabled support for checkboxlist
...
Relations rendered with the relation formwidget using checkboxlist are now correctly rendered like in the previewMode.
2017-04-07 21:04:20 +02:00
Samuel Georges
5daf4365ae
Move the change event to the input element
...
This should bubble to the parent control element and persist any logic that depends on the old event
Fixes #2684
2017-04-06 08:08:50 +10:00
Samuel Georges
b841f9e066
{@inheritDoc} -> @inheritDoc
2017-03-16 06:26:14 +11:00
Samuel Georges
5f91c45f79
Implement disabled support for some form widgets
...
Recompile assets
Fixes #2749 (Media Finder)
Fixes #2750 (File upload)
Fixes #2751 (Rich Editor)
Refs #2724
2017-03-14 13:52:47 +11:00
Samuel Georges
e7fa4b832a
Rollback 84b533454e
...
See #2749 , #2750 & #2751 on notes for how to better handle this. Put simply, the control of disabled VS previewMode should be given to the individual form widget, as opposed to the spawning parent.
2017-03-14 06:49:33 +11:00
Luke Towers
3876dc61d1
Rollback c836d92f9f
...
Rollback due to discussion on c836d92f9f . Will be looked into again later when addressing #2311 .
2017-03-13 09:36:49 -06:00
Luke Towers
84b533454e
Allow FormWidgets to be disabled like regular FormFields
...
Adds support for the `disabled` property to FormWidgets so that they will match the behaviour present in regular FormFields. Fixes #2724 and a personal annoyance of mine :)
2017-03-11 02:12:47 -06:00
Luke Towers
c836d92f9f
Make number field an HTML5 number field
...
Makes the `number` form field actually be an HTML5 `type="number"` field.
2017-02-15 08:44:12 -06:00
Samuel Georges
d9a2b88852
Pass records by reference to overcome halting event issue
...
Refs https://github.com/octobercms/october/pull/1853
2017-02-15 05:58:44 +11:00
Luke Towers
9f3c2b8bf6
Switched backend.list.extendRecords event triggering
...
Made the event triggering for the new backend.list.extendRecords event triggering more consistent with the rest of the class.
2017-02-14 02:20:23 -06:00
Luke Towers
fd3fbf5e52
Merge pull request #1853 from leocavalcante/feature-list-extend-records
...
Make available to extends Lists records
2017-02-14 02:17:16 -06:00
Samuel Georges
0d1fc43212
Add isSelected() helper to form field
...
Fixes an issue where dropdown NULL and 0 are treated as the same
Fixes #2612
2017-02-03 06:35:23 +11:00
Aleksey Bobkov
761b03ef16
Merge branch 'develop' of github.com:octobercms/october into develop
2017-01-25 20:16:23 -08:00
Aleksey Bobkov
0d30931045
Minor styling fixes in the table widget. Fixed a bug where empty values in the table widget could be rendered as 'undefined' in Safari.
2017-01-25 20:15:12 -08:00
Samuel Georges
513a75c87e
Remove data-title from table data
...
This was utilized by an older responsive table implementation, no longer in use
2017-01-26 11:00:23 +11:00
Samuel Georges
6b56476f66
Merge pull request #2469 from joseph-d/patch-1
...
Update Filter.php
2017-01-13 06:29:54 +11:00
Samuel Georges
f9c659343b
Further styling improvements
...
Refs #2575
2017-01-09 08:37:36 +11:00
Samuel Georges
62d7ff9532
Merge pull request #2575 from triasrahman/develop
...
Enhance usability of list pagination.
2017-01-09 07:51:01 +11:00
Pásztor Gábor
039a49979a
Style improvements on reportcontainer's manage widget dropdown.
2016-12-21 20:15:07 +01:00
Trias Nur Rahman
897c875fa9
Enhance usability of list pagination.
2016-12-21 21:50:44 +07:00
Samuel Georges
c644f8b66d
Fixes issue where nested columns forcibly hide
...
Eg: "myrelation[attribute]" as a column name would cause the list setup to hide these fields with no ability to bring them back
2016-12-14 19:14:41 +11:00
Samuel Georges
b85c4f9b7b
Improve list tree styling and minor fix
...
Fixes bug with non standard primary key on model when using tree mode
Fixes #2532
Recompile assets
2016-12-10 13:19:32 +11:00
Samuel Georges
0a2b343047
Simplify system events
...
This pipes all event calls through a new EventEmitter trait, which substitutes the October Rain event emitter trait. The view event has been moved to this trait also.
Pass some variables by reference to allow multi-extension.
Fixes #2420
2016-12-10 09:02:06 +11:00
Pásztor Gábor
94ab13cd8b
Fix exception message, remove some unneded imports.
2016-12-07 21:33:05 +01:00
Samuel Georges
f771887ee5
When refreshing fields, forceFill is a bit too flaky
...
- Using a proxy field would populate a relation with an array of attributes, this is not good or consistent. Instead the FormModelSaver trait is used to bring the behavior in line with FormController and others. This should improve consistency in the behavior and developer expectations.
- The noticeable difference will be that relations and their values are now set by the postback data where possible. In cases where this is undesirable -- eg: updating a relation triggers proxy fields to update with existing values, when they should seed from the relation instead (desire to lose prior changes) -- the formExtendRefreshData controller override can be used to prune the existing values from the dataset, where they will then be seeded from the model as normal.
- Also the $data property is only rebuilt if it differs from the model. Previously it would corrupt the model-based dataset by converting to an array then back to an object. If the two objects are the same, they will be passed by reference and values will replicate this way.
2016-11-30 07:08:12 +11:00
Samuel Georges
b39ebec812
Pass columns to search scope
...
This allows the default search to be applied and combined with any custom constraints
2016-11-29 06:46:52 +11:00
joseph-d
af7950b9d0
Update Filter.php
...
There is an addScopes function for extensibility but no way to remove scopes which are already there.
2016-11-08 09:46:27 +00:00
Samuel Georges
46c473e2f2
Fixes fetching multi tiered pivot relation values
...
Refs https://github.com/daftspunk/oc-crm-plugin/issues/3
Minor code clean on select.js
2016-11-08 07:02:31 +11:00
Samuel Georges
4aca2d40ff
Remove "allowClear" and tidy up #2459
...
Allow clear is not necessary, equivalent of allowClear false is "placeholder" and allowClear true is "emptyOption".
2016-11-07 08:43:52 +11:00
Joseba Juániz
1ee0250441
Dropdown can support either placeholder / emptyOption
...
The difference between a placeholder and an emptyOption is that the placeholder cannot be reselected,whereas the emptyOption can.
Fixes #2450
2016-11-07 08:29:49 +11:00
Samuel Georges
50d3ffb035
Halycon models do not declare forceFill
...
Only bind purgeable fallback event once (only needed once)
Refs https://github.com/rainlab/translate-plugin/issues/54#issuecomment-256067096
2016-11-05 10:59:53 +11:00
Samuel Georges
7b0f33e9b3
Adds an isNested flag to Form widget
...
This is useful when a form renders another form inside, specifically the repeater. In these cases the model and data will diverge, and it also provides an opportunity to not apply extension logic to nested form fields.
Fixes #2257
2016-11-05 09:53:23 +11:00
Samuel Georges
57b10704ce
Support for overriding list views
...
For consistency, entry partial for controller behaviors should be called "container"
Added addViewPath() method to ViewMaker
Remove "fa" from icon docs (not necessary)
Fixes #2439
2016-10-29 14:10:21 +11:00
Samuel Georges
ee2dd78b3d
Exception handling for type: relation
...
It would appear many plugins incorrectly use type: relation as a list column, when this does nothing. Previously it would fallback to the text type, now that invalid types fail hard, this adds a softer landing by spamming the trace log instead.
Refs #2438
2016-10-22 04:18:28 +11:00
Samuel Georges
91e7e8b950
List column number type was falling back to text
...
Since custom list column types an exception is thrown for unknowns. This makes number known.
Fixes #2438
2016-10-22 03:10:50 +11:00
Samuel Georges
f9dd5b2f57
Plugins can now define custom list column types
2016-10-21 07:15:08 +11:00
Samuel Georges
733158060e
Fixes indentation
...
Refs #2400
2016-10-13 19:52:37 +11:00
Samuel Georges
19c3c19a00
Added extended useList options, including raw output
2016-10-06 18:44:26 +11:00
Samuel Georges
fe74fcb8e0
Comma concat all single dimension arrays, for text columns
...
This is useful when the attribute is a basic jsonable store and needs to be in a suitable format for "useList" export mode
2016-09-28 16:31:21 +10:00
Samuel Georges
9b5851fbd5
Improves exception handling for invalid model resolver
...
A more specific error message is now shown when trying to resolve a model from an invalid source (eg: an array)
Fixes #2354
2016-09-18 13:44:13 +10:00
Samuel Georges
6c474bcae9
Move list pagination out of table footer
...
Remove docs on list-unresponsive (removed a while ago)
Add topPartial and sidePartial options to list controller configuration (experimental)
2016-09-03 12:13:38 +10:00
Szabó Gergő
749e4c031c
Translate the remove widget dialog ( #2323 )
...
* Translate the remove widget dialog
2016-08-27 09:14:31 +10:00
Samuel Georges
c70db75d38
Pass the data set along with getOptions methods
...
This is useful when the model is unreliable, because it is not always populated with the relevant data set. This argument is only needed in edge cases, like when using a repeater or other split class<->data scenarios
Refs #2235
2016-07-23 15:16:57 +10: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
CSNWEB
34bd318427
Fix searching in non text fields under Postgres
...
Fixes #2092
2016-07-23 12:24:41 +10:00
Anže Časar
79bb4c2035
Nested DependsOn
2016-07-22 00:38:32 +02:00
Samuel Georges
49641a31d0
Remove the dropup when there are no widgets
...
Fixes #2123
2016-07-03 14:53:37 +10:00
Samuel Georges
bcff1d3ecd
Widget classes are now extendable
...
Fixes #2078
Fixes #1586
2016-06-15 17:10:46 +10:00
Samuel Georges
1a3bf59301
Fixes not updating list record count immediately
2016-06-10 07:43:21 +10:00
Samuel Georges
74a6a71bcb
Parameters -> Parameter
...
(Models should be singular)
2016-05-31 08:17:48 +10:00
Samuel Georges
bb769db223
Dashboard now supports reset and make default
...
Added the new widgets to the add widget screen
System Parameters can now be reset
2016-05-28 14:18:25 +10:00
Samuel Georges
805c0939ad
Introduce two new dash widgets: welcome and active theme
...
System warnings have been moved to the system dash widget
Minor styling and language changes
2016-05-28 11:10:33 +10:00
Samuel Georges
cdb35f5070
UserPreferences -> UserPreference
...
(Models should be singular)
2016-05-27 07:35:32 +10:00
Samuel Georges
010a769b19
Create centered loader with text
...
Continuity styling updates
2016-05-26 05:20:26 +10:00
Szabó Gergő
6d86e44279
Add missing translation and update the Hungarian translate ( #2017 )
...
* Add missing translation
* Update the Hungarian translate
* Open the author's website in a new window
* Minor typo
* Minor change
2016-05-24 06:04:57 +10:00
Samuel Georges
7563670c49
Minor styling fixes on the table control
2016-05-23 17:32:20 +10:00
Samuel Georges
f2e129e821
Fixes logic error
...
Fixes #2020
2016-05-18 05:57:08 +10:00
Samuel Georges
3bad70f041
Relation controller now applies the defined constraints by default
...
Relation controller now supports scope and conditions for the manage mode (list)
Logic has been modified across recordfinder and filter that only allows one constraint in this order (1. conditions, 2. scope, 3. defined constraints (where applicable))
Fixes #1203
2016-05-17 05:17:40 +10:00
Samuel Georges
41de93a2cb
Fixes an issue where the default widgets are not loaded
...
Ping @ChadStrat
2016-05-16 06:41:15 +10:00
Jérémy GAULIN
c43a460064
Allow specifying half bound daterange filter values (treat the missing one as "infinty", ie 0000-00-00 for min and 2999-12-31 for max)
2016-05-15 01:22:28 +02:00
Samuel Georges
cb86e655dd
Fixes disabled relation nulling value
...
Just like DatePicker, relation and even regular fields should omitted from the data set
The same logic should apply to hidden fields
Fixes #1827
Recompile assets
2016-05-15 06:47:28 +10:00
Jérémy GAULIN
e988e1a171
Fix error thrown when `$date` is not set
2016-05-14 11:50:14 +02:00
Samuel Georges
36caa651f3
Datepicker was moved to storm, so no need to load it from the widget
...
Recompile assets
Refs #2008
2016-05-14 16:37:55 +10:00
Jérémy GAULIN
02c000530c
Display dates with backend timezone. Manipulate date with app timezone.
2016-05-14 04:14:42 +02:00