Symfony Form Builder 日历不显示在 Firefox 上 [英] Symfony Form Builder calendar does not show on firefox

查看:28
本文介绍了Symfony Form Builder 日历不显示在 Firefox 上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经编写了这个表单生成器表单

I have written this form builder form

$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 浏览器上完美运行.请任何人帮助并提前感谢您提供任何帮助.

the form show perfectly for all browser but the calendar not show in firefox browser. It works perfectly on Google Chrome browser. Please anybody help and advance thanks for giving any help.

推荐答案

firefox dosent 显示输入日历与 chrome 一样,但您可以尝试以下解决方案:https://stackoverflow.com/a/22987203/4233170

firefox dosent show the input calendar as in chrome but you can try this solution : https://stackoverflow.com/a/22987203/4233170

这篇关于Symfony Form Builder 日历不显示在 Firefox 上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