-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathfiltersParam.html
47 lines (40 loc) · 1.48 KB
/
filtersParam.html
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
<ul class="unstyled">
<li>
<select class="input-small"
ng-model="param.nesting"
ng-options="nestingValue as nestingType for (nestingType, nestingValue) in param.type.nesting"
ng-change="updateApiCall()">
</select>
</li>
<li ng-repeat="p in param.parse">
<div class="input-append">
<select class="input-medium"
ng-model="p.selectField"
ng-options="field.name for field in displayCtrl.fields"
ng-change="updateApiCall()">
</select>
<select class="input-mini"
ng-model="p.selectOperator"
ng-options="operator.value as operator.name for operator in param.type.operators"
ng-change="updateApiCall()">
</select>
<input class="input-medium"
type="text"
ng-model="p.selectValue"
placeholder="{{ p.selectField.description }}"
ng-change="updateApiCall()">
<button class="btn"
type="button"
ng-click="param.parse.splice($index, 1)">
<i class="icon-trash"></i>
</button>
</div>
<li>
<li>
<button class="btn"
type="button"
ng-click="addFilterField(param.parse)">
<i class="icon-plus"></i> Add
</button>
</li>
</ul>