Commit 0e1b2719 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Aide de vue FormControlGroup : utilisation des aides de vue ZF standards pour...

Aide de vue FormControlGroup : utilisation des aides de vue ZF standards pour les éléments de formulaire ZF Date et Time
parent 9fb39451
Pipeline #9249 failed with stages
in 39 seconds
......@@ -254,10 +254,16 @@ class FormControlGroup extends AbstractHelper
$helper = $this->getView()->plugin('formSearchAndSelect');
$helper->setAutocompleteMinLength(2);
$html = $helper($element);
} elseif($element instanceof \Zend\Form\Element\Date) {
$helper = $this->getView()->plugin(\Zend\Form\View\Helper\FormDate::class);
$html = $helper($element);
} elseif($element instanceof \Zend\Form\Element\Time) {
$helper = $this->getView()->plugin(\Zend\Form\View\Helper\FormTime::class);
$html = $helper($element);
} elseif($element instanceof DateTime) {
$helper = $this->getView()->plugin('formDateTime');
$html = $helper($element);
}else{
} else {
if (is_string($pluginClass)) {
$helper = $this->getView()->plugin($pluginClass);
$html = $helper($element);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment