Matteo Scandolo | a1f748d | 2017-02-03 13:35:15 -0800 | [diff] [blame^] | 1 | <div class="row"> |
| 2 | <div class="col-lg-12"> |
| 3 | <div class="view-header"> |
| 4 | <div class="pull-right text-right" style="line-height: 14px"> |
| 5 | <!--<small>UI Elements<br>General<br> <span class="c-white">Grid system</span></small>--> |
| 6 | <a class="btn btn-default" ng-if="vm.list" href="{{vm.baseUrl}}add">Add</a> |
| 7 | <a class="btn btn-default" ng-if="!vm.list" href="{{vm.baseUrl}}">Back to {{vm.title.toLowerCase()}} list</a> |
| 8 | </div> |
| 9 | <div class="header-icon"> |
| 10 | <i class="pe page-header-icon pe-7s-note2"></i> |
| 11 | </div> |
| 12 | <div class="header-title"> |
| 13 | <h3>{{vm.title}}</h3> |
| 14 | <!--<small>--> |
| 15 | <!--Responsive, mobile first fluid grid system.--> |
| 16 | <!--</small>--> |
Matteo Scandolo | 266907e | 2016-12-20 13:41:42 -0800 | [diff] [blame] | 17 | </div> |
Matteo Scandolo | ee655a1 | 2016-12-19 15:38:43 -0800 | [diff] [blame] | 18 | </div> |
Matteo Scandolo | a1f748d | 2017-02-03 13:35:15 -0800 | [diff] [blame^] | 19 | <hr> |
Matteo Scandolo | 266907e | 2016-12-20 13:41:42 -0800 | [diff] [blame] | 20 | </div> |
Matteo Scandolo | a1f748d | 2017-02-03 13:35:15 -0800 | [diff] [blame^] | 21 | </div> |
| 22 | <div class="row" ng-show="vm.related.length > 0 && vm.model.id"> |
| 23 | <div class="view-header"> |
| 24 | <div class="col-lg-4"> |
| 25 | <h4>Related Items: </h4> |
| 26 | </div> |
| 27 | <div class="col-lg-8 text-right"> |
| 28 | <div class="btn-group"> |
| 29 | <a ng-if="vm.list" ng-repeat="r in vm.related" href="#/core/{{r.toLowerCase()}}s/" class="btn btn-default"> |
| 30 | {{r}} |
| 31 | </a> |
| 32 | <a ng-if="!vm.list && vm.getRelatedItem(r, vm.model)" ng-repeat="r in vm.related" href="#/core/{{r.toLowerCase()}}s/{{vm.getRelatedItem(r, vm.model)}}" class="btn btn-default"> |
| 33 | {{r}} |
| 34 | </a> |
| 35 | </div> |
| 36 | </div> |
| 37 | <hr> |
| 38 | </div> |
| 39 | </div> |
| 40 | <div ng-if="vm.list"> |
| 41 | <xos-table config="vm.tableCfg" data="vm.tableData"></xos-table> |
| 42 | </div> |
| 43 | |
| 44 | <div ng-if="!vm.list"> |
| 45 | <!--<pre>{{vm.model | json}}</pre>--> |
| 46 | <xos-form ng-model="vm.model" config="vm.formCfg"></xos-form> |
| 47 | </div> |