public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $statusTransformer = new StatusTransformer();
     $statusOptions = $statusTransformer->getOptions();
     $builder->add($builder->create('ticketStatus', 'choice', array('label' => 'diamante.desk.comment.ticket_status', 'required' => true, 'choices' => $statusOptions))->addModelTransformer($statusTransformer));
     $builder->add('content', 'oro_rich_text', array('label' => 'diamante.desk.comment.content', 'required' => true));
     $builder->add($builder->create('attachmentsInput', 'file', array('label' => 'diamante.desk.attachment.entity_plural_label', 'required' => false, 'attr' => array('multiple' => 'multiple')))->addModelTransformer(new AttachmentTransformer()));
     $builder->add('private', 'checkbox', array('label' => 'diamante.desk.comment.private', 'required' => false));
 }
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('branch', 'entity', array('label' => 'diamante.desk.attributes.branch', 'class' => 'DiamanteDeskBundle:Branch', 'property' => 'name', 'empty_value' => 'Choose branch...', 'required' => false));
     $builder->add('subject', 'text', array('label' => 'diamante.desk.attributes.subject', 'required' => true));
     $builder->add('description', 'oro_rich_text', array('label' => 'diamante.desk.common.description', 'required' => true, 'attr' => array('class' => 'diam-ticket-description')));
     $statusTransformer = new StatusTransformer();
     $statusOptions = $statusTransformer->getOptions();
     $builder->add($builder->create('status', 'choice', array('label' => 'diamante.desk.attributes.status', 'required' => true, 'choices' => $statusOptions))->addModelTransformer($statusTransformer));
     $builder->add($builder->create('attachmentsInput', 'file', array('label' => 'diamante.desk.attachment.file', 'required' => false, 'attr' => array('multiple' => 'multiple')))->addModelTransformer(new AttachmentTransformer()));
     $priorityTransformer = new PriorityTransformer();
     $priorities = $priorityTransformer->getOptions();
     $builder->add($builder->create('priority', 'choice', array('label' => 'diamante.desk.attributes.priority', 'required' => true, 'choices' => $priorities))->addModelTransformer($priorityTransformer));
     $sourceTransformer = new SourceTransformer();
     $sources = $sourceTransformer->getOptions();
     $builder->add($builder->create('source', 'choice', array('label' => 'diamante.desk.attributes.source', 'required' => true, 'choices' => $sources, 'preferred_choices' => ['web']))->addModelTransformer($sourceTransformer));
     $builder->add('reporter', 'diamante_reporter_select', array('label' => 'diamante.desk.attributes.reporter', 'required' => true));
     $builder->add('assignee', 'diamante_assignee_select', array('label' => 'diamante.desk.attributes.assignee', 'required' => false));
     // tags
     $builder->add('tags', 'oro_tag_select', array('label' => 'oro.tag.entity_plural_label'));
 }
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $statusTransformer = new StatusTransformer();
     $statusOptions = $statusTransformer->getOptions();
     $builder->add($builder->create('status', 'choice', array('label' => 'diamante.desk.attributes.status', 'required' => true, 'attr' => array('style' => "width:110px"), 'choices' => $statusOptions))->addModelTransformer($statusTransformer));
 }