fixes prop editor view path
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
|
||||
angular.module("umbraco.directives")
|
||||
.directive('umbProperty', function () {
|
||||
.directive('umbProperty', function (umbPropEditorHelper) {
|
||||
return {
|
||||
scope: true,
|
||||
restrict: 'E',
|
||||
replace: true,
|
||||
templateUrl: 'views/directives/umb-property.html'
|
||||
templateUrl: 'views/directives/umb-property.html',
|
||||
link: function(scope, element, attrs, ctrl) {
|
||||
scope.propertyEditorView = umbPropEditorHelper.getViewPath(scope.model.view);
|
||||
}
|
||||
};
|
||||
});
|
||||
@@ -15,7 +15,7 @@
|
||||
</label>
|
||||
|
||||
<div class="controls controls-row" >
|
||||
<ng-include src="model.view"></ng-include>
|
||||
<ng-include src="propertyEditorView"></ng-include>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
<div class="umb-pane">
|
||||
<ng-form name="propertyForm">
|
||||
|
||||
<div class="control-group umb-control-group"
|
||||
ng-class="{hidelabel:model.hideLabel, error: propertyForm.$invalid}" >
|
||||
|
||||
<val-property-msg property="model"></val-property-msg>
|
||||
|
||||
<div class="umb-el-wrap">
|
||||
|
||||
<label class="control-label" ng-hide="model.hideLabel" for="{{model.alias}}">
|
||||
|
||||
{{model.label}}
|
||||
<small>{{model.description}}</small>
|
||||
</label>
|
||||
|
||||
<div class="controls controls-row" >
|
||||
<ng-include src="model.view"></ng-include>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</ng-form>
|
||||
</div>
|
||||
Reference in New Issue
Block a user