14211c295855b60efc689a8f0586bdd72162362a
[holmes/rule-management.git] / rulemgt-frontend / src / assets / framework / templateWidget.html
1 <!--
2
3     Copyright 2016-2017, Huawei Technologies Co., Ltd.
4
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
8
9             http://www.apache.org/licenses/LICENSE-2.0
10
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.
16
17 -->
18
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}}"/>
22 </script>
23
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>
27     </button>
28 </script>
29
30 <!-- Visual Buttons -->
31 <script id="visualButtons" type="text/html">
32     <button type="button" class="btn btn-{{type}}">{{title}}</button>
33 </script>
34
35 <!-- Different sized Buttons -->
36 <script id="sizeButtons" type="text/html">
37     <button type="button" class="btn btn-{{type}} {{size}}">{{title}}</button>
38 </script>
39
40 <!-- Icon Buttons -->
41 <script id="iconButtons" type="text/html">
42     <button type="button" class="btn btn-{{type}}">{{title}}
43         <span class="glyphicon {{gType}}"></span>
44     </button>
45 </script>
46
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>
52         </button>
53         <ul class="dropdown-menu">
54             {{#items}}<li><a href="#">{{itemLabel}}</a></li>{{/items}}
55         </ul>
56     </div>
57 </script>
58
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>
62     </button>
63     <ul class="dropdown-menu">
64         {{#items}}
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}}
67         {{/items}}
68     </ul>
69 </script>
70
71 <script id="simpleDropdownTmpl" type="text/html">
72     <div class="dropdownplain">
73         <ul class="nav navbar-nav">
74             <li>
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}}
78                 </ul>
79             </li>
80         </ul>
81     </div>
82 </script>
83
84
85 <!--Radio Buttons-->
86 <script id="radioButtons" type="text/html">
87     <div>
88         <input class="magic-radio" type="radio" name="radio" id="radio{{id}}"/>
89         <label for="radio{{id}}">{{label}}</label></br>
90     </div>
91 </script>
92
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>
98     </div>
99 </script>
100
101 <!--text-->
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>
106     </div>
107 </script>
108
109 <!--email-->
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>
114     </div>
115 </script>
116
117 <!--url-->
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>
122     </div>
123 </script>
124
125 <!--password-->
126 <script  id="password" type="text/html">
127     <div class="css-form">
128
129
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>
132     </div>
133 </script>
134
135 <!--numeric-->
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>
140     </div>
141 </script>
142
143 <!--dot-->
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>
148     </div>
149 </script>
150
151 <!--date-->
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>
156     </div>
157 </script>
158
159 <!--Month-->
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>
164     </div>
165 </script>
166
167
168 <!--Week-->
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>
173     </div>
174 </script>
175
176 <!--time-->
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>
181     </div>
182 </script>
183
184 <!--ipv4-->
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>
189     </div>
190 </script>
191
192 <!--ipv6-->
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>
197     </div>
198 </script>
199
200 <!--textarea-->
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>
205     </div>
206 </script>
207
208 <!--note-->
209 <script id="note" type="text/html">
210
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>
213 </script>