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

hotline #47596 fix popup formation widget

parent 6eedeb38
Branches
Tags
1 merge request!1804hotline #47596 fix popup formation widget
- ticket #47596 : Administration : correction de la validation des paramètres de la boîte formation.
\ No newline at end of file
<?php
echo ZendAfi_Form_Configuration_FormationsWidget::newWith($this->module_settings);
<?php
$form = ZendAfi_Form_Configuration_FormationsWidget::newWith($this->module_settings);
$form->setAction($this->url);
echo $this->renderForm($form);
?>
......@@ -40,10 +40,6 @@ class ZendAfi_Form_Configuration_FormationsWidget extends ZendAfi_Form {
'display_group_mode',
'display_mode'],
'advanced',
['legend' => ''])
->addDisplayGroup(['submit'],
'submit',
['legend' => '']);
return $form;
}
......@@ -93,11 +89,7 @@ class ZendAfi_Form_Configuration_FormationsWidget extends ZendAfi_Form {
'multiOptions' => [
Class_Systeme_ModulesAccueil_Formations::DISPLAY_NO_GROUP => $this->_('non groupé'),
Class_Systeme_ModulesAccueil_Formations::DISPLAY_GROUP_BY_YEAR =>$this->_('groupé par année')
]])
->addElement('submit',
'submit',
['label' => $this->_('Valider')]);
]]);
}
......
......@@ -55,6 +55,12 @@ class Admin_AccueilControllerFormationsTestWithDefaultSettings extends Admin_Abs
public function yearCategoriesShouldNotSelectable() {
$this->assertXPathContentContains('//script', 'categoriesNotSelectable');
}
/** @test */
public function formActionShouldBeAdminSlahAccueilSlahFormationWidget() {
$this->assertXPath('//form[contains(@action, "/admin/accueil/formations-widget")]');
}
}
......
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