1: <?php
2:
3: namespace Mapbender\CoreBundle\Form\Type;
4:
5: use Symfony\Component\Form\AbstractType;
6: use Symfony\Component\Form\FormBuilderInterface;
7: use Symfony\Component\Form\FormView;
8: use Symfony\Component\Form\FormInterface;
9:
10: class PositionType extends AbstractType
11: {
12: public function getName()
13: {
14: return 'position';
15: }
16:
17: public function getParent()
18: {
19: return 'collection';
20: }
21:
22: public function finishView(FormView $view, FormInterface $form, array $options)
23: {
24: $view->getChild(0)->set('label', 'x')->set('attr', array('placeholder' => 'x'));
25: $view->getChild(1)->set('label', 'y')->set('attr', array('placeholder' => 'y'));
26: }
27: }
28:
29: