From 397b3ca69f862a1fee524abc6aa2de8b94e18dcd Mon Sep 17 00:00:00 2001 From: Dave Woestenborghs Date: Mon, 29 Oct 2018 11:02:53 +0100 Subject: [PATCH 001/421] #3434 use toggle for varying by culture on property settings dialog in content type designer --- .../propertysettings.controller.js | 13 +++++++++- .../propertysettings/propertysettings.html | 25 +++++++++++++------ 2 files changed, 29 insertions(+), 9 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.controller.js b/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.controller.js index 7239fd22e710..fec24a3a3196 100644 --- a/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.controller.js @@ -29,6 +29,8 @@ vm.submit = submit; vm.close = close; + vm.toggleAllowCultureVariants = toggleAllowCultureVariants; + function onInit() { userService.getCurrentUser().then(function(user) { @@ -232,10 +234,19 @@ } + function toggleAllowCultureVariants() { + if ($scope.model.property.allowCultureVariant) { + $scope.model.property.allowCultureVariant = false; + return; + } + + $scope.model.property.allowCultureVariant = true; + } + onInit(); } angular.module("umbraco").controller("Umbraco.Editors.PropertySettingsController", PropertySettingsEditor); -})(); \ No newline at end of file +})(); diff --git a/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.html b/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.html index 610af28cb838..6862a313d10f 100644 --- a/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.html +++ b/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.html @@ -106,14 +106,23 @@
- -
Property Type Variation
- - - +
+ +
+
+ +
+ +
+ + +
+ +
+
From d0908895ddd8de472b8ed64bb1fe8f1f7e1b66e1 Mon Sep 17 00:00:00 2001 From: Dave Woestenborghs Date: Wed, 7 Nov 2018 09:48:31 +0100 Subject: [PATCH 002/421] #3434 removed usage of subview-classes --- .../propertysettings/propertysettings.html | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.html b/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.html index 6862a313d10f..dae9c2c83852 100644 --- a/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.html +++ b/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.html @@ -106,23 +106,15 @@
-
- -
+
- -
- -
+ -
- -
- +
From 110ecc5fda4864348d0f3c7a7316ae19a4dad377 Mon Sep 17 00:00:00 2001 From: Dave Woestenborghs Date: Wed, 7 Nov 2018 10:09:04 +0100 Subject: [PATCH 003/421] #3434 use toggle for mandatory validation on property type settings and made a better distinction between mandatory and custom validation --- .../propertysettings/propertysettings.controller.js | 10 ++++++++++ .../propertysettings/propertysettings.html | 13 +++++++++++-- src/Umbraco.Web.UI/Umbraco/config/lang/en.xml | 1 + src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml | 1 + 4 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.controller.js b/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.controller.js index fec24a3a3196..198f352bf153 100644 --- a/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.controller.js @@ -30,6 +30,7 @@ vm.close = close; vm.toggleAllowCultureVariants = toggleAllowCultureVariants; + vm.toggleValidation = toggleValidation; function onInit() { @@ -243,6 +244,15 @@ $scope.model.property.allowCultureVariant = true; } + function toggleValidation() { + if ($scope.model.property.validation.mandatory) { + $scope.model.property.validation.mandatory = false; + return; + } + + $scope.model.property.validation.mandatory = true; + } + onInit(); } diff --git a/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.html b/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.html index dae9c2c83852..ecdd5b203d01 100644 --- a/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.html +++ b/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/propertysettings/propertysettings.html @@ -84,10 +84,19 @@
-