blob: 17ff51a213547e820069c7c665d5d1a6438f1860 [file] [log] [blame]
Matteo Scandolo500e4c42017-08-08 13:05:24 -07001
2<!--
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16-->
17
18
Matteo Scandoloa1f748d2017-02-03 13:35:15 -080019<div class="row">
20 <div class="col-lg-12">
21 <div class="view-header">
22 <div class="pull-right text-right" style="line-height: 14px">
23 <!--<small>UI Elements<br>General<br> <span class="c-white">Grid system</span></small>-->
24 <a class="btn btn-default" ng-if="vm.list" href="{{vm.baseUrl}}add">Add</a>
25 <a class="btn btn-default" ng-if="!vm.list" href="{{vm.baseUrl}}">Back to {{vm.title.toLowerCase()}} list</a>
26 </div>
27 <div class="header-icon">
28 <i class="pe page-header-icon pe-7s-note2"></i>
29 </div>
30 <div class="header-title">
31 <h3>{{vm.title}}</h3>
32 <!--<small>-->
33 <!--Responsive, mobile first fluid grid system.-->
34 <!--</small>-->
Matteo Scandolo266907e2016-12-20 13:41:42 -080035 </div>
Matteo Scandoloee655a12016-12-19 15:38:43 -080036 </div>
Matteo Scandoloa1f748d2017-02-03 13:35:15 -080037 <hr>
Matteo Scandolo266907e2016-12-20 13:41:42 -080038 </div>
Matteo Scandoloa1f748d2017-02-03 13:35:15 -080039</div>
Matteo Scandoloa1f748d2017-02-03 13:35:15 -080040<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">
Matteo Scandolo5d962a32017-08-01 18:16:14 -070045 <uib-tabset active="active">
46 <uib-tab heading="{{vm.data.model}}">
47 <div class="panel-body">
48 <xos-form ng-model="vm.model" config="vm.formCfg"></xos-form>
49 </div>
50 </uib-tab>
51 <uib-tab ng-if="vm.getRelatedItemId(r, vm.model)" ng-repeat="r in vm.related.manytoone" heading="{{r.model}} {{vm.getHumanReadableOnField(r)}}">
52 <div class="panel-body">
53 <xos-form ng-model="vm.relatedModels.manytoone[r.model][r.on_field].model" config="vm.relatedModels.manytoone[r.model][r.on_field].formConfig"></xos-form>
54 </div>
55 </uib-tab>
56 <uib-tab classes="{{vm.relatedModels.onetomany[r.model][r.on_field].class}}" ng-if="vm.relatedModels.onetomany[r.model]" ng-repeat="r in vm.related.onetomany" heading="{{r.model}} {{vm.getHumanReadableOnField(r)}}">
57 <div class="panel-body">
58 <xos-table config="vm.relatedModels.onetomany[r.model][r.on_field].tableConfig" data="vm.relatedModels.onetomany[r.model][r.on_field].model"></xos-table>
59 </div>
60 </uib-tab>
61 </uib-tabset>
Matteo Scandoloa1f748d2017-02-03 13:35:15 -080062</div>