@@ 71-78 (lines=8) @@ | ||
68 | * @param Parameter $parameter |
|
69 | * @return array|\rtens\domin\delivery\web\Element[] |
|
70 | */ |
|
71 | public function headElements(Parameter $parameter) { |
|
72 | return [ |
|
73 | HeadElements::jquery(), |
|
74 | HeadElements::style('//cdn.rawgit.com/rtens/bootstrap-combobox/cffe84e7/css/bootstrap-combobox.css'), |
|
75 | HeadElements::script('//cdn.rawgit.com/rtens/bootstrap-combobox/cffe84e7/js/bootstrap-combobox.js'), |
|
76 | new Element('style', [], ['.typeahead-long { width:100% }']) |
|
77 | ]; |
|
78 | } |
|
79 | } |
@@ 56-72 (lines=17) @@ | ||
53 | * @param Parameter $parameter |
|
54 | * @return array|Element[] |
|
55 | */ |
|
56 | public function headElements(Parameter $parameter) { |
|
57 | return [ |
|
58 | HeadElements::bootstrap(), |
|
59 | HeadElements::jquery(), |
|
60 | HeadElements::style('//cdnjs.cloudflare.com/ajax/libs/bootstrap-switch/3.3.2/css/bootstrap3/bootstrap-switch.min.css'), |
|
61 | HeadElements::script('//cdnjs.cloudflare.com/ajax/libs/bootstrap-switch/3.3.2/js/bootstrap-switch.min.js'), |
|
62 | new Element('script', [], [" |
|
63 | $(function () { |
|
64 | $('.boolean-switch').bootstrapSwitch({ |
|
65 | size: 'small', |
|
66 | onColor: 'success', |
|
67 | onText: 'Yes', |
|
68 | offText: 'No' |
|
69 | }); |
|
70 | });"]) |
|
71 | ]; |
|
72 | } |
|
73 | } |