src/BlogBundle/Form/EntryType.php
/**
     * @param FormBuilderInterface $builder
     * @param array $options
     */
@param FormBuilderInterface $builder
@param array $options
@param FormBuilderInterface $builder @param array $options
public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('title', TextType::class,array(
				"label" => "Titulo:",
				"attr" =>array("class" => "form-control")
			))
            ->add('content', TextareaType::class,array(
				"label" => "Contenido:",
				"attr" =>array("class" => "form-control tinymce")
			))
            ->add('status', ChoiceType::class,array(
				"label" => "Estado:",
				"choices"=> array(
					"Publicado" => "public",
					"Privado" => "private"
				),
				"attr" =>array("class" => "form-control")
			))
			->add('image', FileType::class,array(
				"label" => "Imagen:",
				"attr" =>array("class" => "form-control"),
				"data_class" => null,
				"required" => false
			))
            ->add('category', EntityType::class,array(
				"class" => "BlogBundle:Category",
				"label" => "Categorias:",
				"attr" =>array("class" => "form-control")
			))
			->add('user', EntityType::class,array(
				"class" => "BlogBundle:User",
				"label" => "Usuario:",
				"attr" =>array("class" => "form-control")
			))
			->add('page', EntityType::class,array(
                "class" => "BlogBundle:Page",
                "label" => "Página:",
                "attr" =>array("class" => "form-control")
            ))
			->add('tags', TextType::class,array(
				"mapped" => false,
				"required" => false,
				"label" => "Etiquetas:",
				"attr" =>array("class" => "form-control")
			))
			->add('active', ChoiceType::class,array(
				"label" => "Estado:",
				"choices"=> array(
					"Activo" => "1",
					"Inactivo" => "0"
				),
				"attr" =>array("class" => "form-control")
			))
			->add('Guardar', SubmitType::class, array("attr" =>array(
				"class" => "form-submit btn btn-success",
			)))
        ;
    }
public function buildForm ( FormBuilderInterface $ builder , array $ options ) { $ builder -> add ( 'title' , TextType :: class , array ( " label " => " Titulo: " , " attr " => array ( " class " => " form-control " ) ) ) -> add ( 'content' , TextareaType :: class , array ( " label " => " Contenido: " , " attr " => array ( " class " => " form-control tinymce " ) ) ) -> add ( 'status' , ChoiceType :: class , array ( " label " => " Estado: " , " choices " => array ( " Publicado " => " public " , " Privado " => " private " ) , " attr " => array ( " class " => " form-control " ) ) ) -> add ( 'image' , FileType :: class , array ( " label " => " Imagen: " , " attr " => array ( " class " => " form-control " ) , " data_class " => null , " required " => false ) ) -> add ( 'category' , EntityType :: class , array ( " class " => " BlogBundle:Category " , " label " => " Categorias: " , " attr " => array ( " class " => " form-control " ) ) ) -> add ( 'user' , EntityType :: class , array ( " class " => " BlogBundle:User " , " label " => " Usuario: " , " attr " => array ( " class " => " form-control " ) ) ) -> add ( 'page' , EntityType :: class , array ( " class " => " BlogBundle:Page " , " label " => " Página:" , " attr " => array ( " class " => " form-control " ) ) ) -> add ( 'tags' , TextType :: class , array ( " mapped " => false , " required " => false , " label " => " Etiquetas: " , " attr " => array ( " class " => " form-control " ) ) ) -> add ( 'active' , ChoiceType :: class , array ( " label " => " Estado: " , " choices " => array ( " Activo " => " 1 " , " Inactivo " => " 0 " ) , " attr " => array ( " class " => " form-control " ) ) ) -> add ( 'Guardar' , SubmitType :: class , array ( " attr " => array ( " class " => " form-submit btn btn-success " , ) ) ) ; }
@param FormBuilderInterface $builder
 @param array $options
@param FormBuilderInterface $builder @param array $options