1 <label class="input bordered with-icon" |
|
2 tal:omit-tag="view/required" i18n:domain="pyams_thesaurus"> |
|
3 <i class="icon-append fa fa-trash-o text-primary hint opaque" |
|
4 title="Clear selected values" i18n:attributes="title" |
|
5 tal:omit-tag="view/required" |
|
6 data-ams-hint-gravity="se" |
|
7 data-ams-click-handler="MyAMS.helpers.select2ClearSelection" |
|
8 tal:attributes="data-ams-select2-target view/name"></i> |
|
9 <div class="select2-parent" |
|
10 tal:omit-tag="view/required"> |
|
11 <input type="hidden" autocomplete="off" |
|
12 data-ams-select2-minimum-input-length="2" |
|
13 data-ams-select2-allow-clear="true" |
|
14 data-ams-select2-multiple="true" |
|
15 data-ams-select2-separator="|" |
|
16 data-ams-select2-query-method="findTerms" |
|
17 data-ams-select2-method-target="/api/thesaurus/json" |
|
18 tal:attributes="id view/id; |
|
19 name view/name; |
|
20 class string:select2 ${view/klass}; |
|
21 style view/style; |
|
22 title view/title; |
|
23 value python:'|'.join(view.value or ()); |
|
24 lang view/lang; |
|
25 onclick view/onclick; |
|
26 ondblclick view/ondblclick; |
|
27 onmousedown view/onmousedown; |
|
28 onmouseup view/onmouseup; |
|
29 onmouseover view/onmouseover; |
|
30 onmousemove view/onmousemove; |
|
31 onmouseout view/onmouseout; |
|
32 onkeypress view/onkeypress; |
|
33 onkeydown view/onkeydown; |
|
34 onkeyup view/onkeyup; |
|
35 disabled view/disabled; |
|
36 tabindex view/tabindex; |
|
37 onfocus view/onfocus; |
|
38 onblur view/onblur; |
|
39 onchange view/onchange; |
|
40 readonly view/readonly; |
|
41 accesskey view/accesskey; |
|
42 onselect view/onselect; |
|
43 data-ams-select2-values view/values_map; |
|
44 data-ams-select2-query-params view/query_params;" /> |
|
45 </div> |
|
46 </label> |
|