1: <?php
2:
3: namespace Mapbender\WmsBundle\Form\Type;
4:
5: use Symfony\Component\Form\AbstractType;
6: use Symfony\Component\Form\FormBuilderInterface;
7:
8: 9: 10:
11: class WmsSourceType extends AbstractType
12: {
13:
14: 15: 16:
17: public function getName()
18: {
19: return 'wmssource';
20: }
21:
22: 23: 24:
25: public function buildForm(FormBuilderInterface $builder, array $options)
26: {
27: $builder
28:
29: ->add('url', 'text',
30: array(
31: 'attr' => array(
32: 'title' => 'The application title, as shown in the browser '
33: . 'title bar and in lists.')))
34: ->add('username', 'text',
35: array(
36: 'attr' => array(
37: 'title' => 'The slug is based on the title and used in the '
38: . 'application URL.')))
39: ->add('password', 'textarea',
40: array(
41: 'required' => false,
42: 'attr' => array(
43: 'title' => 'The description is used in overview lists.')));
44: }
45:
46: }
47:
48: