Luke Towers
a64260c2ff
Merge pull request #2808 from jlongo/master
...
Added support/files for pt_pt language
2017-04-11 01:58:52 -06:00
Samuel Georges
015b34fe88
Block media manager entirely if user lacks access
2017-04-11 08:40:39 +10:00
José Longo
0de1306427
add locale pt-pt in $localeOptions
2017-04-10 15:08:50 +01:00
José Longo
4f3287822b
Add dir/file for pt_pt language
2017-04-10 15:04:58 +01:00
CSNWEB
3cfb8c7587
DRY up the code
2017-04-09 04:01:34 +02:00
Samuel Georges
24c8b4368a
Various security and UI fixes
...
The Media Manager now uses a white list approach to blocking files, we have been advised that the blacklist approach is too fragile and we agree.
Asset List and Media Manager now use $.oc.alert when displaying errors
2017-04-09 08:00:56 +10:00
Christophe Vuagniaux
9e74fe6a53
Repeaters Firefox compatibility fixes ( #2738 )
...
* Repeaters fix Firefox collapse/expand buttons not working
* Repeaters fix Firefox open new tab when CTRL + click on Expand/Collapse buttons
2017-04-08 20:21:34 +10:00
CSNWEB
ee2dd7ac1c
Add readOnly / disabled support for checkboxlist
...
Relations rendered with the relation formwidget using checkboxlist are now correctly rendered like in the previewMode.
2017-04-07 21:04:20 +02:00
Samuel Georges
982bc43348
Fixes recordfinder (again)
...
Lots of complicated stuff going on here, all elements are getting wiped out when a record is updated and the control is getting disposed at the same time. We've created a dedicated variable to store the datalocker name as a string, this represents a small memory leak but a necessary one it seems.
Fixes #2798
2017-04-07 07:48:04 +10:00
Samuel Georges
5daf4365ae
Move the change event to the input element
...
This should bubble to the parent control element and persist any logic that depends on the old event
Fixes #2684
2017-04-06 08:08:50 +10:00
Samuel Georges
328a74c1ff
Fixes JS error in recordfinder
...
It looks like the inheritance of the foundation library has caused a logic error
Refs #2756
Recompile assets
2017-04-06 07:51:04 +10:00
Alwin Drenth
dbd9af3ba0
Update Dutch language for build v409
2017-04-01 15:43:14 +02:00
Luke Towers
d1c9b1a6f1
Support updating existing sidemenus
...
Fixes #2757 , #2777
2017-03-24 09:05:35 -06:00
Samuel Georges
330a41f39c
Improve form controller docs
2017-03-23 08:48:26 +11:00
Samuel Georges
f8e7fa03e0
Refactor remove option implementation
...
Refs #2756
Add disabled support
Fixes #1199
2017-03-22 09:26:05 +11:00
Samuel Georges
e8f6cb4dc5
Merge pull request #2756 from ChVuagniaux/RecordFinder-Remove-button
...
RecordFinder - add a remove button
2017-03-22 09:06:27 +11:00
Samuel Georges
a40357cec9
Added a check for missing dependencies in two places
...
- System dashboard now lists missing dependencies
- Installing a plugin with missing dependencies will also attempt to install those dependencies at the same time
Fixes #36
2017-03-21 17:42:56 +11:00
juysoft
be7490c878
Update _recordfinder_form hard coded button "Cancel" text
2017-03-18 23:54:24 +02:00
Samuel Georges
6697e00649
Backend::URL -> Backend::url
2017-03-16 17:16:03 +11:00
Samuel Georges
0a981a25f7
API docs progress
...
Controller -> SystemController for consistency
2017-03-16 17:08:20 +11:00
Samuel Georges
51ac144049
Moves CMS components to directory where they belong
...
Improve inline docs
2017-03-16 07:00:39 +11:00
Samuel Georges
b841f9e066
{@inheritDoc} -> @inheritDoc
2017-03-16 06:26:14 +11:00
Christophe Vuagniaux
91d39d275c
RecordFinder - add a remove button
2017-03-15 12:33:02 +01:00
Samuel Georges
18c6bb63a2
API docs progress
2017-03-15 18:03:26 +11:00
Samuel Georges
ec18697ae2
Cannot use Cms\Classes\Controller as Controller because the name is already in use
...
Remove test code
2017-03-14 19:42:37 +11:00
Samuel Georges
e54cf7133b
Improve some inline docs in preparation for API docs
2017-03-14 19:36:17 +11:00
Samuel Georges
5f91c45f79
Implement disabled support for some form widgets
...
Recompile assets
Fixes #2749 (Media Finder)
Fixes #2750 (File upload)
Fixes #2751 (Rich Editor)
Refs #2724
2017-03-14 13:52:47 +11:00
Samuel Georges
e7fa4b832a
Rollback 84b533454e
...
See #2749 , #2750 & #2751 on notes for how to better handle this. Put simply, the control of disabled VS previewMode should be given to the individual form widget, as opposed to the spawning parent.
2017-03-14 06:49:33 +11:00
Luke Towers
3876dc61d1
Rollback c836d92f9f
...
Rollback due to discussion on c836d92f9f . Will be looked into again later when addressing #2311 .
2017-03-13 09:36:49 -06:00
Luke Towers
84b533454e
Allow FormWidgets to be disabled like regular FormFields
...
Adds support for the `disabled` property to FormWidgets so that they will match the behaviour present in regular FormFields. Fixes #2724 and a personal annoyance of mine :)
2017-03-11 02:12:47 -06:00
Samuel Georges
d642605f87
Remove old fix and spruce up code
2017-03-04 15:23:12 +11:00
Samuel Georges
380a71d7b9
IE11 will not honor height 100% when overflow is used on the Y axis
...
Fixes #2672
2017-03-04 14:55:19 +11:00
Samuel Georges
bc161b94f7
Menu items are supposed to be counted in 100s
...
Plugin authors may need to adjust their menu items from this.
2017-03-03 08:07:13 +11:00
Szabó Gergő
8cfc10280a
Update Hungarian translation
2017-03-02 13:52:01 +01:00
Samuel Georges
e9cc782120
Peer review #2723
2017-03-01 14:31:37 +11:00
Luke Towers
3aa251db4e
Client side enforcement of repeater maxitems
...
Adds client side enforcement of the max items property of the repeater form widget
2017-02-28 20:43:08 -06:00
Luke Towers
5c56c9579d
Add support for maxItems to the Repeater FormWidget
...
Refs: #2710
2017-02-28 20:36:32 -06:00
Samuel Georges
023f2ac0f5
Push add/remove events to JS
...
Refs #2710 /cc @LukeTowers
2017-03-01 12:40:15 +11:00
Vladimir Kattsov
c73e0ea811
Unhardcoded lang string in active theme widget, add russian translation
2017-02-25 12:05:08 +03:00
Luke Towers
c836d92f9f
Make number field an HTML5 number field
...
Makes the `number` form field actually be an HTML5 `type="number"` field.
2017-02-15 08:44:12 -06:00
Samuel Georges
d9a2b88852
Pass records by reference to overcome halting event issue
...
Refs https://github.com/octobercms/october/pull/1853
2017-02-15 05:58:44 +11:00
Luke Towers
9f3c2b8bf6
Switched backend.list.extendRecords event triggering
...
Made the event triggering for the new backend.list.extendRecords event triggering more consistent with the rest of the class.
2017-02-14 02:20:23 -06:00
Luke Towers
fd3fbf5e52
Merge pull request #1853 from leocavalcante/feature-list-extend-records
...
Make available to extends Lists records
2017-02-14 02:17:16 -06:00
Samuel Georges
8ffc744dc0
Merge branch 'develop' of github.com:octobercms/october into develop
2017-02-08 19:11:57 +11:00
Samuel Georges
13471b4178
Bump froala_editor to v2.4.2
2017-02-08 19:10:24 +11:00
octolit
43391688be
Lithuanian translation for system/lang ( #2648 )
...
* Lithuanian translation for system/lang
* Lithuanian backend translation for cms/lang
* Lithuanian backend translation
Final and complete translation for backend/lang for Lithuanian. Also
added locale option in modules/backend/models/Preference.php for
back-end users to be able to select new locale -> Lietuvių (Lithuanian)
* reset_error translated
2017-02-07 14:56:06 -06:00
Samuel Georges
462c9cd4e8
Introduce theme logging + log settings
...
CmsObject changes can now be tracked (disabled by default)
Request logging is now disabled by default (security vector)
2017-02-08 05:44:04 +11:00
Samuel Georges
4ade0d4952
Minor styling tweak /cc @LukeTowers
2017-02-08 05:44:04 +11:00
Mattias Hamberg
1d31fe3baa
Updated swedish language file
2017-02-03 06:40:28 +11:00
Samuel Georges
0d1fc43212
Add isSelected() helper to form field
...
Fixes an issue where dropdown NULL and 0 are treated as the same
Fixes #2612
2017-02-03 06:35:23 +11:00
Samuel Georges
3365aee129
Halcyon models don't support relations
...
Use a simple fill() approach instead of trying to set nested fields via their relations
Refs https://github.com/rainlab/translate-plugin/issues/216
2017-02-03 06:00:52 +11:00
Luke Towers
749835f73d
Merge pull request #2642 from norotaro/patch-1
...
Update RelationController::onRelationManageUpdate
2017-02-01 15:07:46 -06:00
Samuel Georges
4d4bad4f75
Setup => Installation - Fixes #2569
2017-02-02 07:07:52 +11:00
Samuel Georges
bf17fa44e6
Merge pull request #2610 from lukaszbanas-extremecoding/issue_2609
...
Support deferred binding for single view modes in RelationController
2017-02-02 06:46:09 +11:00
norotaro
2ac4dad4e9
Update RelationController::onRelationManageUpdate
...
As in `onRelationManageCreate()`, `onRelationManageDelete()`, `onRelationManageAdd()`, etc, it needs to return `$this->relationRefresh()` for `relationExtendRefreshResults()` to be executed
2017-02-01 12:14:41 -03:00
Luke Towers
13aef49ebb
Respect custom sort_order column value
...
Adds support to the ReorderController behavior for custom `sort_order` column names.
2017-01-30 19:05:16 -06:00
Luke Towers
8caf3c5d02
Merge pull request #2638 from gabsource/translation-fr
...
Update the french translation
2017-01-30 09:38:28 -06:00
Jérémy Gaulin
09ffbac2ce
New translation keys for french
2017-01-30 15:38:03 +04:00
Szabó Gergő
ebd476e00f
Update the Hungarian translate
2017-01-30 10:07:55 +01:00
Luke Towers
8545c9cdab
Merge pull request #2365 from shellus/master
...
improve zh-cn lang coverage
2017-01-28 16:10:41 -06:00
Luke Towers
a3b98944be
Fix typo in RelationController (original #2460 )
...
Fixes minor typo initially proposed in #2460 , resubmitted here as original author vanished.
2017-01-28 15:47:25 -06:00
Samuel Georges
e7609aa5e8
Improvements to repeater collapsing
...
Removed the expand all, collapse all buttons, they are a bit too bulky so have been replaced with the standard CTRL+click behavior.
Added foundation library to repeater.js
Add "titleFrom" option to specify which input to use for the collapsed title
Styling improvements
Refs #2632 + #2631
2017-01-28 11:59:28 +11:00
Christophe Vuagniaux
4dbe172a43
Repeaters add Expand Collapse buttons see #2631
2017-01-28 11:03:49 +11:00
Aleksey Bobkov
761b03ef16
Merge branch 'develop' of github.com:octobercms/october into develop
2017-01-25 20:16:23 -08:00
Aleksey Bobkov
0d30931045
Minor styling fixes in the table widget. Fixed a bug where empty values in the table widget could be rendered as 'undefined' in Safari.
2017-01-25 20:15:12 -08:00
Samuel Georges
5b5e23bfb8
Minor touch up from #2604
2017-01-26 11:30:26 +11:00
Samuel Georges
5e729f9978
Merge pull request #2604 from dubcanada/patch-1
...
If CMS module is loaded (and MediaManager exists) bind it
2017-01-26 11:27:56 +11:00
Samuel Georges
56ad25ec6f
Remove code deprecations for 2017
...
Recompile assets
2017-01-26 11:26:53 +11:00
Samuel Georges
513a75c87e
Remove data-title from table data
...
This was utilized by an older responsive table implementation, no longer in use
2017-01-26 11:00:23 +11:00
Samuel Georges
0251d1dd83
Merge pull request #2601 from GinoPane/develop
...
Belarusian Localization
2017-01-24 08:17:47 +11:00
lbanas
b6683c2329
issue 2609
2017-01-13 09:59:11 +01:00
Samuel Georges
6b56476f66
Merge pull request #2469 from joseph-d/patch-1
...
Update Filter.php
2017-01-13 06:29:54 +11:00
dubcanada
0a4390b4d9
If CMS module is loaded (and MediaManager exists) bind it
...
I am using OctoberCMS without the CMS module (removed from modules directory and turned off in cms.php) and I am getting an error in the backend regarding missing `MediaManager` class. I wrapped this in a class_exists to check that MediaManager exists before binding it.
Let me know your thoughts.
2017-01-10 13:45:59 -04:00
Sergey Karavay
22d09e50db
Add Belarusian translated language files into backend, cms and system modules.
...
All lines translated.
2017-01-10 08:06:28 +00:00
Sergey Karavay
024ec54051
Merge remote-tracking branch 'upstream/develop' into develop
2017-01-09 20:07:41 +00:00
Samuel Georges
54160d069d
Merge pull request #2597 from LukeTowers/patch-10
...
[bugFix] RelationController manage[title] not respected in Create contexts
2017-01-10 06:08:51 +11:00
Samuel Georges
f9c659343b
Further styling improvements
...
Refs #2575
2017-01-09 08:37:36 +11:00
Samuel Georges
62d7ff9532
Merge pull request #2575 from triasrahman/develop
...
Enhance usability of list pagination.
2017-01-09 07:51:01 +11:00
Samuel Georges
5caf40c4ad
Merge pull request #2593 from gpasztor87/patch-1
...
Fix backendPreferences live update script.
2017-01-09 06:28:30 +11:00
Samuel Georges
5f4945af7c
Merge pull request #2586 from octoberfa/master
...
Update Persian Language
2017-01-08 11:37:57 +11:00
Samuel Georges
f9a8d02172
Merge pull request #2577 from gpasztor87/develop
...
Style fixes on report container and plugin details page.
2017-01-08 11:20:38 +11:00
Samuel Georges
7e7e9720d2
Merge pull request #2582 from tschallacka/ukraine-fix
...
Unescaped quote fix
2017-01-08 10:31:57 +11:00
Marvin
6bdd1c2d9c
Improve French translation ( #2581 )
...
* Fix french translation for login
* Translated new keys for french locales
* Changed french form translation to something more gender neutral
2017-01-08 10:30:43 +11:00
Samuel Georges
c9bb4d396e
Merge pull request #2573 from sw-double/feature/datepicker-year-range
...
Support yearRange property for datepicker form field
2017-01-07 12:10:49 +11:00
Luke Towers
83474c96eb
Make the changes to the _manage_form.htm partial to support custom titles on manage forms in Create contexts
2017-01-06 18:01:33 -06:00
Luke Towers
102831ecc2
Improve RelationController evalManageTitle()
...
Improves the evalManageTitle() method of the RelationController by making it possible to detect being the create manage form, which will enable us to utilize the results of the evalManageTitle in the manage_form partial.
2017-01-06 17:45:58 -06:00
Pásztor Gábor
bb5b20ed94
Fix backendPreferences live update script.
2017-01-05 18:42:03 +01:00
Sajjad
3d3a788076
Update Persian Language
2016-12-30 18:14:53 +03:30
Tschallacka
1c1082fdcd
Also missing closing bracket fix
2016-12-27 23:09:08 +01:00
Tschallacka
c97b68e531
Unescaped quote fix
2016-12-27 23:00:31 +01:00
Sergey Karavay
fe4d593519
Add Belarusian language into preferences, fix translations of languages for all locales.
...
Notes:
Translations for all languages in preferences' drop-down should be written in native language not depending from current locale. As for example, you can take Youtube language settings at the bottom of the screen. And user can choose a language he can actually read.
As all localisation strings go to "en" as a fallback, we can just remove locale translations from all localization files except "en"".
2016-12-23 10:12:56 +00:00
Pásztor Gábor
039a49979a
Style improvements on reportcontainer's manage widget dropdown.
2016-12-21 20:15:07 +01:00
Trias Nur Rahman
897c875fa9
Enhance usability of list pagination.
2016-12-21 21:50:44 +07:00
Konstantin L
15cea23308
Support yearRange property for datepicker field.
2016-12-20 20:21:02 +01:00
Samuel Georges
38b6c51381
Merge pull request #2566 from sw-double/feature/fix-ru-lang
...
Fix ru lang for backend users
2016-12-17 10:16:38 +11:00
Samuel Georges
6af6ebe733
Added config backendForceSecure used to force HTTPS
...
Refs https://security.googleblog.com/2016/09/moving-towards-more-secure-web.html
2016-12-17 10:16:02 +11:00
Konstantin L
d077801ab8
Fix ru lang for backend users.
2016-12-16 18:45:47 +01:00
Samuel Georges
c644f8b66d
Fixes issue where nested columns forcibly hide
...
Eg: "myrelation[attribute]" as a column name would cause the list setup to hide these fields with no ability to bring them back
2016-12-14 19:14:41 +11:00
Meysam
9ab9c87e6a
Fix typo
2016-12-10 06:33:21 +03:30
Samuel Georges
b85c4f9b7b
Improve list tree styling and minor fix
...
Fixes bug with non standard primary key on model when using tree mode
Fixes #2532
Recompile assets
2016-12-10 13:19:32 +11:00
Samuel Georges
0a2b343047
Simplify system events
...
This pipes all event calls through a new EventEmitter trait, which substitutes the October Rain event emitter trait. The view event has been moved to this trait also.
Pass some variables by reference to allow multi-extension.
Fixes #2420
2016-12-10 09:02:06 +11:00
Pásztor Gábor
94ab13cd8b
Fix exception message, remove some unneded imports.
2016-12-07 21:33:05 +01: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
Samuel Georges
fad4d52e79
Merge pull request #2515 from LukeTowers/patch-9
...
Respect whitespace on disabled codeeditors
2016-12-03 08:13:17 +11:00
Samuel Georges
4fa40d342e
Allow export to disable first row as header
2016-12-03 07:36:39 +11:00
Samuel Georges
c31d3a9a96
Merge pull request #2513 from gpasztor87/patch-1
...
Using flexbox on login and reset page.
2016-11-30 07:17:18 +11:00
Samuel Georges
f771887ee5
When refreshing fields, forceFill is a bit too flaky
...
- Using a proxy field would populate a relation with an array of attributes, this is not good or consistent. Instead the FormModelSaver trait is used to bring the behavior in line with FormController and others. This should improve consistency in the behavior and developer expectations.
- The noticeable difference will be that relations and their values are now set by the postback data where possible. In cases where this is undesirable -- eg: updating a relation triggers proxy fields to update with existing values, when they should seed from the relation instead (desire to lose prior changes) -- the formExtendRefreshData controller override can be used to prune the existing values from the dataset, where they will then be seeded from the model as normal.
- Also the $data property is only rebuilt if it differs from the model. Previously it would corrupt the model-based dataset by converting to an array then back to an object. If the two objects are the same, they will be passed by reference and values will replicate this way.
2016-11-30 07:08:12 +11:00
Samuel Georges
85ca7715f2
Add Backend::date shorthand helper
2016-11-30 06:59:50 +11:00
Luke Towers
33c2d1c3bb
Respect whitespace on disabled codeeditors
...
This wraps the contents of a disabled codeeditor field in an `pre` element so that the browser renders it respecting the formatting / whitespace of the contents (code in this widgets case) instead of squishing it all down.
2016-11-28 15:35:00 -06:00
Samuel Georges
b39ebec812
Pass columns to search scope
...
This allows the default search to be applied and combined with any custom constraints
2016-11-29 06:46:52 +11:00
Samuel Georges
f1d746abab
Merge pull request #2507 from oliverpool/patch-1
...
Use the otherKey to update a relation
2016-11-28 08:45:40 +11:00
Samuel Georges
29040b416c
Allow redirect: false on importExportController
...
Implement getFieldName() method
2016-11-28 07:50:06 +11:00
Pásztor Gábor
fc5af0de8f
Fix on mobile view.
2016-11-27 20:48:24 +01:00
Pásztor Gábor
87a68f7bf7
Using flexbox on login and reset page.
2016-11-27 16:29:38 +01: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
35296c5b26
Adds getFieldName helper to FormWidgetBase
...
Refs https://github.com/octobercms/docs/pull/207
2016-11-24 08:59:07 +11:00
Samuel Georges
6bbf496ab2
Simplify code
...
This makes xdebug happy
Refs #2502
2016-11-23 08:11:24 +11:00
Samuel Georges
97b0bc481f
Merge pull request #2496 from LukeTowers/patch-7
...
Pass current model to RelationController view & manage scopes
2016-11-18 08:21:50 +11:00
Luke Towers
05ab8bdb01
Pass current model to RelationController view & manage scopes
...
This improves the extensibility of the relation controller by passing the parent relation model to the query scope that will be applied to both the view and manage options. It allows the use of attributes of the parent relation model in the query scope applied to the relation.
This is a mirror of october/octobercms#2419 , except for the relation controller instead of the record finder widget. If necessary, I can create a case in the test plugin, but if this is simple enough with the added reference to the prior PR to not require a case in the test plugin, that would be simpler for me :)
@daftspunk, let me know what you think.
2016-11-16 12:05:44 -06:00
Samuel Georges
1a41f632bc
Merge pull request #2477 from zerkms/USER_FILTER_SUPERUSER_BOOLEAN
...
[!!!] Fix for postgresql: you cannot compare a boolean column with integers
2016-11-16 07:14:56 +11:00
Ivan Kurnosov
c9ba4c49e6
Fix for postgresql: you cannot compare a boolean column with integers
2016-11-15 16:55:23 +13:00
Samuel Georges
a2a0b207c6
Expose isCodeViewActive API function
...
Recompile JS
2016-11-12 14:12:48 +11:00
Szabó Gergő
d1268c9905
Translate the Page link popup ( #2467 )
...
* Translate the Page link popup
* Remove the unnecessary dot
* Update the import/export Hungarian translation
* Update the Froala Hungarian translation
2016-11-10 07:39:29 +11:00
Samuel Georges
be3bf61a3b
Merge pull request #2470 from acrontum/develop
...
Update DE Lang File
2016-11-10 07:36:05 +11:00
Samuel Georges
a313d4eb5b
Minor fixes
2016-11-10 06:49:45 +11:00
Michael Brode
dc3c2efe6a
Update DE Lang File
2016-11-09 08:36:04 +01:00
joseph-d
af7950b9d0
Update Filter.php
...
There is an addScopes function for extensibility but no way to remove scopes which are already there.
2016-11-08 09:46:27 +00:00
Samuel Georges
46c473e2f2
Fixes fetching multi tiered pivot relation values
...
Refs https://github.com/daftspunk/oc-crm-plugin/issues/3
Minor code clean on select.js
2016-11-08 07:02:31 +11: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
Joseba Juániz
1ee0250441
Dropdown can support either placeholder / emptyOption
...
The difference between a placeholder and an emptyOption is that the placeholder cannot be reselected,whereas the emptyOption can.
Fixes #2450
2016-11-07 08:29:49 +11:00
Samuell1
b320632eb4
Fixes taglist working inside a repeater
...
Fixes #2254
2016-11-07 08:08:48 +11:00
Samuel Georges
50d3ffb035
Halycon models do not declare forceFill
...
Only bind purgeable fallback event once (only needed once)
Refs https://github.com/rainlab/translate-plugin/issues/54#issuecomment-256067096
2016-11-05 10:59:53 +11:00
Samuel Georges
7b0f33e9b3
Adds an isNested flag to Form widget
...
This is useful when a form renders another form inside, specifically the repeater. In these cases the model and data will diverge, and it also provides an opportunity to not apply extension logic to nested form fields.
Fixes #2257
2016-11-05 09:53:23 +11:00
Samuel Georges
348dd85338
Merge pull request #2446 from justin-lau/fix-import-file-path-order
...
Fixing default import template doesn't extract columns from the latest uploaded file.
2016-11-03 07:10:16 +11:00
Samuel Georges
6173ff177b
Typo in variable name
2016-11-02 08:58:07 +11:00
Samuel Georges
0aadcc6675
Merge paths and vars when calling widget handler
...
When an AJAX handler is called for a widget, the view paths and specified variables should be merged in to the controller. This sets the appropriate context:
1) Look at the widget first
2) Fall back to the controller
Fixes #2432
2016-11-02 08:50:15 +11:00
Samuel Georges
ced920e5d2
Exception handling
...
Addresses issue specified in https://github.com/daftspunk/oc-test-plugin/issues/21
2016-11-02 07:21:04 +11:00
Samuel Georges
bc165078de
Removes redundant code
...
The form widget label and widgetDetails() method was intended for use by the Builder plugin, since it ended up using its own internal registration system, this is not used anywhere so is removed.
Refs https://github.com/octobercms/docs/issues/200
2016-11-01 08:15:03 +11:00
Samuel Georges
57b10704ce
Support for overriding list views
...
For consistency, entry partial for controller behaviors should be called "container"
Added addViewPath() method to ViewMaker
Remove "fa" from icon docs (not necessary)
Fixes #2439
2016-10-29 14:10:21 +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
Justin Lau
844d2d1b28
Use `id` instead of `updated_at` for more consistent behavior
2016-10-27 00:31:44 +08:00
Samuel Georges
359461d93e
Styling fix to the welcome widget
...
Add unit test for constraining by pivot data
2016-10-25 07:33:24 +11:00
Justin Lau
325ae4ad08
Return the latest uploaded (updated) file path.
2016-10-25 00:21:18 +08:00
Samuel Georges
ee2dd78b3d
Exception handling for type: relation
...
It would appear many plugins incorrectly use type: relation as a list column, when this does nothing. Previously it would fallback to the text type, now that invalid types fail hard, this adds a softer landing by spamming the trace log instead.
Refs #2438
2016-10-22 04:18:28 +11:00
Samuel Georges
91e7e8b950
List column number type was falling back to text
...
Since custom list column types an exception is thrown for unknowns. This makes number known.
Fixes #2438
2016-10-22 03:10:50 +11:00
Samuel Georges
f9dd5b2f57
Plugins can now define custom list column types
2016-10-21 07:15:08 +11:00
Samuel Georges
88196fb660
Allow passing an explicit format to datepicker
...
Refs #1919
Recompile assets
2016-10-20 08:44:14 +11:00
Samuel Georges
535dc78db1
Pass model as 3rd arg in relation extend overrides
...
Refs #2308
2016-10-19 08:45:43 +11:00
Samuel Georges
f74d95392f
Fix instances where defineProperties returns nothing
...
addPurgeableAttribute -> addPurgeable
2016-10-19 07:21:09 +11:00
Samuel Georges
a449c05809
FormModelSaver now purges fields beginning with underscore
...
This is to align with the native model's fill() behavior, of which this classes' behavior is derived.
Fixes #2422
2016-10-18 08:57:57 +11:00
Samuel Georges
d788b7e03f
Use select2 on touch devices
...
This is a relic from when select2 v3 had no mobile support, we use select2 v4 now that has been tested with mobile/touch devices.
Refs #108
Clean up some white spaces
2016-10-17 08:38:01 +11:00
Samuel Georges
19bab2b472
Merge pull request #2419 from LukeTowers/patch-6
...
Pass current model to record finder scope method
2016-10-15 10:50:54 +11:00
Samuel Georges
259e0c0226
Add support for recordOnClick in relationRender
2016-10-15 10:11:54 +11:00
Samuel Georges
8eafcaa090
Encode extra config to isolate the logic
...
Fixes #2417
2016-10-15 10:10:11 +11:00
Samuel Georges
f18ff0daac
Verify fallback lang actually exists before using it
...
This fixes an error 500 when trying to reference a non-existent language
Fixes #2358
2016-10-13 20:38:15 +11:00
egerheed
590b697574
Updates Norwegian language file for backend ( #2402 )
...
* Updates Norwegian language file for backend
2016-10-13 19:57:54 +11:00
Samuel Georges
733158060e
Fixes indentation
...
Refs #2400
2016-10-13 19:52:37 +11:00
Samuel Georges
5eab7bc365
Handle when editor is not initialized yet
...
https://github.com/rainlab/pages-plugin/issues/197
2016-10-13 05:57:38 +11:00
Luke Towers
567e464550
Pass current model to record finder scope method
...
This improves the extensibility of the record finder form widget by passing the current model to the query scope that will be applied to the records being displayed. It allows the use of attributes of the current model in the query scope applied to the records being displayed as options to select.
In my use case, I have a main Survey model with related Field models. Field models can have parents and children for a tree structure, but I only want fields to have parents and children that are:
**a) Not the main record itself**
**and b) Members of / related to the same Survey model**
By passing the current model to my query scope, I can filter out ineligible records like so:
```
/**
* Limit results to only records that are eligible to be parents of the provided model
*
* @param Query $query
* @param Model $model The model to check for eligible parents agains
* @return Query
*/
public function scopeEligibleParents($query, $model) {
return $query->where('id', '!=', $model->id)
->where('parent_id', '!=', $model->id)
->where('survey_id', '=', $model->survey_id);
}
```
2016-10-11 17:15:40 -06:00
Samuel Georges
de1b85e796
Rich editor content saves when in code view mode
...
Refs https://github.com/rainlab/pages-plugin/issues/193
2016-10-12 06:42:36 +11:00
Samuel Georges
8c91bfe66c
Update froala to latest, recompile assets
2016-10-12 06:33:28 +11:00
Samuel Georges
5746f4dec0
Fixes missing ace vendor path
...
Refs https://github.com/rainlab/pages-plugin/issues/193
2016-10-12 06:13:01 +11:00
Szabó Gergő
d7f1d523f0
Translate some strings ( #2395 )
...
* Translate some strings
2016-10-11 08:29:26 +11:00
Samuel Georges
38c0736164
Merge pull request #2405 from adrenth/feature/dutch-language
...
Update Dutch language
2016-10-11 08:26:59 +11:00
Samuel Georges
19c3c19a00
Added extended useList options, including raw output
2016-10-06 18:44:26 +11:00
Alwin Drenth
48d38a8e11
Update Dutch language
2016-10-03 17:21:55 +02:00
Samuel Georges
fe74fcb8e0
Comma concat all single dimension arrays, for text columns
...
This is useful when the attribute is a basic jsonable store and needs to be in a suitable format for "useList" export mode
2016-09-28 16:31:21 +10:00
Samuel Georges
b3fe8de7fb
Prevent extra config from bleeding to other definitions
2016-09-28 13:26:28 +10:00
Samuel Georges
baefa3e50d
Allow passing arbitrary recordUrl to relationRender
2016-09-27 20:39:29 +10:00
Samuel Georges
0d336151d2
Improvements to data persistence, rework readOnly
...
Fixes #2308
2016-09-27 20:21:32 +10:00
Samuel Georges
1e3f5a22ef
Provides an opportunity to manipulate the field configuration.
...
Refs #2245
2016-09-27 17:00:26 +10:00
Samuel Georges
cd0cd260b5
Make manage[form] config optional
...
There are times when manage form mode just isn't needed. This will make the view[list] unclickable, which is OK
2016-09-27 16:53:46 +10:00
Samuel Georges
0b345ad592
Add 'readOnly' spec to form field
...
Same as disabled except data is still posted back
2016-09-27 16:50:52 +10:00
Mahmut Namli
85e9cb220a
Updated turkish language files for all modules ( #2377 )
...
* Backend lang file updated for turkish
* Cms lang file updated for turkish
* System-client lang file updated for turkish
* System-lang lang file updated for turkish
2016-09-19 18:13:44 +10:00
Samuel Georges
5684cf6385
Merge pull request #2374 from octoberfa/master
...
Update Persian language
2016-09-18 18:00:52 +10:00
Samuel Georges
9b5851fbd5
Improves exception handling for invalid model resolver
...
A more specific error message is now shown when trying to resolve a model from an invalid source (eg: an array)
Fixes #2354
2016-09-18 13:44:13 +10:00
Samuel Georges
cc2973e148
Merge pull request #2275 from Arekusei/develop
...
Added support for Many To Many polymorphic relations.(morphToMany and…
2016-09-18 12:08:57 +10:00
Sajjad
c80675f7b4
Update Persian language
2016-09-16 18:55:31 +04:30
shellus
0643eea4c7
add zh-cn lang
2016-09-14 20:27:12 +08:00
Samuel Georges
2659ae708f
Add doc blocks
2016-09-09 06:16:24 +10:00
linver
a5047e0161
language zh-cn of changes
2016-09-03 13:05:28 +10:00
reg2005
b26fab725a
New translation attachment_url
...
In Russian it will be so more correct
2016-09-03 12:59:02 +10:00
Samuel Georges
6c474bcae9
Move list pagination out of table footer
...
Remove docs on list-unresponsive (removed a while ago)
Add topPartial and sidePartial options to list controller configuration (experimental)
2016-09-03 12:13:38 +10:00
Samuel Georges
600794c891
Fixes anchor button color in report widgets
...
Fixes simple list padding issue
Fixes #2342
2016-09-03 12:09:50 +10:00
Szabó Gergő
da254af4e6
Update the Hungarian translate ( #2334 )
...
* Update the Hungarian translate
2016-09-03 09:44:32 +10:00
Szabó Gergő
749e4c031c
Translate the remove widget dialog ( #2323 )
...
* Translate the remove widget dialog
2016-08-27 09:14:31 +10:00
Samuel Georges
c8d8d4e931
Introduce new Cms helper
...
This is modeled after the Backend helper. Primarily used to generate URLs for the frontend, these are piped through the CmsController action. It would also be a good place to add a hook, if necessary later.
2016-08-20 14:43:49 +10:00
Samuel Georges
7373cf2bfb
Merge pull request #2324 from alxy/patch-13
...
ImportModel didnt respect encoding
2016-08-19 07:30:16 +10:00
Alexander Guth
61823329c8
ImportModel didnt respect encoding
...
In contrast to the preview CSV reader, the actual ``ImportModel`` did not respect any encoding values provided. This leads to bugs with any non utf8-compliant characters. This PR fixes the problem by adding the appropriate encoding filter (copied from the preview reader).
2016-08-18 21:11:21 +02:00
Jack Dark
a6b0d3da7d
Merge remote-tracking branch 'remotes/upstream/develop' into develop
...
# Conflicts:
# modules/backend/behaviors/RelationController.php
2016-08-18 02:02:43 +03:00
Samuel Georges
f670526015
Merge pull request #2320 from gabsource/fix-reorder-key-name
...
Reorder partial should use the model key name attribute to display the ID
2016-08-17 19:57:50 +10:00
Jérémy Gaulin
198230e281
Reorder must use the model `getKey()` method (configurable key name) instead of harcoded `id` property.
2016-08-16 19:36:55 +04:00
Samuel Georges
de4e0e7b14
Merge pull request #2317 from gergo85/patch-1
...
Translated Froala missing keys for Hungarian
2016-08-16 20:13:37 +10:00
Szabó Gergő
813fdef1d1
Translated Froala missing keys for Hungarian
2016-08-16 08:49:20 +02:00
Samuel Georges
5253073f67
Merge pull request #2314 from digital-ronin/develop
...
Fixed Typo
2016-08-16 07:47:17 +10:00
Jérémy Gaulin
66965e7a43
Translated missing keys
2016-08-15 22:25:55 +04:00
Daniel-Bruni Ziermann
64e1095dc2
Fixed Typo
2016-08-15 15:06:55 +02:00
Samuel Georges
b29cb9340a
Merge pull request #2277 from jimcottrell/treeview-scrolling
...
Add scrolling to JS TreeView when dragging sortable elements
2016-08-13 15:32:57 +10:00
Samuel Georges
5c53b10c20
Merge pull request #2295 from gabsource/fix-relation-manage-readonly
...
Propagate the RelationController readOnly option to the viewClickList AJAX action
2016-08-13 15:30:58 +10:00
Samuel Georges
3d69b1d7a5
Add IE edge headers for policies stuck in compat mode
...
Fixes #1859
2016-08-13 15:29:58 +10:00