#3434 use toggle for varying by culture on property settings dialog in content type designer
This commit is contained in:
+12
-1
@@ -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);
|
||||
|
||||
})();
|
||||
})();
|
||||
|
||||
+17
-8
@@ -106,14 +106,23 @@
|
||||
|
||||
</div>
|
||||
<div class="umb-control-group clearfix" ng-if="model.contentType === 'documentType' && model.contentTypeAllowCultureVariant">
|
||||
|
||||
<h5>Property Type Variation</h5>
|
||||
|
||||
<label class="checkbox no-indent">
|
||||
<input type="checkbox" ng-model="model.property.allowCultureVariant" />
|
||||
Allow varying by Culture
|
||||
</label>
|
||||
|
||||
<div class="sub-view-columns">
|
||||
|
||||
<div class="sub-view-column-left">
|
||||
<h5><localize key="contentTypeEditor_variantsHeading" /></h5>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="sub-view-column-right">
|
||||
<umb-toggle data-element="permissions-allow-culture-variant"
|
||||
checked="model.property.allowCultureVariant"
|
||||
on-click="vm.toggleAllowCultureVariants()"
|
||||
>
|
||||
</umb-toggle>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="umb-control-group clearfix" ng-if="model.contentType === 'memberType'">
|
||||
|
||||
Reference in New Issue
Block a user