File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed
Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * This file is part of the EcommitJavascriptBundle package.
4+ *
5+ * (c) E-commit <[email protected] > 6+ *
7+ * For the full copyright and license information, please view the LICENSE
8+ * file that was distributed with this source code.
9+ */
10+
11+ namespace Ecommit \JavascriptBundle \Form \Type \Select2 ;
12+
13+ use Symfony \Component \Form \Extension \Core \Type \LanguageType ;
14+
15+ class Select2LanguageType extends AbstractSelect2Type
16+ {
17+ /**
18+ * {@inheritdoc}
19+ */
20+ public function getParent ()
21+ {
22+ return LanguageType::class;
23+ }
24+
25+ /**
26+ * {@inheritdoc}
27+ */
28+ public function getBlockPrefix ()
29+ {
30+ return 'ecommit_javascript_select2language ' ;
31+ }
32+ }
Original file line number Diff line number Diff line change 8080 {% endspaceless %}
8181{% endblock %}
8282
83+ {% block ecommit_javascript_select2language_widget %}
84+ {% spaceless %}
85+ {{ form_widget(form ) }}
86+ {{ block (' ecommit_javascript_select2_js' ) }}
87+ {% endspaceless %}
88+ {% endblock %}
89+
8390{% block ecommit_javascript_select2_js %}
8491 <script type =" text/javascript" >
8592 $ (function () {
You can’t perform that action at this time.
0 commit comments