aboutsummaryrefslogtreecommitdiffstats
path: root/common/src/main/webapp/framework/templateContainer.html
blob: ef6f01c6003bb33df928637606743e561a942246 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!--

    Copyright 2016-2017, Huawei Technologies Co., Ltd.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

            http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<!-- Accordion -->
<script id="accordion" type="text/html">
    {{#items}}
    <div class="panel panel-default">
        <h3 class="panel-title">
            <a data-toggle="collapse" data-parent="#accordion" data-target="#{{tabId}}">{{header}}</a>
        </h3>
        <div id="{{tabId}}" class="panel-collapse collapse {{#isActive}}in{{/isActive}}">
            <div class="panel-body"> {{msg}} </div>
        </div>
    </div>
    {{/items}}
</script>

<!--Tabs-->
<script id="tabs" type="text/html">
    <ul class="nav nav-tabs">
        {{#items}}<li {{#isActive}}class="active"{{/isActive}}><a data-toggle="tab" data-target="#{{target}}">{{tablabel}}</a></li>{{/items}}
    </ul>
    <div class="tab-content">
        {{#items}}
        <div id="{{target}}" class="tab-pane fade {{#isActive}}in active{{/isActive}}">
            <h3>{{tablabel}}</h3>
            <p>{{msg}}</p>
        </div>
        {{/items}}
    </div>
</script>

<!--Vertical Tabs-->
<script id="vtabs" type="text/html">
    <ul class="nav nav-stacked col-sm-4 col-md-4 col-lg-4">
        {{#items}}<li {{#isActive}}class="active"{{/isActive}}><a data-toggle="tab" data-target="#{{target}}">{{tablabel}}</a></li>{{/items}}
    </ul>
    <div class="tab-content col-sm-8 col-md-8 col-lg-8">
        {{#items}}
        <div id="{{target}}" class="tab-pane fade {{#isActive}}in active{{/isActive}}">
            <h3>{{tablabel}}</h3>
            <p>{{msg}}</p>
        </div>
        {{/items}}
    </div>
</script>

<!--Table-->
<script id="table" type="text/html">
    {{#filter}}<input type="text" id="myInput" onkeyup="{{action}}" placeholder="Search for {{searchField}}">{{/filter}}
    <table id="myTable{{#filter}}_search{{/filter}}" class="table {{#striped}}table-striped{{/striped}} {{#border}}table-bordered{{/border}} {{#hover}}table-hover{{/hover}} {{#condensed}}table-condensed{{/condensed}}">
        <thead>
        <tr>
            {{#itemHeader}}<th>{{.}}</th>{{/itemHeader}}
        </tr>
        </thead>
        <tbody>
        {{#rowitem}}
        <tr>
            {{#values}}<td>{{.}}</td>{{/values}}
        </tr>
        {{/rowitem}}
        </tbody>
    </table>
</script>