1: <?php
2:
3: namespace Mapbender\CoreBundle\Element\Type;
4:
5: use Symfony\Component\Form\AbstractType;
6: use Symfony\Component\Form\FormBuilderInterface;
7: use Symfony\Component\OptionsResolver\OptionsResolverInterface;
8:
9: 10: 11:
12: class ActivityIndicatorAdminType extends AbstractType
13: {
14:
15: 16: 17:
18: public function getName()
19: {
20: return 'activityindicator';
21: }
22:
23: 24: 25:
26: public function setDefaultOptions(OptionsResolverInterface $resolver)
27: {
28: $resolver->setDefaults(array(
29: 'application' => null
30: ));
31: }
32:
33: 34: 35:
36: public function buildForm(FormBuilderInterface $builder, array $options)
37: {
38: $builder->add('tooltip', 'text', array('required' => false))
39: ->add('activityClass', 'text', array('required' => false))
40: ->add('ajaxActivityClass', 'text', array('required' => false))
41: ->add('tileActivityClass', 'text', array('required' => false));
42: }
43:
44: }