blob: 5b8a241ef1065c649954b85bab29a2cc97b15275 [file] [log] [blame]
Matteo Scandolo266907e2016-12-20 13:41:42 -08001<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 Scandolo80c3a652017-01-06 10:48:31 -08008 <a class="btn btn-default" ng-if="vm.list" href="{{vm.baseUrl}}add">Add</a>
Matteo Scandolo9d7940c2017-01-19 18:28:43 -08009 <a class="btn btn-default" ng-if="!vm.list" href="{{vm.baseUrl}}">Back to {{vm.title.toLowerCase()}} list</a>
Matteo Scandolo266907e2016-12-20 13:41:42 -080010 </div>
11 <div class="header-icon">
Matteo Scandoloa8a6fbb2016-12-21 16:59:08 -080012 <i class="pe page-header-icon pe-7s-note2"></i>
Matteo Scandolo266907e2016-12-20 13:41:42 -080013 </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 Scandoloee655a12016-12-19 15:38:43 -080023 </div>
Matteo Scandolo80c3a652017-01-06 10:48:31 -080024 <div class="row" ng-show="vm.related.length > 0 && vm.model.id">
Matteo Scandolo00d97892016-12-23 17:53:12 -080025 <div class="view-header">
26 <div class="col-lg-4">
27 <h4>Related Items: </h4>
Matteo Scandolo266907e2016-12-20 13:41:42 -080028 </div>
Matteo Scandolo00d97892016-12-23 17:53:12 -080029 <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 Scandolo266907e2016-12-20 13:41:42 -080040 </div>
Matteo Scandolo00d97892016-12-23 17:53:12 -080041 </div>
42 <div ng-if="vm.list">
Matteo Scandolo266907e2016-12-20 13:41:42 -080043 <xos-table config="vm.tableCfg" data="vm.tableData"></xos-table>
Matteo Scandoloee655a12016-12-19 15:38:43 -080044 </div>
Matteo Scandoloee655a12016-12-19 15:38:43 -080045
Matteo Scandolo266907e2016-12-20 13:41:42 -080046 <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 Scandolo80c3a652017-01-06 10:48:31 -080051</section>