Matteo Scandolo | ee655a1 | 2016-12-19 15:38:43 -0800 | [diff] [blame^] | 1 | <div class="row"> |
| 2 | <div class="col-xs-8"> |
| 3 | <h1>{{vm.title}}</h1> |
| 4 | </div> |
| 5 | <div class="col-xs-4"> |
| 6 | <a class="btn btn-default" ng-if="!vm.list" href="{{vm.baseUrl}}">Back</a> |
| 7 | </div> |
| 8 | </div> |
| 9 | <div ng-if="vm.list"> |
| 10 | <div class="row" ng-show="vm.related.length > 0"> |
| 11 | <div class="col-xs-4"> |
| 12 | <h4>Related Items: </h4> |
| 13 | </div> |
| 14 | <div class="col-xs-8 text-right"> |
| 15 | <a ng-repeat="r in vm.related" href="#/core/{{r.toLowerCase()}}s/" class="btn btn-default"> |
| 16 | {{r}} |
| 17 | </a> |
| 18 | </div> |
| 19 | </div> |
| 20 | <xos-table config="vm.tableCfg" data="vm.tableData"></xos-table> |
| 21 | </div> |
| 22 | |
| 23 | <div ng-if="!vm.list"> |
| 24 | <!--<pre>{{vm.model | json}}</pre>--> |
| 25 | <xos-form ng-model="vm.model" config="vm.formCfg"></xos-form> |
| 26 | </div> |