3 Copyright 2016-2017, Huawei Technologies Co., Ltd.
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
9 http://www.apache.org/licenses/LICENSE-2.0
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
19 <!-- Default Buttons <button class="btnDefault" ng-click="{{clickAction}}">{{title}}</button>-->
20 <script id="defaultButtons" type="text/html">
21 <input type="button" class="btnDefault btnmrg" ng-click="{{clickAction}}" value="{{title}}"/>
24 <script id="defaultIconButtons" type="text/html">
25 <button id="iconBtn" type="button" class="btnDefault btnmrg {{type}}" ng-click="{{clickAction}}">{{title}}
26 <span class="glyphicon {{gType}} pull-{{iconPosition}}"></span>
30 <!-- Visual Buttons -->
31 <script id="visualButtons" type="text/html">
32 <button type="button" class="btn btn-{{type}}">{{title}}</button>
35 <!-- Different sized Buttons -->
36 <script id="sizeButtons" type="text/html">
37 <button type="button" class="btn btn-{{type}} {{size}}">{{title}}</button>
41 <script id="iconButtons" type="text/html">
42 <button type="button" class="btn btn-{{type}}">{{title}}
43 <span class="glyphicon {{gType}}"></span>
47 <!--Dropdown template-->
48 <script id="dropDown" type="text/html">
49 <div class="drop{{position}}">
50 <button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">{{title}}
51 <span class="caret"></span>
53 <ul class="dropdown-menu">
54 {{#items}}<li><a href="#">{{itemLabel}}</a></li>{{/items}}
59 <script id="dropDownHeader" type="text/html">
60 <button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">{{title}}
61 <span class="caret"></span>
63 <ul class="dropdown-menu">
65 {{#isheader}}<li class="divider"></li><li class="dropdown-header">{{itemLabel}}</li><li class="divider"></li>{{/isheader}}
66 {{^isheader}}<li><a href="#">{{itemLabel}}</a></li>{{/isheader}}
71 <script id="simpleDropdownTmpl" type="text/html">
72 <div class="dropdownplain">
73 <ul class="nav navbar-nav">
75 <a class="dropdown-toggle" data-toggle="dropdown">{{title}} <span class="glyphicon glyphicon-chevron-down pull-right"></span></a>
76 <ul class="dropdown-menu">
77 {{#items}}<li><a target="_blank">{{itemLabel}}</a></li>{{/items}}
86 <script id="radioButtons" type="text/html">
88 <input class="magic-radio" type="radio" name="radio" id="radio{{id}}"/>
89 <label for="radio{{id}}">{{label}}</label></br>
93 <!--Check boxes template-->
94 <script id="checkBoxes" type="text/html">
95 <div class="funkyradio-{{type}}">
96 <input type="checkbox" name="check" id="checkbox{{id}}" {{#checked}}checked{{/checked}} />
97 <label for="checkbox{{id}}">{{label}}</label>
102 <script id="textfield" type="text/html">
103 <div class="css-form">
104 <input id ="textbox" name="textbox" class="form-control" placeholder="{{placeholder}}" ng-model="{{modalVar}}" type="text" ng-blur="{{errfunc}}({{modalVar}})" required >
105 <span class="errMsg" ng-show="{{errtag}}">{{errmsg}}</span>
110 <script id="email" type="text/html">
111 <div class="css-form">
112 <input class="form-control" placeholder="{{placeholder}}" ng-model="{{modalVar}}" type="email" ng-blur="{{errfunc}}({{modalVar}})" required>
113 <span class="errMsg" ng-show="{{errtag}}">{{errmsg}}</span>
118 <script id="url" type="text/html">
119 <div class="css-form">
120 <input class="form-control" placeholder="{{placeholder}}" ng-model="{{modalVar}}" type="url" ng-blur="{{errfunc}}({{modalVar}})" required>
121 <span class="errMsg" ng-show="{{errtag}}">{{errmsg}}</span>
126 <script id="password" type="text/html">
127 <div class="css-form">
130 <input class="form-control" placeholder="{{placeholder}}" ng-model="{{modalVar}}" type="password" pattern=".{3,}" maxlength="{{#maxLength}}{{maxLength}}{{/maxLength}}{{^maxLength}}9{{/maxLength}}" ng-blur="{{errfunc}}({{modalVar}})" required>
131 <span class="errMsg" ng-show="{{errtag}}">{{errmsg}}</span>
136 <script id="numeric" type="text/html">
137 <div class="css-form">
138 <input class="form-control" placeholder="{{placeholder}}" ng-model="{{modalVar}}" type="number" ng-blur="{{errfunc}}({{modalVar}})" required/>
139 <span class="errMsg" ng-show="{{errtag}}">{{errmsg}}</span>
144 <script id="dot" type="text/html">
145 <div class="css-form">
146 <input class="form-control" placeholder="{{placeholder}}" ng-model="{{modalVar}}" type="datetime-local" ng-blur="{{errfunc}}({{modalVar}})" required>
147 <span class="errMsg" ng-show="{{errtag}}">{{errmsg}}</span>
152 <script id="dateinput" type="text/html">
153 <div class="css-form">
154 <input class="form-control" placeholder="{{placeholder}}" ng-model="{{modalVar}}" type="date" ng-blur="{{errfunc}}({{modalVar}})" required>
155 <span class="errMsg" ng-show="{{errtag}}">{{errmsg}}</span>
160 <script id="monthinput" type="text/html">
161 <div class="css-form">
162 <input class="form-control" placeholder="{{placeholder}}" ng-model="{{modalVar}}" type="month" ng-blur="{{errfunc}}({{modalVar}})" required>
163 <span class="errMsg" ng-show="{{errtag}}">{{errmsg}}</span>
169 <script id="weekinput" type="text/html">
170 <div class="css-form">
171 <input class="form-control" placeholder="{{placeholder}}" ng-model="{{modalVar}}" type="week" ng-blur="{{errfunc}}({{modalVar}})" required>
172 <span class="errMsg" ng-show="{{errtag}}">{{errmsg}}</span>
177 <script id="timeinput" type="text/html">
178 <div class="css-form">
179 <input class="form-control" placeholder="{{placeholder}}" ng-model="{{modalVar}}" type="time" ng-blur="{{errfunc}}({{modalVar}})" required>
180 <span class="errMsg" ng-show="{{errtag}}">{{errmsg}}</span>
185 <script id="ipv4" type="text/html">
186 <div class="css-form">
187 <input class="form-control" type="ipv4" placeholder="{{placeholder}}" ng-model="{{modalVar}}" pattern="((^|\.)((25[0-5])|(2[0-4]\d)|(1\d\d)|([1-9]?\d))){4}$" ng-blur="{{errfunc}}({{modalVar}})" required>
188 <span class="errMsg" ng-show="{{errtag}}">{{errmsg}}</span>
193 <script id="ipv6" type="text/html">
194 <div class="css-form">
195 <input class="form-control" placeholder="{{placeholder}}" ng-model="{{modalVar}}" type="ipv6" pattern="^([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])" ng-blur="{{errfunc}}({{modalVar}})" required>
196 <span class="errMsg" ng-show="{{errtag}}">{{errmsg}}</span>
201 <script id="textarea" type="text/html">
202 <div class="css-form">
203 <textarea class="form-control" rows="4" cols="50" placeholder="{{placeholder}}" ng-model="{{modalVar}}" ng-blur="{{errfunc}}({{modalVar}})" required></textarea>
204 <span class="errMsg" ng-show="{{errtag}}">{{errmsg}}</span>
209 <script id="note" type="text/html">
211 <a id="noteanchor" href="#/home/textarea" title="Note" data-toggle="popover" data-trigger="focus" data-placement="{{placement}}">
212 <span class="glyphicon glyphicon-info-sign "></span></a>