Luke Towers
587d0d1993
Typo fix
2017-12-12 10:41:12 -06:00
Luke Towers
d0546599d1
Allow overriding form config in arbitrary contexts
...
This enables arbitrary form contexts to be defined to override the default values when using a form with custom contexts. I.e. `$this->update($id, 'mycustomcontext');` will load the form definition from `mycustomcontext[form]` instead of `update[form]`
2017-12-12 10:39:03 -06:00
Luke Towers
b1d0108227
Improved inline docs
2017-12-02 15:43:57 -06:00
Quezler
cc17b679f1
Code dusting ( #2826 )
...
Code cleaning according to PSR-2 w/ exemptions (mostly dust).
2017-04-24 21:38:19 +10:00
Samuel Georges
330a41f39c
Improve form controller docs
2017-03-23 08:48:26 +11:00
Samuel Georges
b841f9e066
{@inheritDoc} -> @inheritDoc
2017-03-16 06:26:14 +11:00
Samuel Georges
788f109361
Use transactions when saving form models
...
This is a good idea in general to protect the data integrity. There may be some edge cases where transactions are undesirable, if/when we find one, a configuration option should be created to disable this behavior.
Fixes #2431
2016-10-29 11:28:39 +11:00
Luke Towers
b26eeed03c
Enable refresh on form controller requests (correct branch)
...
This adds support for a redirect to the current page (a refresh) to be returned by the form controller. An example use case is adding `data-request-data="refresh:1"` to the save button on an update form. I'm using it for an update form that disables certain fields (including a relationRender partial) based on values submitted on that page. Refreshing the view after saving allows my disabling rules to take effect.
2016-07-27 09:05:12 -06:00
Samuel Georges
0d451eaa78
Be less strict about formExtendModel returning a model
2016-04-28 05:47:14 +10:00
Samuel Georges
0504da41f2
Add hasFields methods
...
formHasOutsideFields, formHasPrimaryTabs + formHasSecondaryTabs
2016-04-23 05:13:08 +10:00
Samuel Georges
6e7fa7de88
Allow CmsObjects to define their own Twig cache key
2016-03-21 13:42:03 +11:00
Samuel Georges
ce202c7951
create_onSave() forgot to extend model
2016-02-23 14:36:00 +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
cd055ad437
Fixes formExtendModel method so it actually works.
...
The extension must occur after the ::find() method, which will return a fresh object. When it occurs before, any changes to the model are lost. Where this may have prior been used to dynamically return a different model, the formCreateModelObject override method should return this value now.
2016-02-10 19:38:35 +11:00
Samuel Georges
933ea641cc
Adds failed jobs table (from docs)
...
Allow closures to be passed to Form|ListController
Tidy up server detail payload
2015-09-23 05:45:55 +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
f0f1c549c9
Use a non logging exception, constructors return void is implied
2015-07-15 16:56:01 +10:00
Samuel Georges
398177b006
Full pivot support added to RelationController
2015-03-19 20:01:08 +11:00
Samuel Georges
a8389fb1aa
Tooltip now auto initializes
...
initForm can now pass context
Various improvements and bug fixes
2015-03-12 20:50:16 +11:00
Samuel Georges
7145aac457
Prepare for CDN, config rename cms.plugins|themes|uploadsDir -> cms.plugins|themes|uploadsPath
...
Deprecate data-trigger-type on triggerapi
Fixes ref to Util class
2015-02-17 20:58:38 +11:00
Samuel Georges
0a6e14f4d2
Popup control now supports several sizes via `data-size` attribute: giant, huge, large, small, tiny.
...
Fixes various bugs in RC version
2015-02-11 14:36:00 +11:00
Samuel Georges
beb818efa5
Merge branch 'develop' into laravel5
...
Conflicts:
modules/cms/classes/CmsCompoundObject.php
modules/system/ServiceProvider.php
2015-02-04 19:35:55 +11:00
Samuel Georges
167d113c12
depends -> dependsOn
...
Hidden fields now retain their container div (hidden when empty)
2015-01-29 20:32:24 +11:00
Samuel Georges
b1b700368f
Radical reorg of some classes
2015-01-28 11:49:54 +11:00
Samuel Georges
3e5d6452fb
Fixes #373 - FormController can now accept different form fields for create,update,preview
2014-12-06 13:48:33 +11:00
Samuel Georges
c485622f5b
FormController is now responsible for purging data from the set (NO_SAVE_DATA)
2014-12-05 16:48:27 +11:00
Samuel Georges
70eb7eaf51
Adds Theme customization feature
...
Adds reset button to settings pages
authorUrl -> homepage
2014-12-04 16:49:52 +11:00
Samuel Georges
7801750767
Adds a way to get the form model after the action has executed
2014-11-19 17:45:23 +11:00
Sam Georges
f458fb7704
Overhaul Form layouts, adds FormTabs.php class for managing tab properties
2014-11-12 07:33:58 +11:00
Sam Georges
c32ba4cbad
Minor code clean
2014-11-04 17:41:48 +11:00
Sam Georges
c83797231d
Subsequent expressions are on a new line (see developer guide > PSR exceptions)
2014-11-01 12:00:45 +11:00
Stefan Talen
61cf1ad710
Merge branch 'develop' of https://github.com/octobercms/october into feature/PSR-2
...
Conflicts:
modules/backend/behaviors/FormController.php
modules/backend/classes/AuthManager.php
modules/backend/lang/fa/lang.php
modules/backend/widgets/Form.php
modules/cms/classes/CmsCompoundObject.php
modules/cms/classes/ComponentHelpers.php
modules/cms/formwidgets/Components.php
2014-10-11 11:58:20 +02:00
Sam Georges
4504d5bf4c
Improve translation handling
2014-10-11 10:37:48 +11:00
Stefan Talen
b01d3e540f
Updating backend/behaviours
2014-10-10 22:34:57 +02:00
Sam Georges
80e7a8507e
Add static helpers extendListColumns + extendFormFields
2014-10-05 15:57:55 +11:00
Sam Georges
bf47eb94ed
Str::getRealClass -> class_basename
2014-09-29 13:12:34 +10:00
Sam Georges
77bc72e0e1
Fixes #590 , parse in all model attribute values when making a redirect
2014-08-29 19:37:38 +10:00
Sam Georges
f6fc9a9e00
YAML properties should be camelCase
2014-08-14 19:32:48 +10:00
Sam Georges
1e8bf5d62b
Make formWidget available to FormController behavior via formGetWidget()
2014-08-03 10:25:19 +10:00
Sam Georges
56d0c3351b
private -> protected
2014-08-01 14:54:16 +10:00
Sam Georges
6388ecef52
private -> protected
2014-08-01 13:58:59 +10:00
Sam Georges
b121e03608
Fixes a bug when editing My Account
2014-07-12 18:45:13 +10:00
Sam Georges
7395dc520a
No longer rely on Model ->push() method, handle it internally (smarter)
...
Add default context to ajax methods.
2014-07-06 12:06:08 +10:00
Sam Georges
d912b73aab
Clean up event parameters to dev standards
2014-07-04 19:14:14 +10:00
Sam Georges
b09b6d6863
Improved naming onReload -> onRefresh
...
Improved Record finder
2014-07-03 18:37:51 +10:00
Sam Georges
3ddddc03bb
Add new form behavior override: formCreateModelObject
2014-06-16 18:00:14 +10:00
Sam Georges
2b820a20d6
Convert all boolean table columnns to use is_ prefix
...
Add email template/layout system
2014-06-06 21:39:20 +10:00
Sam Georges
b47e3587f4
Fixes a bug where singular values of singular relations are not being set
2014-05-28 12:36:45 +10:00
Sam Georges
8dc9bff4ce
Fixes issue with singluar relation settings
2014-05-22 20:40:11 +10:00
Sam Georges
786a833237
Form Controller now pushes values to relations
2014-05-18 15:39:12 +10:00