|
@@ -0,0 +1,38 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+namespace CablemodemBundle\Form;
|
|
|
+
|
|
|
+use Symfony\Component\Form\AbstractType;
|
|
|
+use Symfony\Component\Form\FormBuilderInterface;
|
|
|
+use Symfony\Component\OptionsResolver\OptionsResolver;
|
|
|
+
|
|
|
+class CablemodemType extends AbstractType
|
|
|
+{
|
|
|
+ /**
|
|
|
+ * {@inheritdoc}
|
|
|
+ */
|
|
|
+ public function buildForm(FormBuilderInterface $builder, array $options)
|
|
|
+ {
|
|
|
+ $builder->add('clientId')->add('mac')->add('activationCode')->add('created')->add('updated')->add('currentState')->add('administrativeState')->add('transitionState')->add('extraData')->add('tenancyId')->add('node')->add('profile')->add('model')->add('workflow')->add('location');
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * {@inheritdoc}
|
|
|
+ */
|
|
|
+ public function configureOptions(OptionsResolver $resolver)
|
|
|
+ {
|
|
|
+ $resolver->setDefaults(array(
|
|
|
+ 'data_class' => 'CablemodemBundle\Entity\Cablemodem'
|
|
|
+ ));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * {@inheritdoc}
|
|
|
+ */
|
|
|
+ public function getBlockPrefix()
|
|
|
+ {
|
|
|
+ return 'cablemodembundle_cablemodem';
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+}
|