File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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 <contact@e-commit.fr>
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 \LocaleType ;
14+
15+ class Select2LocaleType extends AbstractSelect2Type
16+ {
17+ /**
18+ * {@inheritdoc}
19+ */
20+ public function getParent ()
21+ {
22+ return LocaleType::class;
23+ }
24+
25+ /**
26+ * {@inheritdoc}
27+ */
28+ public function getBlockPrefix ()
29+ {
30+ return 'ecommit_javascript_select2locale ' ;
31+ }
32+ }
Original file line number Diff line number Diff line change 8787 {% endspaceless %}
8888{% endblock %}
8989
90+ {% block ecommit_javascript_select2locale_widget %}
91+ {% spaceless %}
92+ {{ form_widget(form ) }}
93+ {{ block (' ecommit_javascript_select2_js' ) }}
94+ {% endspaceless %}
95+ {% endblock %}
96+
9097{% block ecommit_javascript_select2_js %}
9198 <script type =" text/javascript" >
9299 $ (function () {
You can’t perform that action at this time.
0 commit comments