app/views/collection_json_browser/home/index.html in collection-json-browser-0.0.10 vs app/views/collection_json_browser/home/index.html in collection-json-browser-0.0.11
- old
+ new
@@ -23,29 +23,21 @@
<div class="location thumbnail">
<label for='href'>href: </label>
<input id='href' value="{{collection.href}}">
</div>
- <div ng-show="template">
+ <div ng-show="collection.template">
<h2>Template</h2>
<div class="template thumbnail">
<form class="form-horizontal" ng-submit="submit()">
- <fieldset class="control-group" ng-repeat="field in template">
+ <fieldset class="control-group" ng-repeat="field in collection.template.data">
<label class="control-label" for='{{field.name}}'>{{field.name}}</label>
<div class="controls" ng-switch on="field.array">
<input ng-switch-when="undefined" id='{{field.name}}' value="{{field.value}}" ng-model='field.value'>
<select ng-switch-default id='{{field.name}}' value="{{field.value}}" ng-model='field.value' ng-options="option for option in field.array">
</select>
</div>
</fieldset>
- <div ng-show="collection.items">
- <fieldset class="control-group">
- <label class="control-label" for="item-to-update">item to update</label>
- <div class="controls">
- <select id='item-to-updat' ng-model='item' ng-options="option.value as option.name for option in itemPaths"></select>
- </div>
- </fieldset>
- </div>
<div class="control-group">
<div class="controls">
<button type="submit" class="btn">Submit</button>
</div>
</div>