Added "create activity" form (#35)

* added create activity form #24
* fixed form type for Projects
* UI improvement toolbar (same height as ll form elements and action buttons)
This commit is contained in:
Kevin Papst
2018-01-06 11:53:15 +01:00
committed by GitHub
parent f6ab543b8d
commit 3270ce7560
6 changed files with 30 additions and 10 deletions

View File

@@ -83,7 +83,6 @@ class TimesheetToolbarForm extends AbstractType
$choices = [];
foreach ($query->getCustomer()->getProjects() as $project) {
$choices[] = $project;
//$choices[$project->getName()] = $project->getId();
}
$builder

View File

@@ -11,8 +11,8 @@
namespace TimesheetBundle\Form\Type;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\OptionsResolver\OptionsResolver;
use TimesheetBundle\Entity\Project;
@@ -44,6 +44,6 @@ class ProjectType extends AbstractType
*/
public function getParent()
{
return ChoiceType::class;
return EntityType::class;
}
}