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 WmsSourceSimpleType 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('originUrl', 'text',
30: array(
31: 'required' => true,
32: 'attr' => array(
33: 'title' => 'The wms GetCapabilities url.')))
34: ->add('username', 'text',
35: array(
36: 'required' => false,
37: 'attr' => array(
38: 'title' => 'The username.',
39: 'autocomplete' => 'off')))
40: ->add('password', 'password',
41: array(
42: 'required' => false,
43: 'attr' => array(
44: 'title' => 'The password.',
45: 'autocomplete' => 'off')));
46: }
47:
48: }
49:
50: