Commit Graph

334 Commits

Author SHA1 Message Date
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
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 cafe636f58 Merge pull request #807 from nicolas-lescop/patch-6
Permit to display checkBoxes with config file
2014-12-06 09:14:28 +11:00
Samuel Georges fd811bb115 Merge pull request #812 from nicolas-lescop/patch-9
Extend query on relation behavior
2014-12-06 09:03:05 +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
nicolas-lescop d0cc667c8b Extend query on relation behavior
From a relation behavior config file like this

status:
     label: Status
     list: @/plugins/path/to/your/relation/config/columns.yaml
     emptyMessage: backend::lang.list.no_records

You can extend the list query with this method :

relationExtendQuery($query, $field, $manageMode)
{
     if ($field == 'status') $query->where('thing', '=', $this->thing);
}
2014-12-02 15:03:06 +01:00
nicolas-lescop 89cdb3af8b Permit to display checkBoxes with config file
Can be used for those wanting to make a deletable only list.
2014-12-02 11:35:15 +01:00
Dmitriy d8ed49b8cf Update _manage_form.htm
fix form title for update context
2014-11-23 21:59:48 +02: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
nicolas-lescop 03ccead584 Delete all selected related elements and not just the first element 2014-11-14 14:19:08 +01: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 38170d3101 Use popup loading indicator on relationcontroller behavior 2014-11-07 19:38:05 +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
Samuel Georges 0bc63fe8a3 Merge pull request #722 from patrickward/develop
Correction: change $relatedLabel variable to $relationLabel in pivot for...
2014-10-27 19:07:27 +11:00
Patrick Ward 90313deb53 Correction: change $relatedLabel variable to $relationLabel in pivot form. 2014-10-24 15:07:42 -04:00
Sam Georges 49982b51ed Clean up code, add listExtendColumns override 2014-10-24 17:15:34 +11:00
Stefan Talen 347dff7e75 Merge branch 'develop' of https://github.com/octobercms/october into feature/PSR-2
Conflicts:
	modules/backend/behaviors/RelationController.php
	modules/backend/classes/WidgetManager.php
	modules/cms/classes/CmsCompoundObject.php
	modules/cms/twig/Extension.php
	modules/cms/twig/PlaceholderNode.php
	modules/cms/widgets/TemplateList.php
2014-10-18 11:07:17 +02:00
Sam Georges df98ae9196 Use getQualifiedKeyName when finding existing IDs 2014-10-17 08:15:16 +11:00
Samuel Georges c48e10cbf5 Merge pull request #701 from karnold/develop
when building belongsToMany relationships in controllers, the lack of a ...
2014-10-17 08:13:19 +11:00
Kris Arnold c75df3a120 when building belongsToMany relationships in controllers, the lack of a table name
alias causes an sql ambigious Id error
2014-10-16 14:28:36 -05:00
Stefan Talen 06890d711a Merge branch 'develop' of https://github.com/octobercms/october into feature/PSR-2
Conflicts:
	modules/backend/behaviors/UserPreferencesModel.php
	modules/cms/classes/Controller.php
	modules/system/classes/CombineAssets.php
