fixes prop editor view path

This commit is contained in:
Shannon
2013-06-25 22:15:33 +10:00
parent 5148687ed3
commit 3de98b60c4
3 changed files with 6 additions and 27 deletions

View File

@@ -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);
}
};
});

View File

@@ -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>

View File

@@ -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>