| <section class="content"> |
| <div class="container-fluid"> |
| <div class="row"> |
| <div class="col-lg-12"> |
| <div class="view-header"> |
| <div class="pull-right text-right" style="line-height: 14px"> |
| <!--<small>UI Elements<br>General<br> <span class="c-white">Grid system</span></small>--> |
| <a class="btn btn-default" ng-if="!vm.list" href="{{vm.baseUrl}}">Back</a> |
| </div> |
| <div class="header-icon"> |
| <i class="pe page-header-icon pe-7s-note2"></i> |
| </div> |
| <div class="header-title"> |
| <h3>{{vm.title}}</h3> |
| <!--<small>--> |
| <!--Responsive, mobile first fluid grid system.--> |
| <!--</small>--> |
| </div> |
| </div> |
| <hr> |
| </div> |
| </div> |
| <div ng-if="vm.list"> |
| <div class="row" ng-show="vm.related.length > 0"> |
| <div class="view-header"> |
| <div class="col-lg-4"> |
| <h4>Related Items: </h4> |
| </div> |
| <div class="col-lg-8 text-right"> |
| <div class="btn-group"> |
| <a ng-repeat="r in vm.related" href="#/core/{{r.toLowerCase()}}s/" class="btn btn-default"> |
| {{r}} |
| </a> |
| </div> |
| </div> |
| <hr> |
| </div> |
| </div> |
| <xos-table config="vm.tableCfg" data="vm.tableData"></xos-table> |
| </div> |
| |
| <div ng-if="!vm.list"> |
| <!--<pre>{{vm.model | json}}</pre>--> |
| <xos-form ng-model="vm.model" config="vm.formCfg"></xos-form> |
| </div> |
| </div> |
| </section> |