Sajjad Servatjoo
708b1e3a75
Update Persian Language ( #3396 )
...
Credit to @sajjad-ser
2018-02-13 10:55:06 -06:00
Luke Towers
9840ff228f
Support absolute redirects in the formcontroller
...
Supports absolute redirects being used in the FormController behaviour.
If the form_config.yaml specifies
```twig
create:
redirect: https://api.example.com/oauth/authorize
```
Then the behaviour will now properly redirect the user to the URL provided where previously it would redirect to a url along the lines of `october.example.com/backend/https://api.example.com/oauth/authorize `. Relative backend redirect URLs are unchanged.
2018-02-06 14:42:24 -06:00
Luke Towers
a916d99de4
Prevent indexing of backend login page
...
Refs: 77ae173c24
2018-02-02 15:00:49 -06:00
Luke Towers
77ae173c24
Prevent indexing of backend pages
...
Fixes #3380
2018-02-02 13:35:59 -06:00
Luke Towers
8cb57cf353
Add useRelationCount column property
...
Adds the `useRelationCount` property to tell the list controller to use the number of related records for the specified `relation` as the value for that column.
2018-01-25 16:54:06 -06:00
Ramin Firooz
3c50849eb7
Update Persian Translation ( #3367 )
...
Credit to @EleRam
2018-01-21 09:35:02 -06:00
Samuel Georges
45f1714a03
Added key mode to taglist form widget
...
Alternative implementation #2958
Fixes #2958
2018-01-13 20:49:31 +11:00
Samuel Georges
6ff6ab2996
Convert strings to ::class
2018-01-13 14:40:44 +11:00
Szabó Gergő
0256ebc966
Add role filter to administrators ( #3350 )
...
Credit to @gergo85
2018-01-10 10:18:19 -06:00
Flakerim Ismani
55ff460895
Added colorpicker column type ( #3338 )
...
Renders 30px by 30px square of the selected colour. `type: colorpicker` in the columns config. Credit to @flakerimi
2018-01-04 12:54:30 -06:00
tim0991
0783126249
Better check for default deletion redirect ( #3324 )
...
Adds a better check for the default redirect option.
2018-01-01 19:39:25 -06:00
Alexander Guth
1389f77390
Fix 'illegal string offset' warning ( #3331 )
...
Credit to @alxy
In case a new administrator is created by a non-superuser and no permission is set directly on creation, `permissions` is not initialized correctly. Thus, when the non-superuser tries to acceess `$this->model->permissions` it is not populated with an empty array as expected.
I have actually no clue why it does work for superusers however, as they should certainly experience the same issue, but this is not the case.
2017-12-31 11:03:07 -06:00
Luke Towers
69e56b0b5b
Fixes #3315
...
Fixes #3315 by moving the manipulation of the filter widget scopes to the controller event method instead of before any part of the controller constructor method is run.
2017-12-28 13:21:00 -06:00
Jim Cottrell
0d0be9d0e5
Trigger fileupload form field change on file removal ( #3319 )
...
Credit to @jimcottrell
2017-12-22 15:33:21 -06:00
Miro Rauhala
1d3828c36e
Bring Finnish language up to date ( #3316 )
...
Credit to @mirorauhala
2017-12-21 11:16:01 -06:00
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
Samuel Georges
b9581332aa
Save relations first in model saver
...
This aligns better with the relation principal "parent saves child" / "child cannot save parent" and is more conducive to the natural workflow of a coder, ie
// Relation first
$gallery = new Gallery;
$gallery->save();
// Primary model last
$post = new Post;
$post->gallery = $gallery;
$post->save();
Refs https://github.com/octobercms/library/pull/277
2017-12-06 21:21:19 +11:00
Samuel Georges
2036823eee
Removes non functional buttons in pivot mode
...
Refs https://github.com/daftspunk/oc-test-plugin/issues/28
2017-12-06 17:19:37 +11:00
Pásztor Gábor
da9369bb14
Fix deprecated calls. ( #3283 )
...
Credit to @gpasztor87
2017-12-04 06:13:27 -06:00
Luke Towers
b1d0108227
Improved inline docs
2017-12-02 15:43:57 -06:00
Steve Mortimer
7c20e32c47
Allow non-superusers with manage_users to set permissions back to inherit
...
Fixes #3274
2017-11-30 15:01:43 -06:00
TimFoerster
b59c86cc48
Change incorrect default CSS classes for table styles ( #3270 )
...
Credit to @TimFoerster for spotting this
2017-11-28 20:46:30 -06:00
Luke Towers
2b6f4a0084
Properly support iconSvg in backend side nav menus
2017-11-22 17:23:01 -06:00
Samuel Georges
0b68668d14
Adds a constraint of 500 records at a time
...
Example given with 5000 records cripples the filter, this cap will keep it usable until we develop a better solution.
Refs #3202
2017-11-23 10:00:50 +11:00
Luke Towers
15314bbe94
Updating base widget inline documentation
2017-11-22 14:10:04 -06:00
Luke Towers
f850b5d7ca
Removes unnecessary blocking head placeholders. Refs: https://github.com/rainlab/pages-plugin/issues/239
2017-11-15 20:26:48 -06:00
Miro Rauhala
da295a83df
Add Finnish language ( #3237 )
...
Credit to @mirorauhala
2017-11-11 18:36:55 -06:00
tim0991
579803d7a6
Update mediamanager JS file path in october.js ( #3224 )
...
Updates the mediamanager.js file path in october.js to fix compiling assets. Credit to @tim0991
2017-11-08 09:30:09 -06:00
Christophe Vuagniaux
cbcdd76ff2
Add filter of type text in backend list ( #3094 )
...
Fixes #3048 , credit to @ChVuagniaux
2017-11-06 12:07:53 -06:00
Samuel Georges
712dcf9412
Use alias instead of leading slash
...
Refs d292eeb85e
2017-11-03 07:57:33 +11:00
Luke Towers
014bac1232
Simplify 51b6f64418
...
Simplifies 51b6f64418 by using the pre-existing HTML array name parsing functionality.
2017-11-02 13:13:08 -06:00
Luke Towers
51b6f64418
Convert field name to dot syntax before checking validation rules
...
Converts a field name in the form of `model_json_attribute[subproperty]` to the dot syntax version used by validation rules `model_json_attribute.subproperty` for more accurate checking of the validation rules in the form widget.
2017-11-02 12:35:50 -06:00
Samuel Georges
e6de2a5521
Fixes exception on empty token
2017-11-02 19:53:20 +11:00
Luke Towers
d164145229
Fixes #2613
...
This fixes #2613 by reloading the form widgets with the modified data after `model.filterFields`. **NOTE**: `$this->processExistingItems()` isn't simply just moved to `prepareVars()` because that messes up the adding new repeater item functionality by repeating the content from the fields for the last item in that group that already exists on the repeater.
2017-11-01 14:18:41 -06:00
Luke Towers
c7a3354dfd
Move backend.page.beforeDisplay after auth check
...
Fixes #3215 . Related: 47cd204686 (diff-6cdbb280344f40eebe758cf8e8e5f7d9)
2017-10-31 08:45:11 -06:00
arifnyet
eb0e5c74c1
Support default config option for list filters ( #3201 )
...
Fixes #2329
2017-10-26 11:12:02 -06:00
Fl0Cri
ec8dd56121
Fix richeditor popup z-index inside modal ( #3194 )
...
Fixes #3098 . Related: #3111 , #3113 , #3114
2017-10-24 12:35:31 -06:00
Christophe Vuagniaux
dc16902fca
Don't block backend connection when a plugin migration triggers exception ( #3188 )
2017-10-21 10:11:11 -06:00
Luke Towers
d292eeb85e
Remove ambiguity around what classes are being used
...
Fixes https://github.com/octobercms/october/issues/3184 .
2017-10-20 21:39:54 -06:00
Luke Towers
a62a6e6493
Support on and off options for the switch field
...
Adds support for custom on and off options for the switch field type.
2017-10-20 11:47:30 -06:00
Luke Towers
aee81081df
Hide Settings menu when no sub pages to display ( #3172 )
...
Remove the Settings main menu item if there are no submenus to display. Fixes https://github.com/octobercms/october/issues/2175
2017-10-18 11:22:33 -06:00
Luke Towers
ac2e5937f0
Document list widget column value events
...
Documents `backend.list.overrideColumnValue` and adds and documents `backend.list.overrideColumnValueRaw`. See https://github.com/octobercms/october/issues/3180 for why this is necessary.
2017-10-18 10:57:17 -06:00
Samuel Georges
669a4cee6e
Merge branch 'maintenance-mediamanager' into develop
2017-10-16 17:56:34 +11:00
Samuel Georges
2a1234d21c
Update MM lang refs
2017-10-16 17:52:50 +11:00
Luke Towers
8a5d0c3b13
Correct row numbers displayed in the import result form ( #3136 )
...
* Add support for a source index offset
Improves the reporting of errors in the importing process by getting the correct offset for the displayed row where the error took place.
* Add the source index offset to the row number
Refs ce6df84b04
2017-10-15 13:45:35 -06:00
Luke Towers
46205298df
Add the user's role to the columns
2017-10-15 11:49:06 -06:00
Luke Towers
f739e457e4
Enable superusers to actually use the is_superuser filter
2017-10-14 21:55:56 -06:00
Samuel Georges
9309d826d0
Update zh-tw MM lang
2017-10-15 01:31:04 +11:00
Samuel Georges
4790f8b7a7
Update zh-cn MM lang
2017-10-15 01:29:13 +11:00
Samuel Georges
75d16dab26
Update uk MM lang
2017-10-15 01:27:28 +11:00
Samuel Georges
79b5094aed
Update tr MM lang
2017-10-15 01:25:09 +11:00
Samuel Georges
974bbf1303
Update sv MM lang
2017-10-15 01:21:15 +11:00
Samuel Georges
a7b6250e74
Update ro MM lang
2017-10-15 01:03:26 +11:00
Samuel Georges
c9851ca158
Update pt-pt MM lang
2017-10-15 01:01:00 +11:00
Samuel Georges
cc295cc40b
Update pt-br MM lang
2017-10-15 00:58:13 +11:00
Samuel Georges
93a3b4e1e7
Update pl MM lang
2017-10-15 00:43:39 +11:00
Samuel Georges
3c27eb4728
Update nl MM lang
2017-10-15 00:41:50 +11:00
Samuel Georges
8262897010
Update nb-no MM lang
2017-10-15 00:37:53 +11:00
Samuel Georges
e28c287d08
Update lv MM lang
2017-10-15 00:29:08 +11:00
Samuel Georges
56f4d5972d
Update lt MM lang
2017-10-15 00:04:24 +11:00
Samuel Georges
88fa577946
Update kr MM lang
2017-10-15 00:00:01 +11:00
Samuel Georges
dd089e4bed
Update it MM lang
2017-10-14 23:52:44 +11:00
Samuel Georges
aa1766ad12
Update hu MM lang
2017-10-14 23:34:05 +11:00
Samuel Georges
74611f7220
Update fr MM lang
2017-10-14 23:31:27 +11:00
Samuel Georges
476645bafd
Update fa MM lang
2017-10-14 23:29:52 +11:00
Samuel Georges
95dd254705
Update et MM lang
2017-10-14 23:25:44 +11:00
Samuel Georges
1eb99b8165
Update es MM lang
2017-10-14 23:14:20 +11:00
Samuel Georges
3aa9d91cf8
Update en MM lang
2017-10-14 23:05:08 +11:00
Samuel Georges
1826b19197
Update el MM lang
2017-10-14 23:02:22 +11:00
Samuel Georges
2593252909
Update de MM lang
2017-10-14 22:38:25 +11:00
Samuel Georges
9d4b86a67a
Update da MM lang
2017-10-14 22:35:38 +11:00
Samuel Georges
b8ad025968
Update cs MM lang
2017-10-14 22:28:20 +11:00
Samuel Georges
d30aa578b4
Update bg MM lang
2017-10-14 22:24:36 +11:00
Samuel Georges
56b8d38bbf
Update be MM lang
2017-10-14 22:20:56 +11:00
Samuel Georges
fdc2891734
Update deprecated refs
2017-10-14 22:06:34 +11:00
Luke Towers
fa840d79f6
Improve support for three tier user system
...
This builds on 4fd1ca824f by switching from a two tier approach to permissions (superusers and regular users), to a three tier approach (superusers (developer), second-in-command (clients with manage_users permissions), and regular users). If support for a four tier approach is necessary (Superuser, Franchise Owner, Franchise Business Manager, Franchise Staff as an example), then it can be implemented simply by adding a flag to roles that would prevent anyone except for a superuser from assigning that role.
The specific changes made by this commit is to support users with the manage_users permission (but who are not superusers) to be able to assign roles to other users and improvements to the sanctity of the superuser itself. Non-superusers can no longer see or edit superusers in the backend (that was previously poorly handled as a non-superuser with manage_users could take over a superuser account since they could modify that account willy-nilly), and the is_superuser filter is accordingly removed as well.
2017-10-14 00:25:52 -06:00
Luke Towers
4203e65549
Deprecated Cms\Controllers\Media in favour of the backend one. Fixed other references to moved pieces of the Media Manager. Finally a proper fix for https://github.com/octobercms/october/pull/2604
2017-10-08 23:12:04 -06:00
datune
8906b86027
Add return statement to listExtendRecords event ( #3153 )
...
Fixes #2965
2017-10-04 14:05:05 -06:00
datune
4a0a488ff6
Account for NestedTree Trait setting ( #3143 )
...
* Account for NestedTree Trait setting
See https://github.com/rainlab/blog-plugin/issues/338 . The Lists Widget did not account for the NestedTree setting.
* Update Lists.php
2017-10-04 14:04:12 -06:00
jimcottrell
263200fd7b
Support form field commentHtml flag for section, checkbox, and switch types ( #3150 )
2017-10-03 13:41:14 -06:00
Floris Koch
161d81a192
Update _repeater_item.htm ( #3149 )
...
Allows using language files for group titles.
2017-10-03 10:15:29 -06:00
Massimo Ghinassi
791eb054fc
Typo ( #3146 )
2017-10-03 00:30:27 -06:00
Luke Towers
7fd81c4c2a
Initial work on moving media controller to the backend
2017-09-27 22:40:39 -06:00
Luke Towers
30d4436172
Moved the media icon to the backend instead of the cms
2017-09-27 22:37:11 -06:00
Luke Towers
6bcaeb2d65
Moving media manager references from the CMS service provider to the System service provider
2017-09-27 22:34:32 -06:00
Luke Towers
d14f1fec0f
Moved MediaFinder formwidget from the CMS module to the System module
2017-09-27 22:30:53 -06:00
Luke Towers
c2f204008b
Moved the MediaManager widget from the CMS module to the System module
2017-09-27 22:23:58 -06:00
Samuel Georges
d30dd19b70
Rollback 510071550a
...
This issue has been addressed too early in the process lifecycle. The line number should be incremented later, say in the view layer when the error is displayed. A simple helper to determine what the index increment should do well.
$row + $indexIncrement
This is so we don't have to rebuild the array, which is computationally expensive for large datasets and could be frustrating for a developer expecting untouched index values, or likewise needing to prepare our special format.
2017-09-17 10:14:14 +10:00
Luke Towers
510071550a
Report correct row number in import error logs
...
This fixes an issue where the row number reported by import error logs would be off by 1 or 2 depending on whether the first row was labelled as titles or not.
As arrays start at 0 in PHP, `$firstRowTitles = false` would result in reported row numbers being off by one less than their actual number. If `$firstRowTitles = true`, the reported row number would be off by two less than their actual number (one for the zero index, one for the first row not existing in the `$results` set).
2017-09-15 17:05:46 -06:00
Szabó Gergő
fa2c536a53
Hungarian translate for Mail branding ( #3115 )
...
and minor corrections
2017-09-15 09:41:48 -06:00
Samuel Georges
58aa360eab
The text input value should be explicit, not mutated, ever.
...
Rollback fb893efb9ca3a0fa25e3bb9fd01f55cef6216473
Refs #2942
Refs #3101
2017-09-15 08:41:05 +10:00
Fl0Cri
d7b0e55ceb
Fixes broken richeditor z-index inside and outside of a popup ( #3113 )
...
Fixes #3098 , #3111 . Credit to @Fl0Cri
2017-09-14 15:17:31 -06:00
Samuel Georges
cd76f2e04f
Field definition should override magic
2017-09-13 14:29:42 +10:00
Luke Towers
9565565865
Add ignoreTimezone option to datepicker field and column types.
...
Adds the ability to specify an `ignoreTimezone: true` option on the config for a datepicker form widget or date column type. This will ignore both October's and the backend user's timezone settings to display the date exactly as it is stored.
2017-09-10 22:39:15 -06:00
TimFoerster
ead70c43f3
changing z-index of richeditor ( #3099 )
...
Changed z-index of the richeditor to prevent hidden popups.
Fixes #3098
2017-09-07 08:36:50 -06:00
Samuel Georges
8a1b060a29
Tidy up from #3084
2017-09-06 09:00:53 +10:00
Jofry S
2c97c55ea8
Allow simple pagination option on ListControllers
2017-09-05 13:33:51 +10:00
Luke Towers
8a8013e52e
Fixes #3081 . Resets module dependencies from dev to stable. Refs 081a32c928
2017-09-04 12:40:55 -06:00
Samuel Georges
4074ad8cc9
Laravel 5.5 released
2017-08-31 20:57:00 +10:00
TimFoerster
54b1250fbd
Update backend/lang/de/lang.php ( #3063 )
2017-08-29 10:32:43 -06:00
Szabó Gergő
cfd3d54316
Update the Hungarian translation ( #3046 )
...
Compatible with October build 420
2017-08-18 08:26:51 -06:00
Tschallacka
c97d29fe4f
Remove unused reference ( #3045 )
2017-08-17 14:00:43 -06:00
Luke Towers
7c3d4705fc
Support firstDay in date & date range filters
...
Ref: 962aa32a60 (commitcomment-23597564)
2017-08-11 08:59:06 -06:00
Sang Min Oh
969eaccf8b
korean language support for backend ( #3023 )
...
Credit to @everydayparty
2017-08-06 12:36:34 -06:00
Luke Towers
a705a70f35
Cleanup for #2856
...
Removed `minNumber` and `maxNumber` options, they are not enforceable on the client side without a lot more work. Added `number` filter type, added missing numberrange filter template, consolidated styles for filter-date and filter-number filters.
2017-08-05 18:10:36 -06:00
Luke Towers
be87fbbb87
added feature to allow filtering over a number range ( #2856 )
...
Original by @purposebuiltscott in #2856
2017-08-05 14:01:59 -06:00
Luke Towers
92d88fc4dc
Merge pull request #3021 from octobercms/Luke
...
Improve support for scope properties
2017-08-05 12:51:05 -06:00
Luke Towers
e41f047722
Support yearRange property on the daterange scopetype
2017-08-05 12:40:15 -06:00
Luke Towers
67fb168e6c
Support yearRange property on the date scopetype
2017-08-05 12:39:20 -06:00
Luke Towers
962aa32a60
Improve flexibility of scope type properties
...
Improves the flexibility of scope type properties by removing conditional logic specific to the date and daterange scope types and laying the groundwork for scopes to define their own custom properties that can be loaded from the scope configuration defined by the developer.
2017-08-05 12:38:20 -06:00
Sevdin Filiz
c129b94b46
Add translation for "Signed in as" ( #3018 )
...
Credit to @angelside
2017-08-04 13:17:49 -06:00
Jan Vince
881edd48de
Update Czech translation ( #3003 )
...
Credit to @jan-vince, reviewed by @chesio
2017-08-01 07:28:09 -06:00
Oleg Samorai
2cc492f7dc
Enable displaying jsonable properties in backend lists ( #2995 )
2017-07-29 14:24:54 -06:00
Samuel Georges
96d0535d09
Add generic onAjax handler that does nothing
2017-07-29 22:55:58 +10: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
Alexander Shapoval
26ee634ffb
Updated Ukrainian and Russian translations ( #2988 )
...
* Small changes in Ukrainian and Russian languages
2017-07-28 08:53:40 +10:00
Samuel Georges
a5377b5018
Replace missing permissions
2017-07-28 00:05:35 +10:00
Samuel Georges
9cadea9b19
Code doc improvements
2017-07-27 17:35:14 +10:00
Samuel Georges
06f4b44878
Fixes styling found in Pages plugin
2017-07-27 14:03:50 +10:00
Samuel Georges
ef191d64e4
l55upgrade -> develop
2017-07-26 21:03:52 +10:00
Samuel Georges
9bb639b19f
Merge branch 'l55upgrade' into develop
2017-07-26 20:59:58 +10:00
Samuel Georges
18b9253bcb
Change to mail partial syntax
2017-07-26 17:48:00 +10:00
Samuel Georges
3f0e6d8b29
Register `appName` as global view variable
...
Minor mail template improvements
2017-07-23 17:20:53 +10:00
Samuel Georges
e6b191bd94
Typo
2017-07-22 22:24:31 +10:00
Samuel Georges
9287d926f7
Refit invite and restore mail templates
...
Fixes {% partial %} node for mail templates
Trim body var for text emails
Style code nodes
2017-07-22 22:23:22 +10:00
Samuel Georges
28c30daa4f
Use safe md parsing for mail
...
Ensure backward compatibility by disabling indented code blocks for mail templates
Tweak mail brand colors to match October
2017-07-22 19:01:20 +10:00
Samuel Georges
8e0279e45e
Trigger color picker change event
2017-07-22 17:18:45 +10:00
Samuel Georges
cd6a7c75dc
Refresh colorpicker form widget
...
Replace colpick with spectrum plugin
Recompile client lang
2017-07-22 11:40:59 +10:00
Alwin Drenth
c1cd76d60a
Update Dutch language files ( #2987 )
2017-07-21 09:27:27 -06:00
Samuel Georges
4663531de2
Introduce mail partials + twig
...
Improve layout seeding
2017-07-19 21:14:08 +10:00
Samuel Georges
d7117f9cb2
Stetch + size improvements
2017-07-15 19:53:08 +10:00
Samuel Georges
0aa1fa96fb
Fixes non-split stretch mode
2017-07-15 19:10:01 +10:00
Samuel Georges
953336d250
Option "searching" defaults to false
2017-07-15 14:34:53 +10:00
Samuel Georges
db943c077b
This doesn't need to be a form
2017-07-15 12:29:20 +10:00
Samuel Georges
4239caf9eb
Enable searching via config
...
Only the ServerEventDataSource supports this for now. This is purely to satisfy https://github.com/rainlab/translate-plugin/pull/272
Clean up and fix net spam
2017-07-15 12:18:11 +10:00
Samuel Georges
3145611150
Add search to table widget
...
Refs https://github.com/rainlab/translate-plugin/pull/272
Recompile assets
2017-07-15 12:06:50 +10:00
Samuel Georges
dc3e521c36
Merge pull request #2968 from slowpokefarm/master
...
Allow using zero-keys in Filter widget options
2017-07-15 00:05:39 +10:00
Stanislav Rimsha
6f691680cf
Allow using zero-keys in Filter widget options
2017-07-14 15:57:47 +02:00
Samuel Georges
5a4e2b6b11
Email templates now use Markdown
...
Move mail template management to MailManager
2017-07-14 16:20:53 +10:00
Samuel Georges
3b7330f06a
Typo
2017-07-13 19:38:44 +10:00
Samuel Georges
4fd1ca824f
Introduce concept of system roles
...
These are roles defined by a special API code, once a system role code is detected, the role becomes locked and its permissions are sourced from the AuthManager. All permissions are granted to system roles by default, unless otherwise specified. This should make it easier to create client accounts as "Publishers", hiding developer tools like the CMS and Builder plugins by default.
2017-07-13 19:29:50 +10:00
Samuel Georges
358a6337df
We probably don't need to call this twice
...
Refs f8d9667f0e
2017-07-13 19:15:47 +10:00
Samuel Georges
8002c1010b
Create migrate script to split permissions out
...
Permissions have been moved from Groups to a new Role model
Refs #2367
2017-07-11 19:17:44 +10:00
Samuel Georges
1db67af8e8
Merge remote-tracking branch 'remotes/origin/develop' into l55upgrade
...
Conflicts:
modules/system/lang/en/lang.php
2017-07-11 10:48:54 +10:00
Luke Towers
950c341c49
Prevent privilege escalation from crafted requests
...
Follow up to 2046efb51d .
The previous commit prevented users from visually managing permissions that they themselves didn't have access to, this follow-up commit enforces that limitation serverside to defend against crafted privilege escalation attacks by authenticated users.
2017-07-10 18:36:43 -06:00
Luke Towers
2046efb51d
Prevent users from granting permissions they don't have
...
Prevents users from granting permissions that they themselves do not have. Fixes #1673 , and is a partial solution to #2367 . However, this still does not address the issue of being able to assign / manage groups that have permissions that the user doing the management does not themselves have. That will have to be addressed separately as a part of #2367 .
2017-07-09 20:24:17 -06:00
Luke Towers
056a37fce4
Fix repeater title generation in readOnly mode
...
Refs: 2a16847724
2017-07-09 13:06:23 -06:00
Luke Towers
c9e31fd83b
Support previewMode for the balloon-selector
...
Add support for previewMode in the Balloon Selector form field type.
Refs: #2724 , 5f91c45
2017-07-09 12:53:29 -06: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
Luke Towers
2a16847724
Add support for readOnly Repeater Widgets ( #2960 )
...
* Add support for previewMode in Repeater FormWidget
Refs: #2724 , 5f91c45f79
* Add support for previewMode in Repeater FormWidget
Refs: #2724 , 5f91c45f79
* Add support for previewMode in Repeater FormWidget
Refs: #2724 , 5f91c45f79
* Add support for previewMode in Repeater FormWidget
Refs: #2724 , 5f91c45f79
2017-07-08 13:34:04 -06:00
Samuel Georges
56eb61183b
Minor UI improvements to recordfinder
...
Allow span elements to use oc-loading
2017-07-06 19:11:57 +10:00
Tschallacka
e8e4209909
Fix inflexible relation toolbar ( #2760 )
...
Improves support for models that don't use `id` as their primary key.
2017-07-04 18:56:38 -06:00
Luke Towers
1a5e86e38d
Improve support for non-id primary keys
...
Related: #2760
2017-07-04 18:55:42 -06:00
Hartmut Glücker
dfcf324d00
Support changing the global default for richeditor buttons ( #2937 )
...
Added support for changing the global default for richeditor buttons.
Addresses: #2677 , #2384 , #2078 , #1743 and rainlab/pages-plugin#188
2017-07-04 08:10:58 -06:00
buuug7
879afdeea9
Update Chinese translations ( #2948 )
...
Credit to @buuug7. Refs: #2948
2017-07-03 07:45:35 -06:00
Tobias Kündig
4f97d07962
Added firstDay option to datepicker form widget ( #2940 )
...
Documented here: https://github.com/octobercms/docs/pull/243
2017-06-28 07:23:59 -06:00
Szabó Gergő
f7f507dbdc
Translate the value of the text field ( #2942 )
...
It is a useful feature, if you like to add translatable value.
2017-06-26 09:38:31 -06:00
Samuel Georges
8a9355ca66
Fixes typo
2017-06-25 09:38:18 +10:00
Samuel Georges
600035cd49
Tszuj up some styling
...
Add active states and color correct treeview
Adjust proportions of repeater add button
2017-06-24 17:18:08 +10:00
Samuel Georges
56028c0724
Revert recent treeview changes
...
This ends up over complicating things
2017-06-24 16:01:01 +10:00
Samuel Georges
08a710eb9a
Update ace editor 1.2.3 to 1.2.6
...
Recompile assets
Refs #2570 (without the spam)
2017-06-24 09:01:07 +10:00
Samuel Georges
c3570ffd7e
The event emitter should not be a dependency
...
Fixes #2938
2017-06-23 08:11:41 +10:00
Christophe Vuagniaux
e3a567cb78
Enable configuration of backend login session persistence ( #2924 )
...
Thanks to @ChVuagniaux. Fixes #2394
2017-06-22 14:34:16 -06:00
Luke Towers
f8d9667f0e
Support field being disabled in filterFields()
...
Completes support for the underlying field object being disabled in model's filterFields() method by rechecking status immediately before rendering.
2017-06-22 09:45:29 -06:00
Samuel Georges
b572382de7
Didn't end up using this, so doc instead
2017-06-22 18:00:59 +10:00
Alexander Shapoval
e6d79057c6
Translation into Ukrainian has been added. Added translations into Russian ( #2931 )
...
* Added Ukrainian language. Credit to @PopcornPHP for the translation.
2017-06-17 15:22:50 -06:00
Samuel Georges
9eb0cc24ae
Opens a channel for model to talk with form widget
...
.. and controller and beyond.
2017-06-17 21:20:34 +10:00
Samuel Georges
c0aa03a400
Create an error making trait
...
Widgets can throw fatal errors too
2017-06-11 22:38:03 +10:00
Samuel Georges
a2a7eec4f5
Rename methods in CollapsableWidget
...
The methods were far too generic. When a trait or behavior is used, it's usually a good include to include the name of the trait in the methods and properties it provides. This reduces the chance of a conflict with the implementing class.
2017-06-10 15:42:24 +10:00
Samuel Georges
f020479b91
Move session logic to SessionMaker
...
This allows controller behaviors to access session utils
2017-06-10 04:58:29 +10:00
Samuel Georges
e5358a81ce
Custom icon support for treeview
2017-06-08 14:25:45 +10:00
Priit Perna
eff3f2e905
Backend translation for estonian ( #2911 )
...
* Added language files for Estonian (et). Thanks to @priitperna!
2017-06-07 11:07:34 -06:00
Samuel Georges
edcd899a79
Base getLoadValue to look at form field first
...
Fixes https://github.com/octobercms/october/pull/2663
Adding to build 420+ because this might cause some issues, although it shouldn't. Hoping we don't ever have to roll this back because it fixes another inconsistency when using the model `filterFields` method... some will change values via $field->value (field accessor) and others will change via $this->value ($model accessor). This now puts the field accessor at a consistent priority (first) while retaining the fallback to model.
2017-06-06 20:44:15 +10:00
Samuel Georges
305f962e1f
Merge pull request #2904 from arzola/patch-event-doc
...
Update Report widget event-extensibility docblock
2017-06-06 20:22:54 +10:00
Samuel Georges
41cc1744f1
Tab panes now support CSS spec
...
See form docs > paneCssClass
2017-06-05 17:37:13 +10:00
Samuel Georges
bda98e7353
Selectable box and fancy breadcrumb
2017-06-05 17:35:15 +10:00
Oscar Arzola
8a40e1cc89
Update Report widget docblock
2017-06-02 23:53:27 -05:00
Samuel Georges
f672a3cf19
String to ::class
2017-06-03 10:31:24 +10:00
Samuel Georges
ef94decb1a
Merge pull request #2898 from arzola/master
...
Added Extensibility to ReportWidgets
2017-06-03 00:56:35 +10:00
Oscar Arzola
a7d20211ae
Fixed Formatting and added docblock
2017-06-02 09:51:13 -05:00
Samuel Georges
e2781c5fdf
URL -> Url
2017-06-02 23:34:50 +10:00
Samuel Georges
bfcab59021
Fixes hover event on mobile
2017-06-02 23:33:55 +10:00
Samuel Georges
ff04fbff35
Tighten up the look of extra small
...
Scales down the sidenav by converting px to em then dialing down the container font size
Made the list search less dominating over the primary buttons
2017-06-02 23:05:29 +10:00
Samuel Georges
3be6dafa6b
Fixes int folder name showing as 0
...
Fixes #2902
Code dusting
2017-06-02 20:16:26 +10:00
Samuel Georges
eadd889813
Improve mobile and settings page
...
Use native scroll on mobile devices (much better UX)
Stack settings menu items 2 column medium, 3 column large
The settings search is now forcibly focused
2017-06-02 17:39:26 +10:00
Oscar Arzola
0bd12cf0e6
Added Extensibility to ReportWidgets
2017-05-30 16:49:35 -05:00
Samuel Georges
db82bfa815
Tighten up font weight and login screen
...
Recompile assets
2017-05-30 20:10:48 +10:00
Samuel Georges
f0df1f458b
Merge branch 'develop' into l55upgrade
...
Conflicts:
modules/system/assets/ui/storm.css
2017-05-27 22:24:57 +10:00
Samuel Georges
2cbe849ee7
Style fixes
2017-05-22 20:01:09 +10:00
Samuel Georges
605c8221a9
getPlainForeignKey -> getForeignKeyName
2017-05-20 20:03:48 +10:00
Samuel Georges
00ddd8e2b4
string -> ::class + docs
2017-05-20 20:01:19 +10:00
Samuel Georges
cefa19af7d
Backend UI improvements
2017-05-20 20:00:24 +10:00
Samuel Georges
aa393dc54b
Backend style improvements
...
This should make Windows PCs look a little nicer, albeit inconsistent with others (Sergoe UI is unique). If it's good enough for GitHub, then it's good enough for October.
All text shadows have been stripped, along with some box shading. They were barely noticeable and should speed up the UI.
2017-05-20 17:37:58 +10:00
Samuel Georges
04f89dc5bb
getToken -> token
2017-05-20 13:19:51 +10:00
Samuel Georges
bab7976331
Merge branch 'develop' into l55upgrade
2017-05-20 09:08:09 +10:00
Samuel Georges
081a32c928
Change versions for testing
2017-05-19 14:13:23 +10:00
Priit Perna
2b3b6ece46
Made checkbox quick selection configurable
...
With this change the following configuration will show the quick selection links:
"quickselect" => true
2017-05-18 15:16:42 +03:00
Priit Perna
8ee7d3f5ae
Added scope support to the Relation formwidget
2017-05-17 13:00:40 +03:00
Samuel Georges
7e76f39e6c
Add app.name config
...
Various other refittings
2017-05-16 18:50:41 +10:00
Samuel Georges
57aa723c23
filterExtendScopes -> listFilterExtendScopes
...
extendFilterScopes -> extendListFilterScopes
Filter still belongs to the "List", this would help resolve conflicts if there were ever a FilterController that would carry rightful claim to "filterExtendScopes"
2017-05-14 14:47:17 +10:00
CSNWEB
fe3e44efeb
Add method to easily extend filter scopes ( #2866 )
...
* Add method to easily extend filter scopes
* Add non static method for filter scope extension
2017-05-13 17:31:09 -06:00
Samuel Georges
453e48924e
Apply web middleware group for the good cookies
2017-05-13 22:18:13 +10:00
Samuel Georges
59d1e7736c
Bump min version to PHP 7
...
Restore tinker command
2017-05-13 09:04:22 +10:00
Luke Towers
95cd3f7077
Translate group name and description
...
Refs: https://github.com/octobercms/october/issues/2772#issuecomment-301125572
2017-05-12 11:22:13 -06:00
Samuel Georges
6a6378a24d
Strip indexes from repeater data sets
2017-04-26 08:10:45 +10: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
cb56c61e36
Retain true backward compatibility with early repeater
2017-04-24 19:06:59 +10:00
Samuel Georges
d7ef8cdcf8
Minor logic change
2017-04-24 13:24:57 +10:00
Samuel Georges
6825ce12c8
Allow external group field definition - Refs #2772
2017-04-24 13:24:57 +10:00
Samuel Georges
c52f91a6d2
Collapsed items should default to or include the group name - Refs #2772
2017-04-24 13:24:56 +10:00
Samuel Georges
dac744dbc6
Scrollpad not rendering on open - Refs #2772
2017-04-24 13:24:56 +10:00
Samuel Georges
acfe619cb9
Add button lacks loading state - Refs #2772
2017-04-24 13:24:55 +10:00
Luke Towers
0fa0301557
Merge pull request #2803 from CSNWEB/patch-5
...
Add readonly / disabled support for checkboxlist (relation form widget)
2017-04-22 10:23:52 -06:00
Samuel Georges
ac7da4634a
Implement working prototype of a grouped repeater
...
Refs #2772
2017-04-22 22:01:17 +10:00
Samuel Georges
83e80745b3
Fixes issue with index incrementation
2017-04-22 21:40:35 +10:00
Samuel Georges
46fcdbc636
Progress on repeater field groups
...
Refs #2772
2017-04-22 21:04:37 +10:00
Samuel Georges
4644218312
Move autocomplete to Storm UI
...
Rename select AJAX from "source" to "handler" (Refs #2836 )
Document select handler usage
Recompile assets
2017-04-22 11:44:27 +10:00
Luke Towers
248af140bb
Merge pull request #2835 from interworks-morr/fix_backend_sidenav_layout
...
Fixing case-sensitive issue with Backend Sidenav Layout - Issue #2834
2017-04-21 13:42:00 -06:00
interworks-morr
46d8ac8972
Fixing case-sensitive issue with Html
2017-04-20 11:47:11 -05:00
Szabó Gergő
130d502f41
Update the Hungarian translation
2017-04-19 10:35:58 +02:00
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