Ben Thomson
a59d3b83eb
Code quality clean up ( #4449 )
...
Credit to @bennothommo
2019-07-18 08:50:37 -06:00
Luke Towers
1c0fd1b419
Yet another change to perfect the getParentForm() method
2019-01-10 18:59:29 -06:00
Samuel Georges
edcd899a79
Base getLoadValue to look at form field first
...
Fixes https://github.com/octobercms/october/pull/2663
Adding to build 420+ because this might cause some issues, although it shouldn't. Hoping we don't ever have to roll this back because it fixes another inconsistency when using the model `filterFields` method... some will change values via $field->value (field accessor) and others will change via $this->value ($model accessor). This now puts the field accessor at a consistent priority (first) while retaining the fallback to model.
2017-06-06 20:44:15 +10:00
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
Pásztor Gábor
9f3fcf27ed
Update AssetsList
2016-03-30 18:17:18 +02:00
Samuel Georges
23f4d40ef2
Merge common functionality in to FormModelWidget
2016-03-25 18:01:58 +11: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
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
ef22ac934d
DRY up code from #1504
2015-10-17 10:16:49 +11:00
flynsarmy
82c2787f39
Add support for default values in form widgets
2015-10-09 13:51:33 +10:00
Samuel Georges
c6bfd5d01c
Move this logic to no longer depend on AR model
2015-03-10 09:34:59 +11:00
Samuel Georges
668457b4e6
Updated deprecated references
...
Str::evalHtmlId -> October\Rain\Html\Helper::nameToId
Str::evalHtmlArray -> October\Rain\Html\Helper::nameToArray
Str::stripHtml -> October\Rain\Html\Helper::strip
Str::limitHtml -> October\Rain\Html\Helper::limit
Str::cleanHtml -> October\Rain\Html\Helper::clean
2015-03-07 12:48:39 +11:00
Samuel Georges
8c41bc181e
Model can now resolve this for us
2015-03-07 12:28:50 +11:00
Samuel Georges
507bfab768
!!! *BREAKING*: Form widget base class no longer takes a model as the 2nd argument, it should be passed as model
in the configuration instead.
2015-03-06 20:37:05 +11:00
Samuel Georges
f869b8cc94
Gives FormWidgets the ability to say: "No labels, please"
...
ping @keiosweb
2015-03-03 20:24:14 +11:00
Samuel Georges
6a2f64757b
*** REMOVED ALL DEPRECATED CODE **
2015-02-14 14:11:25 +11:00
Samuel Georges
b74b19741b
Unify the logic for getting field values from a dataset
...
Amongst Form Widgets and "the" Form widget
ping @alekseybobkov
2015-01-05 12:54:14 +11:00
Samuel Georges
5d2a177646
getModelArrayAttribute -> resolveModelAttribute
2015-01-05 11:18:43 +11:00
Samuel Georges
d91d4112a5
getLoadData -> getLoadValue
2015-01-05 09:45:04 +11:00
Samuel Georges
0be582c42d
getSaveData -> getSaveValue
2015-01-05 09:43:39 +11:00
gergo85
f0005d196b
Cleanup
...
Remove whitespaces.
2015-01-03 12:41:23 +01:00
Samuel Georges
ab24c547a2
Move NO_SAVE_DATA to FormField
2014-12-05 16:46:04 +11:00
Samuel Georges
3dbe487698
Various fixes to datepicker and form widget
2014-11-27 19:02:23 +11:00
Sam Georges
23f6d75416
Peer review of #679
2014-10-19 10:58:18 +11:00
Stefan Talen
7dc24cfff1
Updating backend/classes
2014-10-10 23:12:50 +02:00
Sam Georges
c8f3c640b8
columnName -> fieldName + general improvements to FormWidgetBase
2014-09-17 16:07:06 +10:00
Sam Georges
8291dbf4d3
Widgets can now state that they contribute no data when the form is saved
...
Applied to FileUpload.php
2014-09-06 22:22:59 +10:00
Sam Georges
810f545ce8
Missing ref
2014-09-06 21:59:40 +10:00
Sam Georges
ae9fddc071
Switch to helper
2014-09-06 21:58:45 +10:00
flynsarmy
d0b557cbdf
Fix formwidget IDs for nested fields
2014-08-22 15:08:00 +10:00
Sam Georges
294961cf8a
Refactor how the Form widget manages fields.
...
Widgets no longer need to pass configuration through "options".
2014-06-19 21:43:00 +10:00
Sam Georges
71a5dd67ab
Welcome to the world, October :-)
2014-05-14 23:24:20 +10:00