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