Jérémy Gaulin
3556fe2869
Fix class name used on stream_filter_register to match the refactored class name.
2016-05-21 22:35:29 +02: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
e52fa7bd33
Compat with CSV v8
2016-04-28 06:39:35 +10: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
abaa65cc0e
Cut back the design
...
Switch to hard lines
2016-04-22 08:21:08 +10:00
Samuel Georges
51bef96db9
More styling changes and other minor improvements
2016-04-21 04:52:21 +10:00
Samuel Georges
bff35e5f1a
Lists can now define search scope or mode (see docs)
2016-04-19 19:54:22 +10:00
Samuel Georges
a548d6ee56
Merge remote-tracking branch 'remotes/origin/stable' into develop
...
Conflicts:
modules/backend/lang/en/lang.php
modules/backend/lang/fr/lang.php
2016-04-01 13:00:32 +11: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
6f6a3cc78c
Merge pull request #1855 from gabsource/enchancement/import-export-french-translation
...
French translations for import/export errors strings
2016-03-26 12:38:42 +11:00
Samuel Georges
a585fe3316
Share pivot|list title logic
...
We already had a key for this... spooky!
Refs #1755
2016-03-25 14:24:38 +11:00
Samuel Georges
e19ae42e45
(Rollback) Keep instances to themselves
2016-03-25 14:17:13 +11:00
Samuel Georges
762c5e754b
Switch the manage popup title according to the button pressed
...
Fixes #1755
2016-03-25 14:03:11 +11:00
Samuel Georges
6e7fa7de88
Allow CmsObjects to define their own Twig cache key
2016-03-21 13:42:03 +11:00
Jérémy Gaulin
8debdf023a
Externalized import/export errors strings + french translation
2016-03-20 22:22:36 +01:00
leocavalcante
f5f7ed08e4
Make available to extends Lists records
2016-03-18 21:05:23 -03:00
Samuel Georges
d76863a3ec
Merge branch 'develop' into stable
...
Conflicts:
composer.json
2016-02-27 14:55:52 +11:00
Samuel Georges
fa61ef2df9
Fortify index_onDelete a little more
...
Refs #1805
2016-02-27 13:58:59 +11:00
Pásztor Gábor
984674d987
Missing return
2016-02-25 07:44:02 +01:00
Pásztor Gábor
c17e9b0e33
Add index_onDelete method to ListController behavior.
2016-02-25 07:42:07 +01:00
Samuel Georges
ce202c7951
create_onSave() forgot to extend model
2016-02-23 14:36:00 +11:00
Samuel Georges
95f4be8b68
Include user id in cache key
...
Fixes #1740
2016-02-20 09:39:18 +11:00
Samuel Georges
2e819f0142
Remove deprecated method
2016-02-20 08:19:14 +11:00
Samuel Georges
3ee2ec86f8
Allow toolbarButtons: false
2016-02-15 17:58:59 +11:00
Samuel Georges
e0fc27b0cb
Refs #1727 - Tabs to spaces
2016-02-13 15:47:34 +11:00
Samuel Georges
7d3a73cd31
Merge pull request #1727 from tschallacka/fix_for_static_primary_key_naming_relationcontroller
...
Fix for static primary key naming relationcontroller
2016-02-13 15:46:07 +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
6562170d2a
Merge pull request #1719 from alxy/patch-12
...
Fix doubble-applied filters
2016-02-13 13:56:39 +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
Aaron
0c4c39fddb
Add morphic relations to backend
2016-02-01 14:53:53 +10:00
tschallacka
e4b0c0fe27
Fixed static id naming primary key
...
RelationController forced belongs to relations to have a primary key named id.
If primary key was named differently it wouldn't register the onclick.
This fixes that by taking the primary key name from the model.
2016-01-26 14:17:18 +01:00
Alexander Guth
17e0a2afa7
Fix doubble-applied filters
2016-01-23 17:57:08 +01:00
Pásztor Gábor
c678cc1988
Remove unneded imports from ListController behavior
2016-01-15 09:12:26 +01:00
Samuel Georges
01b2d0d186
Add relation-inset class, fixes relation-flush
2015-12-19 09:53:12 +11:00
myst6re
55bceba32c
Commit deferred data when creating/updating a pivot table.
2015-12-12 11:44:59 +11:00
Vojta Svoboda
0b6aa8750c
Update fields_export.yaml
2015-11-11 16:08:50 +01:00
Samuel Georges
56f66ada53
Revert indentation from #1545
2015-10-31 17:22:48 +11:00
Samuel Georges
3b885ade56
Merge pull request #1545 from keiosweb/develop
...
translation strings in import-export behaviour and polish translations
2015-10-31 17:09:15 +11:00
Samuel Georges
c30b34e4d9
In special cases, has one/many will require a foreign key set
...
For example: to pass any constraints imposed by the database
This new logic emulates the "create" method on the relation object
Fixes #1541
2015-10-31 16:40:16 +11:00
Kuba
031b9cdbe6
translation strings in import-export behaviour and polish translations
2015-10-21 19:47:57 +02:00
Samuel Georges
5c294b78bd
Add support to extend query on 'nested' sortMode - refs #1519
...
Recompile assets, minor cleanup
2015-10-17 12:44:16 +11:00
Jofry
f0b4691168
Allow extend query on reorder controller, on 'simple' sortMode
2015-10-17 12:36:46 +11:00
Samuel Georges
af657e9399
Fixes #1042 - remove fillable constraint on models when saving
...
Form fields are already constrained by their fields.yaml definition (values not defined in the yaml will not be saved) so we don't need to double dip by enforcing fillable too.
2015-10-17 11:41:40 +11:00
Samuel Georges
e285b2f870
Merge pull request #1473 from alxy/patch-7
...
Missing use statement
2015-09-30 05:31:44 +10:00
Alexander Guth
00998f93ca
Missing use statement
2015-09-29 14:09:23 +02:00
Samuel Georges
dd6e0a3836
Persist the search term across AJAX requests only
...
Fixes #1448
2015-09-28 10:52:24 +10:00
Samuel Georges
d4ce89e9ba
Fixes relation render onclick in list view to obey $model->primaryKey value
...
Fixes #1454
2015-09-28 10:12:06 +10: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
e8b4bf9d72
If the pivot model fails for some reason, abort the sync
...
Refs #1408
2015-09-12 07:53:33 +10:00
Samuel Georges
1d5caee2d9
Merge pull request #1408 from mplodowski/fix-1407
...
Fix #1407
2015-09-12 07:42:38 +10:00
Michał Płodowski
e388c18369
Added focus on search field when pivot popup opens.
2015-08-31 20:21:50 +02:00
Michał Płodowski
37f7c1d62e
Fix #1407
2015-08-31 20:19:58 +02:00
Samuel Georges
8a28ce4e5f
Fixes protection level bug
2015-08-31 17:19:25 +10:00
Samuel Georges
ee38c72f04
Protected properties were once [incorrectly] available
2015-08-29 20:12:55 +10:00
Samuel Georges
e3e8fb35c7
Allow the model attribute name to be specified from config
2015-08-22 16:39:09 +10:00
Samuel Georges
6d1673c4b3
Introduce ReorderController for reordering of model records - Fixes #943
2015-08-22 16:33:00 +10:00
Samuel Georges
241ea68468
Add auto column match feature to import
2015-08-05 10:23:14 +10:00
Samuel Georges
9ecf75307b
Add exception handling and permissions definition
2015-08-04 20:04:11 +10:00
Samuel Georges
52fa1b4f66
Relation create for belongsTo support deferring - refs #1329
2015-08-01 13:03:30 +10:00
Samuel Georges
ce4636d59a
Add support for deferred binding for belongsTo relations - Refs #1329
2015-08-01 11:34:22 +10:00
Samuel Georges
fdbd5d8b3c
Update redactor to latest, minor cleanup
2015-07-29 19:17:05 +10:00
Samuel Georges
dbac4809f6
Resurrect the list export feature - fixes #1313
2015-07-27 08:50:26 +10:00
Samuel Georges
f715fa4228
Grants an opportunity to manipulate the primary widgets
2015-07-25 14:48:17 +10:00
Samuel Georges
ccb28a2cfe
The RelationController::relationExtendQuery method should be removed when scopes are respected - a relation scope is an extension of the query #1203
2015-07-25 14:28:33 +10:00
Samuel Georges
fc62ca7c7f
Event is supposed to come *after* default constraints
2015-07-25 14:22:31 +10:00
Samuel Georges
3866ccbb20
This really shouldn't be here
2015-07-25 14:19:34 +10:00
Samuel Georges
502263e11b
Finishing import/export redirects to the defined url
2015-07-25 09:21:43 +10:00
Samuel Georges
46bfa78cef
Remove export function from List behavior
2015-07-23 19:44:30 +10:00
Samuel Georges
d0742653d1
Implement exporting function modeled after import function
2015-07-23 19:44:19 +10:00
Samuel Georges
5be21f6231
Allows custom options to be specified via form fields
2015-07-22 18:30:50 +10:00
Samuel Georges
a22dd43cad
Merge branch 'develop' into importexport
2015-07-22 08:07:13 +10:00
Samuel Georges
52ea4a73c8
Performance improvements, rename scopes to standard
2015-07-21 20:46:35 +10:00
Samuel Georges
a9899ae3c1
Finish basic import workflow
2015-07-21 20:45:02 +10:00
Samuel Georges
5a40c54f3c
Add required fields + validation step, headers checkbox can be toggled
2015-07-21 07:56:55 +10:00
Samuel Georges
e878291fb6
Minor
2015-07-18 17:30:59 +10:00
Samuel Georges
be28c8e296
More explicit naming here
2015-07-18 17:09:15 +10:00
Samuel Georges
5e741c4c39
onImport stub
2015-07-18 17:06:09 +10:00
Samuel Georges
9eaaa850cc
Implement column dropping styles and data manipulation
2015-07-18 17:03:16 +10:00
Samuel Georges
6ca400ca67
Import logic is getting large, give it space
2015-07-18 16:40:40 +10:00
Samuel Georges
9b249bad5b
Add the ability to hide/show columns
2015-07-18 16:36:33 +10:00
Samuel Georges
f445b9c4ce
Implement column data sample popup
2015-07-18 16:15:17 +10:00
Samuel Georges
4c54b53da6
Improve styles, add some pretty icons
2015-07-18 15:39:49 +10:00
Samuel Georges
142c8f7193
Finally get the column sorting working
2015-07-18 14:36:15 +10:00
Samuel Georges
c7aef3c58c
Add logic to extract column headers from file
...
Move import columns to their own partials
2015-07-18 12:48:03 +10:00
Samuel Georges
694ab4a08b
Refactor and rename
2015-07-18 10:27:54 +10:00
Samuel Georges
068a977c1f
Simplify approach by using Form Widget
2015-07-18 08:51:26 +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
5ca55e149a
Create ImportModel base class, implement import_file uploader
2015-07-16 22:15:30 +10:00
Samuel Georges
e25a4de8fa
Clean up css a bit, add scratch for upload process
2015-07-16 18:19:10 +10:00
Samuel Georges
ad50343dee
Improve styles
2015-07-15 20:39:12 +10:00
Samuel Georges
334bf8db3c
Initial outlay of ImportExportController
2015-07-15 19:35:31 +10:00
Samuel Georges
f0f1c549c9
Use a non logging exception, constructors return void is implied
2015-07-15 16:56:01 +10:00
Vojta Svoboda
9217d730c8
Set more CSV parameters
2015-07-06 16:34:42 +02:00
Samuel Georges
f85493e333
Don't use Deferred Binding if it is disabled
2015-07-04 13:42:37 +10:00
Samuel Georges
f4efcb455e
Use fill()+save() instead of save()
2015-06-27 14:32:52 +10:00
Samuel Georges
ddff853e10
Restyle relation controller to use more minimalist design
2015-06-09 18:48:47 +10:00
Alvaro Cánepa
03be3c3d77
Fix translation title on popup
2015-05-29 08:31:50 -03:00
Alvaro Cánepa
67e194231d
Fix translation title on popup
2015-05-29 08:29:58 -03:00
Alvaro Cánepa
061fe89d5a
Fix translation title on popup
2015-05-29 08:19:38 -03:00
Samuel Georges
b2e5d24e9d
Fixes pivot model add with showCheckboxes enabled
2015-04-29 08:01:28 +10:00
Samuel Georges
8859723f35
Fixes #1062 - Subsequent popups are passed _relation* fields
...
Note in future: The bindToPopups() function could/should be made recursive
2015-04-11 12:23:49 +10:00
plexnum
a20712b73c
fix related model update when deferred binding
2015-04-09 07:28:01 +03:00
Samuel Georges
13b14729fd
Don't allow a record to be clicked if there is no form to display
2015-04-06 16:57:53 +10:00
Samuel Georges
264cb0119d
recordUrl should be taking priority over the default onClick behavior
2015-03-31 09:57:44 +11:00
Samuel Georges
a8bcc6aab8
Allow pivot data to be entered when creating
2015-03-30 18:41:25 +11:00
Samuel Georges
c4027b8bc6
Added a defaultFrom option to form fields
...
Default context of manage and pivot forms is now create and update respectively, instead of the old value relation
2015-03-28 16:14:22 +11:00
Samuel Georges
3eede4a7b7
Reorganise and improve RelationController
...
Fix bug in DataTable limited to 10 records
2015-03-27 22:20:52 +11:00
Samuel Georges
f64497c5f3
Minor bug fix blocking new config approach
2015-03-26 19:05:07 +11:00
Samuel Georges
398177b006
Full pivot support added to RelationController
2015-03-19 20:01:08 +11:00
Samuel Georges
a1ac5edbf7
Various minor fixes and improvements
2015-03-18 19:28:14 +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
Ariel Ponce
ff4e221c6a
Fix relation controller JS issue on Chrome
...
When loading a relation, an "Uncaught token :" javascript error is thrown when using Chrome, which makes the select all checkbox not to work and most of the JS on the page to fail.
2015-03-10 09:50:12 +01:00
Samuel Georges
858eb96a81
Update league/csv package to v7
2015-03-07 08:42:53 +11:00
Samuel Georges
625030f03e
Minor
2015-02-28 23:43:06 +11:00
Samuel Georges
ce77c0f89e
Return a query that includes pivot data for belongsToMany relations
2015-02-28 22:08:25 +11:00
Samuel Georges
f2277b61dc
More efficient approach to locating a pivot record
2015-02-28 19:53:41 +11:00
Samuel Georges
e48963b1e9
Improve mode detection for relations by using an event target
2015-02-28 19:33:11 +11:00
Samuel Georges
032d8aafce
Manage onCreate now looks to the deferredBinding property
2015-02-28 15:27:03 +11:00
Alexander Guth
cd5e5ab8de
Fixes listExportCsv()
...
If the header values is a localization string, it should be translated...
2015-02-27 14:55:14 +01:00
Samuel Georges
5c78140268
Adds compact column, explicit option for deferred binding in relation controller, fix to list head width
2015-02-27 21:54:58 +11:00
Samuel Georges
93f48d87ea
Minor fix
2015-02-19 22:17:07 +11:00
Samuel Georges
c7881ff2dc
Tidy up code from #940
2015-02-19 19:38:50 +11:00
Samuel Georges
8d0d46ffc7
Merge pull request #940 from Flynsarmy/customRelationContext
...
Support passing custom contexts to relationcontroller
2015-02-19 19:24:41 +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
flynsarmy
8768ec64d6
Fix order
2015-02-11 10:17:41 +10:00
flynsarmy
40ebb9bfa2
Support passing custom contexts to relationcontroller
2015-02-11 09:53:21 +10:00
Samuel Georges
0fc489c7cb
Fixes for Paginator / setCurrentPage
...
remember() now works
2015-02-07 10:24:28 +11:00
Samuel Georges
03eb949e71
Add illuminate/html package, DB -> Db, HTML -> Html
2015-02-04 20:03:44 +11:00
Samuel Georges
899100919d
Rewrite all implementations of remember() on models
2015-02-04 19:52:59 +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
7c1de4f728
Add export action to ListController behavior
2015-01-27 20:02:20 +11:00
Samuel Georges
ceae799152
Translate fix
2015-01-25 13:47:32 +11:00
Samuel Georges
228982ed0f
Minor
2015-01-25 13:37:03 +11:00
Samuel Georges
ff415a8542
Tidy up
2015-01-25 13:10:17 +11:00
Samuel Georges
e4d4a29bdd
withDeferred() will add constraints for us
2015-01-25 13:02:28 +11:00
Samuel Georges
b58666b4a0
Massive improvements to RelationController, most button types are available
2015-01-25 13:02:06 +11:00
Samuel Georges
25835e5f55
Implement belongsTo RelationController type
2015-01-21 20:53:19 +11:00
Samuel Georges
39daf773bc
Implement hasOne RelationController type
2015-01-21 19:47:38 +11:00
Samuel Georges
59c9146b4f
Merge pull request #861 from gergo85/master
...
Cleanup
2015-01-05 09:21:09 +11:00
gergo85
f0005d196b
Cleanup
...
Remove whitespaces.
2015-01-03 12:41:23 +01:00
Samuel Georges
4852722ba1
Merge pull request #848 from nicolas-lescop/develop
...
Extend query of the filter options lists
2015-01-03 15:58:34 +11:00
Nicolas Lescop
99d34789a4
Extend query of the filter options lists
2014-12-23 14:57:28 +01:00
Carlos Arroyo
90d5bde28c
When building a relationship Belongs to Many with Pivot Data the lack of a table name causes an sql ambiguous ID error.
2014-12-17 19:14:21 +11:00
Samuel Georges
ea34622840
Clicking a record in readOnly mode will open the manage form in preview mode
...
Use "recordOnClick: null" to retain the original behavior
2014-12-06 15:46:02 +11:00
Samuel Georges
906d97dce4
Add new options to RelationController (view mode): recordUrl, recordOnClick, toolbarButtons
2014-12-06 15:32:20 +11:00