Skip to content

Commit 8d9e39e

Browse files
jaytaphwebmozart
authored andcommitted
[Form] Added the 'range' FormType
1 parent a353ff6 commit 8d9e39e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Resources/config/form.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@
113113
<service id="form.type.radio" class="Symfony\Component\Form\Extension\Core\Type\RadioType">
114114
<tag name="form.type" alias="radio" />
115115
</service>
116+
<service id="form.type.range" class="Symfony\Component\Form\Extension\Core\Type\RangeType">
117+
<tag name="form.type" alias="range" />
118+
</service>
116119
<service id="form.type.repeated" class="Symfony\Component\Form\Extension\Core\Type\RepeatedType">
117120
<tag name="form.type" alias="repeated" />
118121
</service>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?php echo $view['form']->block($form, 'form_widget_simple', array('type' => isset($type) ? $type : 'range'));

0 commit comments

Comments
 (0)