blob: adeaaa46b8cb294c87796d30d0cabde3acd6f19d [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 Scandoloa4718592017-08-10 14:54:51 -070045 <uib-tabset>
Matteo Scandolo5d962a32017-08-01 18:16:14 -070046 <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>
Matteo Scandoloc8a58c82017-08-17 17:14:38 -070051 <uib-tab ng-if="vm.debugTab" heading="Debug">
52 <div class="panel-body">
53 <xos-debug-model ng-model="vm.model"></xos-debug-model>
54 </div>
55 </uib-tab>
Matteo Scandolo5d962a32017-08-01 18:16:14 -070056 <uib-tab ng-if="vm.getRelatedItemId(r, vm.model)" ng-repeat="r in vm.related.manytoone" heading="{{r.model}} {{vm.getHumanReadableOnField(r)}}">
57 <div class="panel-body">
58 <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>
59 </div>
60 </uib-tab>
Matteo Scandoloc3804aa2017-08-09 16:00:43 -070061 <uib-tab ng-if="vm.relatedModels.onetomany[r.model]" ng-repeat="r in vm.related.onetomany" classes="{{vm.relatedModels.onetomany[r.model][r.on_field].class}}" heading="{{r.model}} {{vm.getHumanReadableOnField(r)}}">
Matteo Scandolo5d962a32017-08-01 18:16:14 -070062 <div class="panel-body">
63 <xos-table config="vm.relatedModels.onetomany[r.model][r.on_field].tableConfig" data="vm.relatedModels.onetomany[r.model][r.on_field].model"></xos-table>
64 </div>
65 </uib-tab>
66 </uib-tabset>
Matteo Scandoloa1f748d2017-02-03 13:35:15 -080067</div>