diff --git a/src/Umbraco.Web.UI.Client/src/less/pages/document-type-editor.less b/src/Umbraco.Web.UI.Client/src/less/pages/document-type-editor.less index ce6cbc9b79..3c02be1073 100644 --- a/src/Umbraco.Web.UI.Client/src/less/pages/document-type-editor.less +++ b/src/Umbraco.Web.UI.Client/src/less/pages/document-type-editor.less @@ -340,7 +340,7 @@ .editors-document-type-canvas.is-in-sorting-mode { .edt-property { - height: 50px; + height: 40px; margin-bottom: 10px; background: #E9E9E9; color: @grayDarker; @@ -350,7 +350,7 @@ } .edt-property-meta { - padding: 15px 0 0 10px; + padding: 10px 0 0 10px; width: auto; flex: 1; .icon { @@ -487,3 +487,95 @@ } } + +/* ---------- DIALOGS ---------- */ + +.content-type-editor-dialog.edit-property-settings { + + .title-wrapper { + float: left; + width: 300px; + input.input-style-underline { + border: none; + //border-bottom: 1px solid #cccccc; + width: 100%; + box-sizing: border-box; + padding: 10px 0 0 0; + margin-bottom: 10px; + font-size: 16px; + font-weight: bold; + &:focus { + outline: none; + } + } + .alias { + font-size: 13px; + color: @grayLight; + } + } + + .editor-placeholder { + border: 2px dashed @grayLight; + width: 100%; + height: 80px; + line-height: 80px; + text-align: center; + display: block; + border-radius: 5px; + color: @gray; + font-weight: bold; + font-size: 13px; + &:hover { + text-decoration: none; + } + } + + .editor { + margin-bottom: 10px; + .editor-icon-wrapper { + border: 1px solid @grayLight; + width: 60px; + height: 60px; + text-align: center; + line-height: 60px; + border-radius: 5px; + float: left; + margin-right: 20px; + &:hover { + text-decoration: none; + border-color: @blueLight; + } + .icon { + font-size: 26px; + } + } + .editor-details { + float: left; + margin-top: 10px; + .editor-name { + font-weight: bold; + } + .editor-editor { + font-size: 12px; + } + } + } + + textarea.description { + width: 100%; + box-sizing: border-box; + border: none; + } + + .checkbox { + padding-left: 0; + margin-bottom: 20px; + } + + .umb-editor { + width: 100%; + } + +} + + diff --git a/src/Umbraco.Web.UI.Client/src/views/documenttype/dialogs/editpropertysettings/editpropertysettings.html b/src/Umbraco.Web.UI.Client/src/views/documenttype/dialogs/editpropertysettings/editpropertysettings.html index ad85f39bbc..c850d604d7 100644 --- a/src/Umbraco.Web.UI.Client/src/views/documenttype/dialogs/editpropertysettings/editpropertysettings.html +++ b/src/Umbraco.Web.UI.Client/src/views/documenttype/dialogs/editpropertysettings/editpropertysettings.html @@ -1,51 +1,63 @@
-
+
-
Property settings
+
- - + - - +
- - +
+ +
-
Validation
+
- - - Lorem ipsum dolor + Add Editor - -
- Mandatory + + + +
-
Property type
- - - - - -
{{ model.property.dataTypeName }}
- - -
{{ model.property.editor }}
- - - - - + diff --git a/src/Umbraco.Web.UI.Client/src/views/documenttype/edit.controller.js b/src/Umbraco.Web.UI.Client/src/views/documenttype/edit.controller.js index f09a6ba9e7..7e05fac8d8 100644 --- a/src/Umbraco.Web.UI.Client/src/views/documenttype/edit.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/documenttype/edit.controller.js @@ -295,6 +295,9 @@ function DocumentTypeEditController($scope, $rootScope, $routeParams, $log, cont // set indicator on property to tell the dialog is open - is used to set focus on the element property.dialogIsOpen = true; + // set property to active + property.propertyState = "active"; + $scope.dialogModel.changePropertyEditor = function(property) { $scope.choosePropertyType(property); }; @@ -304,24 +307,33 @@ function DocumentTypeEditController($scope, $rootScope, $routeParams, $log, cont }; $scope.dialogModel.submit = function(model){ + property.dialogIsOpen = false; + $scope.showDialog = false; $scope.dialogModel = null; + + // push new init property to scope + addInitPropertyOnActiveTab(); + }; $scope.dialogModel.close = function(model){ $scope.showDialog = false; $scope.dialogModel = null; + + // push new init property to scope + addInitPropertyOnActiveTab(); }; }; $scope.choosePropertyType = function(property) { - $scope.showDialog = true; $scope.dialogModel = {}; $scope.dialogModel.title = "Choose property type"; $scope.dialogModel.view = "views/documentType/dialogs/property.html"; + $scope.showDialog = true; property.dialogIsOpen = true; @@ -341,7 +353,7 @@ function DocumentTypeEditController($scope, $rootScope, $routeParams, $log, cont console.log(property); // open data type configuration - $scope.configDataType(property); + $scope.editPropertyTypeSettings(property); // push new init tab to scope addInitTab(); @@ -351,8 +363,7 @@ function DocumentTypeEditController($scope, $rootScope, $routeParams, $log, cont }; $scope.dialogModel.close = function(model){ - $scope.dialogModel = null; - $scope.showDialog = false; + $scope.editPropertyTypeSettings(property); }; }; @@ -386,9 +397,6 @@ function DocumentTypeEditController($scope, $rootScope, $routeParams, $log, cont // open settings dialog $scope.editPropertyTypeSettings(property); - // push new init property to scope - addInitPropertyOnActiveTab(); - }); }); @@ -396,8 +404,7 @@ function DocumentTypeEditController($scope, $rootScope, $routeParams, $log, cont }; $scope.dialogModel.close = function(model){ - $scope.showDialog = false; - $scope.dialogModel = null; + $scope.editPropertyTypeSettings(property); }; }; diff --git a/src/Umbraco.Web.UI.Client/src/views/documenttype/edit.html b/src/Umbraco.Web.UI.Client/src/views/documenttype/edit.html index 3fc96990e2..cb8a24af61 100644 --- a/src/Umbraco.Web.UI.Client/src/views/documenttype/edit.html +++ b/src/Umbraco.Web.UI.Client/src/views/documenttype/edit.html @@ -65,32 +65,13 @@
- - -
  • -
    +
    @@ -142,7 +123,7 @@ -
    +
    Choose property type