From 943032a9188bd8f375b60ed4e3fe5f7c3ea05cc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Sun, 5 Jul 2015 23:23:29 +0200 Subject: [PATCH] layout of time widget --- Form/ActivityType.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Form/ActivityType.php b/Form/ActivityType.php index bf8fc492d..b6c52fb4a 100644 --- a/Form/ActivityType.php +++ b/Form/ActivityType.php @@ -67,7 +67,10 @@ class ActivityType extends AbstractType 'widget' => 'single_text', 'format' => 'dd-MM-yyyy') ) - ->add('durationTime', 'time') + ->add('durationTime', 'time', array( + 'widget' => 'text', + 'hours' => array(0, 1, 2, 3, 4, 5, 6, 7, 8) + )) ->add('remark', 'textarea', array( 'required' => false, 'empty_data' => ''