Samuel Georges
29040b416c
Allow redirect: false on importExportController
...
Implement getFieldName() method
2016-11-28 07:50:06 +11:00
Samuel Georges
35296c5b26
Adds getFieldName helper to FormWidgetBase
...
Refs https://github.com/octobercms/docs/pull/207
2016-11-24 08:59:07 +11: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
6173ff177b
Typo in variable name
2016-11-02 08:58:07 +11:00
Samuel Georges
0aadcc6675
Merge paths and vars when calling widget handler
...
When an AJAX handler is called for a widget, the view paths and specified variables should be merged in to the controller. This sets the appropriate context:
1) Look at the widget first
2) Fall back to the controller
Fixes #2432
2016-11-02 08:50:15 +11:00
Samuel Georges
bc165078de
Removes redundant code
...
The form widget label and widgetDetails() method was intended for use by the Builder plugin, since it ended up using its own internal registration system, this is not used anywhere so is removed.
Refs https://github.com/octobercms/docs/issues/200
2016-11-01 08:15:03 +11:00
Samuel Georges
0b345ad592
Add 'readOnly' spec to form field
...
Same as disabled except data is still posted back
2016-09-27 16:50:52 +10:00
soulshockers
e10c162667
Fixed calling dynamic methods for dynamically extended widgets.
2016-08-05 18:51:27 +03:00
Samuel Georges
78a4067564
Make logic more explicit
...
This tightens up the rules of 7baea87068
2016-07-23 15:50:48 +10:00
Samuel Georges
7baea87068
Allow AJAX handlers to pipe objects to Laravel
...
Treat non scalar, non array, non RedirectResponse, non null as a Laravel compatible response
This brings AJAX handlers in line with page cycles, which do the same thing if the response is not a string. However in AJAX we should treat any scalar as a "result", not just a string. For all else (where not null), let Laravel handle it as a custom response object -- could be a model for serialization, or anything compatible.
Importantly to note when a custom redirect is sent, October's workflow is completely wiped out, so any partial updates, redirects, etc. will not occur. This is a normal and fair expectation.
Fixes #1784
2016-07-23 11:57:15 +10:00
Samuel Georges
e970d80443
Align AJAX logic: merge custom response last
...
This is to allow overriding the standard values
Refs #2209
2016-07-16 13:11:10 +10:00
Luke Towers
b73811fefc
Moves AJAX handler response handling
...
Fixes octobercms/october#2208
2016-07-13 09:51:18 -06:00
Samuel Georges
bcff1d3ecd
Widget classes are now extendable
...
Fixes #2078
Fixes #1586
2016-06-15 17:10:46 +10:00
Samuel Georges
171b14c6ab
Nicer error message when no DB and backend access attempt
...
This is for flat-file sites that don't use a database. If debug mode is on, it will show an error page with advice to set up the database. If debug mode is off, it will simply show a 404 page. Previously it was a nasty exception/plain error page.
2016-06-05 07:16:11 +10:00
Samuel Georges
e9be15cc15
Preferences -> Preference
...
Rename brandsetting config folder
2016-05-27 07:46:50 +10:00
Samuel Georges
cdb35f5070
UserPreferences -> UserPreference
...
(Models should be singular)
2016-05-27 07:35:32 +10:00
Samuel Georges
6c081d9265
Combine editor preferences and backend preferences
...
Add backend timezone setting used for converting display dates
2016-04-23 05:31:05 +10:00
Samuel Georges
0504da41f2
Add hasFields methods
...
formHasOutsideFields, formHasPrimaryTabs + formHasSecondaryTabs
2016-04-23 05:13:08 +10:00
Samuel Georges
87a4de40de
Address serialize/unserialize issues
...
This will require a cache clear for the combiner
Ref https://davidwalsh.name/php-serialize-unserialize-issues
2016-04-16 08:22:31 +10:00
Pásztor Gábor
9f3fcf27ed
Update AssetsList
2016-03-30 18:17:18 +02:00
Samuel Georges
a035acdc2c
Tidy up some logic, restore firstRowTitles setting
...
Refs #1856
2016-03-26 14:10:05 +11:00
Jérémy Gaulin
2a60e34558
Import options to configure the CSV reader + patch to prevent unfriendly error to be thrown due to bad import source file encoding (on AJAX request)
2016-03-26 12:54:13 +11:00
Samuel Georges
0aef151d9a
Add showSearch option to dropdown
...
This is a highly specific option, so we shouldn't add it to the FormField class itself
2016-03-25 18:21:58 +11:00
Samuel Georges
23f4d40ef2
Merge common functionality in to FormModelWidget
2016-03-25 18:01:58 +11:00
Samuel Georges
1241f584d0
Merge remote-tracking branch 'remotes/origin/stable' into ui
2016-03-01 07:02:07 +11:00
Samuel Georges
21f3ac93c1
Add support for HTML comments
...
Fixes #1808
2016-02-27 09:46:00 +11:00
alekseybobkov
a943708b99
UI updates
2016-02-19 22:12:41 -08:00
Joshua Wilson
6f3d7a58f2
Phpdoc cleanup for System\Traits
...
removed in WidgetMaker trait
phpdoc cleanup of backend traits and classes
Minor fix for cases when file is not found
2016-02-13 14:06:50 +11:00
Samuel Georges
3cfc7b6a5d
Move widget classes that are exclusive to their own space
2016-01-16 16:02:28 +11:00
Pásztor Gábor
31457bd2ee
Cleanup
2016-01-15 10:20:57 +01:00
Samuel Georges
2213c6f28c
Fix string comparison function
...
Flush stray output on view errors
2016-01-02 16:13:30 +11:00
Samuel Georges
a186a60c43
Fixes the datepicker saving an empty value when disabled
...
Refs https://github.com/responsiv/campaign-plugin/issues/4
2015-12-09 08:19:53 +11:00
Samuel Georges
04e61adac3
Add official support for "nolink" columns - Fixes #1599
...
To make a row non-clickable, use the `clickable` option in the list column definition
2015-12-05 10:05:42 +11:00
Samuel Georges
33d39c8b34
Minor
2015-10-17 10:51:54 +11:00
Samuel Georges
f446f8acd4
Merge pull request #1506 from tschallacka/FormFieldCatchForEmptyYaml
...
Fixed form field parsing to accept no config
2015-10-17 10:23:58 +11:00
Samuel Georges
ef22ac934d
DRY up code from #1504
2015-10-17 10:16:49 +11:00
tschallacka
c4fffbd6f7
Fixed form field parsing to accept no config
...
If a programmer would define a yaml like
fields:
shortcut:
country:
It would fail with message
"array_key_exists() expects parameter 2 to be array, null given" on line 275 of ..\modules\backend\classes\FormField.php
The yaml parsing returns a null. This check intercepts that null value being passed to the function and turns it into a proper array.
2015-10-09 16:06:23 +02:00
flynsarmy
82c2787f39
Add support for default values in form widgets
2015-10-09 13:51:33 +10:00
Samuel Georges
1c8d021a35
Adds the ability to remove navigation items
...
Included tests
Refs #1413
2015-09-12 08:45:58 +10:00
Samuel Georges
2a6b58a3fe
Merge pull request #1425 from Flynsarmy/getPublicActions
...
Add getPublicActions controller method
2015-09-08 12:48:44 +10:00
flynsarmy
98e1d0fe4d
Add getPublicActions controller method
2015-09-07 14:17:09 +10:00
Samuel Georges
917cfd437f
Make sure a tab is defined always - Refs #1397
2015-08-29 16:45:01 +10:00
Jérémy GAULIN
2872e80a14
Merge branch 'develop' of https://github.com/octobercms/october into fix-extending-plugin
2015-08-03 18:20:20 +02:00
Jérémy GAULIN
f22a16d482
Fix NavigationManager error when extending a side menu by adding a new item.
...
The code and owner were not set in the value array.
2015-08-03 18:07:56 +02:00
Samuel Georges
bb4c2da404
Revert change from #1315 , fixes original issue, write tests
2015-07-28 18:52:12 +10:00
Samuel Georges
48b4a137fa
Allow passing explicit content to hints
2015-07-25 09:34:47 +10:00
Samuel Georges
d453f922dc
Improve the hint API, add inset mode to loader
2015-07-25 09:23:34 +10:00
Samuel Georges
fc490b18e9
Add actionUrl() helper to backend controller
...
Used for generating URLs to the current controller
2015-07-23 19:44:54 +10:00
Samuel Georges
846feb6a33
FileUpload now triggers dependsOn event
...
form.beforeRefresh event now uses dataholder pattern
Improve exception handling in ControllerBehavior
2015-07-18 08:50:31 +10:00
Samuel Georges
606892143b
Added new security config option cms.enableCsrfProtection
2015-07-04 09:31:28 +10:00