From 264818550f6c33e03f3bdb53b9e45df21ada4d9b Mon Sep 17 00:00:00 2001 From: Wilmer Date: Thu, 23 Mar 2017 08:51:37 -0400 Subject: [PATCH] creada la entidad pida plazo para los plazos de las tareas --- src/AppBundle/Entity/PidaPlazo.php | 107 +++++++++++++++++++++++++++++++++++++ src/AppBundle/Form/PidaType.php | 17 +++--- 2 files changed, 115 insertions(+), 9 deletions(-) create mode 100644 src/AppBundle/Entity/PidaPlazo.php diff --git a/src/AppBundle/Entity/PidaPlazo.php b/src/AppBundle/Entity/PidaPlazo.php new file mode 100644 index 0000000..bafd6f7 --- /dev/null +++ b/src/AppBundle/Entity/PidaPlazo.php @@ -0,0 +1,107 @@ +nombre = $nombre; + + return $this; + } + + /** + * Get nombre + * + * @return string + */ + public function getNombre() + { + return $this->nombre; + } + + /** + * Set descripcion + * + * @param string $descripcion + * @return Estatus + */ + public function setDescripcion($descripcion) + { + $this->descripcion = $descripcion; + + return $this; + } + + /** + * Get descripcion + * + * @return string + */ + public function getDescripcion() + { + return $this->descripcion; + } + + /** + * Get id + * + * @return integer + */ + public function getId() + { + return $this->id; + } + + public function __toString() { + return $this->getNombre(); + } +} \ No newline at end of file diff --git a/src/AppBundle/Form/PidaType.php b/src/AppBundle/Form/PidaType.php index 24dc107..153ceb7 100644 --- a/src/AppBundle/Form/PidaType.php +++ b/src/AppBundle/Form/PidaType.php @@ -12,9 +12,10 @@ namespace AppBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; -use Symfony\Component\Form\Extension\Core\Type\SubmitType; + use Symfony\Bridge\Doctrine\Form\Type\EntityType; +use Symfony\Component\Form\Extension\Core\Type\TextType; class PidaType extends AbstractType { @@ -23,7 +24,7 @@ class PidaType extends AbstractType $builder ->add('id_plan_historico_nacional_estrategico', EntityType::class, array( - 'label' => false, + 'label' => 'Objetivos Históricos', 'attr' => array( 'class' => 'select2' ), @@ -35,7 +36,7 @@ class PidaType extends AbstractType )) ->add('id_actividad_docente', EntityType::class, array( - 'label' => false, + 'label' => 'Actividad Docente', 'attr' => array( 'class' => 'select2' ), @@ -47,16 +48,14 @@ class PidaType extends AbstractType )) - ->add('objetivo_especifico') + ->add('objetivo_especifico', TextType::class, array( + 'label' => 'Tarea' + )) ->add('fecha_inicio') ->add('fecha_final') - - ->add('send', SubmitType::class, array( - 'label' => 'Enviar Actividad PIDA', - 'attr' => array('class' => 'btn btn-success btn-block') - )) + ; -- 2.0.0