2014-10-16 18:44:18 +02:00
Sam Georges fbaab26bfb Improve efficiency in settings model behavior 2014-10-16 19:49:28 +11:00
Sam Georges 9f5646d273 BackendSettings -> BrandSettings
pageTitle is now translated at the end of the line
Fixed unit tests so they pass
SettingsModels are now cached
2014-10-15 19:53:44 +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 dd5a46d815 Refs #599 - Adds method to get the list widget object from the controller 2014-10-11 18:06:14 +11: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 f542254403 Minor 2014-10-07 18:26:42 +11: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 04462f5b4c The manage form should not share its session key with the parent 2014-09-17 09:46:48 +10:00
Sam Georges 001a9f92ff Fixes manage form so widgets fileupload can work correctly inside 2014-09-16 17:40:06 +10:00
Sam Georges 347e25babc Add search capability to manage mode (lists) 2014-09-06 13:18:55 +10:00
Sam Georges c916c40fc2 Add search support to the view mode 2014-09-06 12:51:39 +10:00
Sam Georges fe3f0bd34e More silly logic errors 2014-09-06 12:11:42 +10:00
Sam Georges 2460e54028 Update changelog, move relation config under view/manage array respectively 2014-09-06 12:09:00 +10:00
Sam Georges 31447df5d4 Minor bug - this should be getKeyName 2014-09-06 11:45:19 +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 3b41b3e81f Finish up basic Filter implementation 2014-08-13 21:23:19 +10:00
Sam Georges a5d67bee27 Escape all the translated strings 2014-08-13 08:01:18 +10:00
Paul Wilde a3c94d6355 Escape unescaped translations. Add trans() function during output for the Balloon and Widget Selector. 2014-08-12 21:46:19 +01:00
Paul Wilde e0d9b1bb22 Fix argument name. 2014-08-12 01:21:09 +01:00
Paul Wilde 1d038d3173 More translation strings. 2014-08-12 01:15:38 +01:00
Sam Georges f1849c2ea0 Refs #5 - Progress to Filter widget 2014-08-11 21:46:29 +10:00
Sam Georges f21eaf05a3 Minor 2014-08-07 20:42:39 +10:00
felix 7fd9e267a9 add Translation to backend
switch
relation create_button
relation add_button
2014-08-07 12:58:17 +04:00
Sam Georges a1998e4348 Fixes #500 - Handle custom related key names, don't use session keys for existing parent models 2014-08-05 17:40:49 +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 3c1e6ea846 Fixes #481 - Native widget handlers should still initialize 2014-07-29 19:22:18 +10:00
Sam Georges e09c74b11e Align UserPreferencesModel with SettingsModel 2014-07-17 10:29:15 +10:00
Sam Georges f7f81822ec Fixes #420 - forceSave() not always available 2014-07-13 15:52:14 +10:00
Sam Georges b121e03608 Fixes a bug when editing My Account 2014-07-12 18:45:13 +10:00
Sam Georges 3e2755f297 Fix to UserPreferencesModel.php 2014-07-12 18:33:50 +10:00
Sam Georges a19cd6f76b For Kerensky 2014-07-11 22:24:43 +10:00
Sam Georges 3e1932e7ff Minor 2014-07-11 18:52:48 +10:00
Sam Georges 1d4d4c0899 Bugfix to relation controller now allowing multiple relations in the same instance 2014-07-11 18:51:01 +10:00
Sam Georges ca529d19d4 Use fully qualified primary key name 2014-07-07 19:50:07 +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 1221faae62 Session key fix to relation manager
My Settings context now uses correct breadcrumb
2014-07-02 20:49:45 +10:00
Sam Georges ddb6337efe EditorSettings -> EditorPreferences (System has settings, User has preferences, App has configuration)
Create a My Settings page, now linked when clicking a User
Create backend preferences form for setting locale
Dropdown options now support an image or icon in their options
2014-07-01 17:17:53 +10:00
Sam Georges 3a275216e2 Add styles and readonly mode to relation controller 2014-06-30 17:01:53 +10:00
Sam Georges ca30c3cef0 Fixes minor bug 2014-06-24 18:53:05 +10:00
Sam Georges 24f7e3eda4 Allow override of relation partials 2014-06-20 21:36:44 +10:00
Sam Georges 8961906459 Add sessionKey support to RelationController.php 2014-06-20 20:57:51 +10:00
Sam Georges d2eb4e2141 Add noRecordsMessage to RelationController behavior 2014-06-20 19:30:20 +10:00
Sam Georges 3ddddc03bb Add new form behavior override: formCreateModelObject 2014-06-16 18:00:14 +10:00
Sam Georges 8b9eb52afd Fixes #255 - Adds a code editor settings page
Email layouts now work
Form fields now support context in their names
2014-06-10 19:30:06 +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 d229fb287e Fixes #216 - hasMany related models can now be deleted 2014-05-28 22:07:00 +10:00
Sam Georges dbc4043a90 Refs #216 - hasMany related model can now be updated 2014-05-28 21:58:39 +10:00
Sam Georges 728de3ba18 Add listRefresh() method, add table row colors 2014-05-28 21:34:54 +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 9e2a76d821 Add core build tag to core assets 2014-05-24 16:57:38 +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
Pascal Borreli 459c8e0cfa Fixed typos 2014-05-17 18:08:01 +02:00
Sam Georges bdff075058 Improve event emitter trait 2014-05-15 17:23:46 +10:00
Sam Georges 71a5dd67ab Welcome to the world, October :-) 2014-05-14 23:24:20 +10:00