Commit Graph

4233 Commits

Author SHA1 Message Date
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 e1629a9413 Remove system dependency on cms module
Refit #2970
2017-07-15 10:14:15 +10:00
BenjaVR c2d99e6d92 UpdateManager runs without Cms module 2017-07-15 10:11:23 +10:00
Samuel Georges 81b28e3938 Render order should be Twig -> Markdown -> Html
Use unrendered markdown as defaul text template
2017-07-15 00:55:56 +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 c83b432e36 Add exception handling 2017-07-14 22:29:36 +10:00
Samuel Georges 78d722adf0 Set last build number, updating via composer 2017-07-14 22:01:11 +10:00
Samuel Georges f6eade56af fire -> handle 2017-07-14 16:28:47 +10: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
Benjamin 89d0d29b69 Added SASS support to Resources component (#2961) 2017-07-10 17:29:11 -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
Samuel Georges a84c193cb2 Update FontAwesome to v4.7.0
Recompile less
2017-07-09 12:21:59 +10: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
Max Schmitt aeba740243 Add getStatusCode() in Cms\Classes\Controller (#2959)
Related: #2953. Provide a method to access the current statusCode of a CMS controller.
2017-07-08 08:53:08 -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
Luke Towers 9b2e37e287 Early removal of HHVM
Early merge of 2424a6563d because it's annoying that the builds fail on pull requests for the develop branch all of the time.
2017-07-04 08:32:37 -06:00
Sevdin Filiz 3dba1a8f61 Make SettingsManager more like NavigationManager (#2954)
Enables partial modification of Setting Items just like is currently supported in Menu Items
2017-07-04 08:30:48 -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
Samuel Georges 9467a6ccfe Adds a radio alignment helper
Minor touch up to tab styling
2017-07-04 17:19:22 +10:00
buuug7 879afdeea9 Update Chinese translations (#2948)
Credit to @buuug7. Refs: #2948
2017-07-03 07:45:35 -06:00
Samuel Georges d1c160f9dc Check both instances to fix #1854
It appears there is no way around this. All directories should be lower case in October, prior to this, October wanted uppercase characters. Make up your mind guy, come on! ;-)
2017-07-01 12:26:55 +10:00
Samuel Georges 2424a6563d Bye HHVM, thanks for your contributions! 2017-07-01 11:13:50 +10:00
Samuel Georges 247151f4f8 Fixes test 2017-06-30 04:58:51 +10: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
Samuel Georges 87f8f8feb1 Fixes inconsistency in component partial folder names
This is a breaking change that will require further attention - refs #1854

Eg: myComponent, the default component partial would use lower case folders
- /plugins/acme/test/components/mycomponent/default.htm

The theme component partial override would use case sensitive folders
- /themes/foobar/partials/myComponent/default.htm

This is fixed as
- /themes/foobar/partials/mycomponent/default.htm

Minor code fix to ModelBehavior class
2017-06-27 05:34:13 +10:00
Samuel Georges 6aa60305a0 Add test for sensitivity component partial overrides
Refs #1854
Laravel looks like it broke ->contains($model), fix test for now
2017-06-27 05:05:24 +10: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