move new editor to member section - list

This commit is contained in:
Mads Rasmussen
2015-09-01 13:50:02 +02:00
parent 7ed6eb35f9
commit b932270854
2 changed files with 27 additions and 21 deletions

View File

@@ -1,27 +1,30 @@
<form novalidate name="contentForm"
ng-controller="Umbraco.Editors.Member.ListController"
ng-show="loaded">
<umb-panel>
<umb-header tabs="content.tabs">
<div class="umb-headline-editor-wrapper span12">
<h1>{{content.name}}</h1>
</div>
<form novalidate name="contentForm"
ng-controller="Umbraco.Editors.Member.ListController"
ng-show="loaded">
</umb-header>
<umb-editor-view umb-tabs>
<umb-tab-view>
<umb-editor-header
name="content.name"
name-locked="page.lockedName"
tabs="content.tabs"
menu="page.menu">
</umb-editor-header>
<umb-editor-container>
<umb-tabs-content view="true" class="form-horizontal">
<umb-tab id="tab{{tab.id}}" rel="{{tab.id}}" ng-repeat="tab in content.tabs">
<div class="umb-pane">
<umb-property property="property"
ng-repeat="property in tab.properties">
<umb-editor model="property"></umb-editor>
</umb-property>
<umb-property property="property" ng-repeat="property in tab.properties">
<umb-editor model="property"></umb-editor>
</umb-property>
</div>
</umb-tab>
</umb-tabs-content>
</umb-tab-view>
</umb-panel>
</form>
</umb-editor-container>
</umb-editor-view>
</form>

View File

@@ -11,7 +11,10 @@ function MemberListController($scope, $routeParams, $location, $q, $window, appS
//setup scope vars
$scope.currentSection = appState.getSectionState("currentSection");
$scope.currentNode = null; //the editors affiliated node
$scope.page = {};
$scope.page.lockedName = true;
//we are editing so get the content item from the server
memberResource.getListNode($routeParams.id)
.then(function (data) {