Got the data type editor drop down working properly, implemented structure for pre-value editor including the manifest

This commit is contained in:
Shannon
2013-08-16 13:33:43 +10:00
parent 3fc44d9a34
commit 315652e384
9 changed files with 177 additions and 18 deletions

View File

@@ -9,15 +9,17 @@ angular.module('umbraco.mocks').
}
var id = mocksUtils.getParameterByName(data, "id") || 1234;
var selectedId = String.CreateGuid();
var dataType = {
id: id,
name: "Data type " + id,
selectedEditor: String.CreateGuid(),
selectedEditor: selectedId,
availableEditors: [
{ name: "Some editor 1", editorId: String.CreateGuid() },
{ name: "Some editor 2", editorId: String.CreateGuid() },
{ name: "Some editor 3", editorId: String.CreateGuid() },
{ name: "Some editor 3", editorId: selectedId },
{ name: "Some editor 4", editorId: String.CreateGuid() },
{ name: "Some editor 5", editorId: String.CreateGuid() },
{ name: "Some editor 6", editorId: String.CreateGuid() }

View File

@@ -26,10 +26,10 @@
<div class="umb-pane">
<umb-property property="properties.selectedEditor">
<div>
<select name="selectedEditor" id="selectedEditor"
ng-model="availableEditors"
<select name="selectedEditor"
ng-model="content.selectedEditor"
required
ng-options="e.name for e in content.availableEditors track by e.editorId"></select>
ng-options="e.editorId as e.name for e in content.availableEditors"></select>
<span class="help-inline" val-msg-for="selectedEditor" val-toggle-msg="required">Required</span>
</div>