blob: 7c80b921b3e7281f7e2d68a11b758b8c60b07520 [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>-->
8 <a class="btn btn-default" ng-if="!vm.list" href="{{vm.baseUrl}}">Back</a>
9 </div>
10 <div class="header-icon">
Matteo Scandoloa8a6fbb2016-12-21 16:59:08 -080011 <i class="pe page-header-icon pe-7s-note2"></i>
Matteo Scandolo266907e2016-12-20 13:41:42 -080012 </div>
13 <div class="header-title">
14 <h3>{{vm.title}}</h3>
15 <!--<small>-->
16 <!--Responsive, mobile first fluid grid system.-->
17 <!--</small>-->
18 </div>
19 </div>
20 <hr>
21 </div>
Matteo Scandoloee655a12016-12-19 15:38:43 -080022 </div>
Matteo Scandolo00d97892016-12-23 17:53:12 -080023 <div class="row" ng-show="vm.related.length > 0">
24 <div class="view-header">
25 <div class="col-lg-4">
26 <h4>Related Items: </h4>
Matteo Scandolo266907e2016-12-20 13:41:42 -080027 </div>
Matteo Scandolo00d97892016-12-23 17:53:12 -080028 <div class="col-lg-8 text-right">
29 <div class="btn-group">
30 <a ng-if="vm.list" ng-repeat="r in vm.related" href="#/core/{{r.toLowerCase()}}s/" class="btn btn-default">
31 {{r}}
32 </a>
33 <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">
34 {{r}}
35 </a>
36 </div>
37 </div>
38 <hr>
Matteo Scandolo266907e2016-12-20 13:41:42 -080039 </div>
Matteo Scandolo00d97892016-12-23 17:53:12 -080040 </div>
41 <div ng-if="vm.list">
Matteo Scandolo266907e2016-12-20 13:41:42 -080042 <xos-table config="vm.tableCfg" data="vm.tableData"></xos-table>
Matteo Scandoloee655a12016-12-19 15:38:43 -080043 </div>
Matteo Scandoloee655a12016-12-19 15:38:43 -080044
Matteo Scandolo266907e2016-12-20 13:41:42 -080045 <div ng-if="!vm.list">
46 <!--<pre>{{vm.model | json}}</pre>-->
47 <xos-form ng-model="vm.model" config="vm.formCfg"></xos-form>
48 </div>
49 </div>
50</section>