40 Commits

Author SHA1 Message Date
Nathan van der Werf
0f0d108da0
Remove unused imports 2018-08-24 19:51:59 +02:00
Samuel Georges
b732f70c59 Adds support for single file uploads
...when used without a form tag
Refs #2857
2017-07-29 09:21:49 +10:00
Luke Towers
9ff11da179 Remove unused descriptionFrom property
Removes unused descriptionFrom property that was probably copy-pasta remnants from the RecordFinder formwidget when nameFrom was implemented in 6aaf4cce43. Also removed it from the docs here: 6164e4a9e7
2017-07-09 09:48:17 -06:00
Priit Perna
8ee7d3f5ae Added scope support to the Relation formwidget 2017-05-17 13:00:40 +03:00
Samuel Georges
b841f9e066 {@inheritDoc} -> @inheritDoc 2017-03-16 06:26:14 +11:00
Samuel Georges
afa2c83c3c Fixes bug introduced by #2507
The many-to-many relationship types choke pretty hard on this enhancement, so only use it for the simple one-to-many/one-to-one style relations instead.
Fixes #2524
2016-12-04 10:48:22 +11:00
oliverpool
01193511d5 Use the otherKey to update a relation
If the `otherKey` of the relationship was set, the widget was considering the wrong column name.
2016-11-24 13:33:20 +01: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
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
Samuel Georges
23f4d40ef2 Merge common functionality in to FormModelWidget 2016-03-25 18:01:58 +11:00
Samuel Georges
030e1977e8 Relation form field now supports model attributes in "nameFrom"
nameFromSelect -> select|sqlSelect
Refs https://github.com/octobercms/october/pull/1579
2015-11-28 15:31:11 +11:00
Joel E. Svensson
e992e95ae3 Added support for 'nameFromSelect' in relation form fields 2015-11-03 14:34:16 +01:00
Dave Shoreman
d18a0a6453 Add missing ApplicationException dependency
The relation backend formwidget throws an `ApplicationException` when a relation isn't defined, but the exception is missing its `use` statement. This PR adds it in. See error below:

![Screenshot showing error thrown](http://i.imgur.com/4Ka6fL2.png)
2015-04-01 19:13:42 +01:00
Samuel Georges
6bb1ee3b9a Update Relation Form widget to new approach, now supports nested field names 2015-03-23 20:02:59 +11:00
Samuel Georges
f8ae611ec9 Refactor form widgets to use new fillFromConfig() helper 2015-02-28 14:43:34 +11:00
Samuel Georges
85c47c4e01 public -> protected $defaultAlias 2015-02-28 12:43:53 +11:00
Samuel Georges
6a2f64757b *** REMOVED ALL DEPRECATED CODE ** 2015-02-14 14:11:25 +11:00
Samuel Georges
b1b700368f Radical reorg of some classes 2015-01-28 11:49:54 +11:00
Samuel Georges
46dd064aad Minor 2015-01-21 17:01:35 +11:00
Samuel Georges
5d2a177646 getModelArrayAttribute -> resolveModelAttribute 2015-01-05 11:18:43 +11:00
Samuel Georges
0be582c42d getSaveData -> getSaveValue 2015-01-05 09:43:39 +11:00
Chris Harvey
78fb9fb110 Correcting class name for missing relation exception 2014-12-10 11:34:05 +00:00
Sam Georges
c32ba4cbad Minor code clean 2014-11-04 17:41:48 +11:00
Sam Georges
d2547d1891 Proposed fix for hasOne not working in Relation field type 2014-11-04 12:34:45 +11:00
Stefan Talen
f29151100b Updating modules/backend/formwidgets 2014-10-10 23:50:05 +02:00
Sam Georges
bdb3d5ff45 Remove hard coded key name ref 2014-09-25 18:35:10 +10:00
Sam Georges
746f425d88 Added new containerAttributes property to form fields 2014-09-25 18:05:35 +10:00
Sam Georges
5f12d9fc9b Keep relation constraints in Relation form widget 2014-09-23 07:56:15 +10:00
Sam Georges
c8f3c640b8 columnName -> fieldName + general improvements to FormWidgetBase 2014-09-17 16:07:06 +10:00
Sam Georges
fdb90d3882 nameColumn -> nameFrom 2014-09-17 14:00:10 +10:00
Sam Georges
f4a9286c45 Improve form widget 2014-07-09 19:36:49 +10:00
Sam Georges
b09b6d6863 Improved naming onReload -> onRefresh
Improved Record finder
2014-07-03 18:37:51 +10:00
Sam Georges
ff379f5ebf Switch to new Nested Set model trait - October\Rain\Database\Traits\NestedTree 2014-06-13 12:35:12 +10:00
Sam Georges
05017dc559 listsNested applies orderByNested() automatically to prevent confusion 2014-06-12 14:21:13 +10:00
Sam Georges
8f007d100d Fixes logic error in #233 2014-05-31 10:49:14 +10:00
Peter O
c29a0bb4c8 Add morphTomany and morphedByMany support 2014-05-30 12:13:11 -05:00
Sam Georges
a78908dcc3 Fixes #225 2014-05-29 19:35:46 +10:00
Sam Georges
bfaa55df31 Convert empty string values to NULL, relations cannot be '' 2014-05-28 13:00:31 +10:00
Sam Georges
6aaf4cce43 Form Relation widget now supports a custom name field
Also detects NestedModel behavior listNested()
2014-05-28 12:37:38 +10:00
Sam Georges
71a5dd67ab Welcome to the world, October :-) 2014-05-14 23:24:20 +10:00