blob: adb0500b51db031083e9f832cba0b09566f1107a [file] [log] [blame]
Matteo Scandoloa1f748d2017-02-03 13:35:15 -08001<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 Scandolo266907e2016-12-20 13:41:42 -080017 </div>
Matteo Scandoloee655a12016-12-19 15:38:43 -080018 </div>
Matteo Scandoloa1f748d2017-02-03 13:35:15 -080019 <hr>
Matteo Scandolo266907e2016-12-20 13:41:42 -080020 </div>
Matteo Scandoloa1f748d2017-02-03 13:35:15 -080021</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">
Matteo Scandolo1aee1982017-02-17 08:33:23 -080029 <a ng-if="vm.list" ng-repeat="r in vm.related" href="#/core/{{r.model.toLowerCase()}}s/" class="btn btn-default">
30 {{r.model}}
Matteo Scandoloa1f748d2017-02-03 13:35:15 -080031 </a>
Matteo Scandolo1aee1982017-02-17 08:33:23 -080032 <a ng-if="!vm.list && vm.getRelatedItem(r, vm.model)" ng-repeat="r in vm.related" href="#/core/{{r.model.toLowerCase()}}s/{{vm.getRelatedItem(r, vm.model)}}" class="btn btn-default">
33 {{r.model}}
Matteo Scandoloa1f748d2017-02-03 13:35:15 -080034 </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>