2015-05-19 65 views
0

我寫了這個表單生成表單Symfony的表單生成日曆上沒有顯示Firefox的

$document = new Document(); 

    $form = $this->createFormBuilder($document) 
     ->add('name', 'entity', array(
       'class' => 'ActionaidLrpBundle:Lrp', 
       'property' => 'location', 
       'required' => false, 
       'empty_value' => 'Select Your Location', 
       'empty_data' => null, 
       'query_builder' => function(EntityRepository $er){ 
        return $er->createQueryBuilder('u') 
         ->where("u.status = 'active'"); 
       }, 
      )) 
     ->add('createdDate', 'date', array(
      'input' => 'datetime', 
      'widget' => 'single_text', 
      'attr' => array('class'=>'calendar', 'read_only' => true) 
     )) 
     ->add('file') 
     ->add('lrpId', 'entity', array(
       'class' => 'ActionaidLrpBundle:Lrp', 
       'property' => 'getLrpIdAndName', 
       'required' => false, 
       'empty_value' => 'Select Your LRP', 
       'empty_data' => null, 
       'query_builder' => function(EntityRepository $er){ 
        return $er->createQueryBuilder('u') 
         ->where("u.status = 'active'"); 
       }, 
     )) 
     ->add('Import', 'submit') 
     ->getForm(); 

形式完美地展示所有瀏覽器,但日曆在Firefox瀏覽器中不顯示。它適用於Google Chrome瀏覽器。請任何人提供幫助,並提前感謝您提供任何幫助。

回答