1: <?php
2: namespace Mapbender\WmtsBundle\Form\Type;
3:
4: use Symfony\Component\Form\AbstractType;
5: use Symfony\Component\Form\FormBuilderInterface;
6: use Symfony\Component\OptionsResolver\OptionsResolverInterface;
7:
8:
9:
10: class WmtsSourceSimpleType extends AbstractType {
11:
12: public function getName() {
13: return 'wmtssource';
14: }
15:
16: public function buildForm(FormBuilderInterface $builder, array $options) {
17: $builder
18:
19: ->add('originUrl', 'text', array(
20: 'required' => true,
21: 'attr' => array(
22: 'title' => 'The wms GetCapabilities url.')))
23: ->add('username', 'text', array(
24: 'required' => false,
25: 'attr' => array(
26: 'title' => 'The usename.')))
27: ->add('password', 'text', array(
28: 'required' => false,
29: 'attr' => array(
30: 'title' => 'The password.')));
31: }
32: }
33:
34: