Show More
@@ -21,7 +21,7 b'' | |||||
21 | tal:attributes="label item.label"> |
|
21 | tal:attributes="label item.label"> | |
22 | <option tal:repeat="(value, description) item.options" |
|
22 | <option tal:repeat="(value, description) item.options" | |
23 | tal:attributes=" |
|
23 | tal:attributes=" | |
24 | selected (multiple and value in list(map(unicode, cstruct)) or value == list(map(unicode, cstruct))) and 'selected'; |
|
24 | selected python:field.widget.get_select_value(cstruct, value); | |
25 | class css_class; |
|
25 | class css_class; | |
26 | label field.widget.long_label_generator and description; |
|
26 | label field.widget.long_label_generator and description; | |
27 | value value" |
|
27 | value value" | |
@@ -29,7 +29,7 b'' | |||||
29 | </optgroup> |
|
29 | </optgroup> | |
30 | <option tal:condition="not isinstance(item, optgroup_class)" |
|
30 | <option tal:condition="not isinstance(item, optgroup_class)" | |
31 | tal:attributes=" |
|
31 | tal:attributes=" | |
32 | selected (multiple and item[0] in list(map(unicode, cstruct)) or item[0] == unicode(cstruct)) and 'selected'; |
|
32 | selected python:field.widget.get_select_value(cstruct, item[0]); | |
33 | class css_class; |
|
33 | class css_class; | |
34 | value item[0]">${item[1]}</option> |
|
34 | value item[0]">${item[1]}</option> | |
35 | </tal:loop> |
|
35 | </tal:loop> | |
@@ -37,7 +37,7 b'' | |||||
37 |
|
37 | |||
38 | <script type="text/javascript"> |
|
38 | <script type="text/javascript"> | |
39 | deform.addCallback( |
|
39 | deform.addCallback( | |
40 |
'${ |
|
40 | '${oid}', | |
41 | function(oid) { |
|
41 | function(oid) { | |
42 | $('#' + oid).select2({ |
|
42 | $('#' + oid).select2({ | |
43 | containerCssClass: 'form-control drop-menu', |
|
43 | containerCssClass: 'form-control drop-menu', |
General Comments 0
You need to be logged in to leave comments.
Login now