Skip to content
Snippets Groups Projects
Commit 9e88bf97 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

dev #64573 add tri hidden element + improve inlineformrendering

parent 2b75cba2
Branches
Tags
6 merge requests!2767Hotline,!2742Dev#64573 amelioration de la charte modele,!2724Dev#64573 amelioration de la charte modele,!2718Dev#64573 amelioration de la charte modele,!2679Dev#64573 amelioration de la charte modele,!2439WIP Dev#64573 amelioration de la charte modele
Pipeline #3825 passed with stage
in 36 minutes and 41 seconds
......@@ -40,11 +40,21 @@ class Intonation_View_RenderInlineForm extends Intonation_View_RenderForm {
protected function _labelForTableRendering($element, $decorator, $newDecorators, $name) {
if('Zend_Form_Element_Hidden' == $element->getType()) {
$newDecorators[] = ['input_data' => 'HtmlTag',
['tag' => 'div', 'class' => 'd-none']];
$decorator->setOptions([]);
$newDecorators[$name] = $decorator;
return $newDecorators;
}
$newDecorators[] = ['input_data' => 'HtmlTag',
['tag' => 'div', 'class' => 'row input-group mb-2']];
$decorator->setOptions([]);
$newDecorators[$name] = $decorator;
$newDecorators[] = ['HtmlTag', ['tag' => 'div', 'class' => 'col-6']];
$newDecorators[] = ['HtmlTag', ['tag' => 'div', 'class' => 'col']];
return $newDecorators;
}
......
......@@ -104,14 +104,14 @@ class IntonationSearchRenderInline extends IntonationSearchRenderAbstract {
'class' => 'expressionRecherche',
'placeholder' => $preferences['placeholder']])
->addElement('hidden', 'tri')
->addElement('submit',
'login',
['label' => $preferences['search_button'],
'onclick' => '$(this).parents(\'form\').submit()',
'order' => 2])
->addElement('hidden', 'tri')
->addUniqDisplayGroup('search_group')
->populate($preferences);
......
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