Skip to content
Snippets Groups Projects
Commit a1cb3b78 authored by Laurent's avatar Laurent
Browse files

hackfest search domains: remove label on domain select

parent a14bb200
Branches
Tags
3 merge requests!2080Sandbox detach zf from storm,!1940Dev#48981 3455 lier des cartes via bokeh,!1929Dev#48981 3455 lier des cartes via bokeh
...@@ -189,15 +189,11 @@ class ZendAfi_View_Helper_TagRechercheSimple extends Zend_View_Helper_HtmlElemen ...@@ -189,15 +189,11 @@ class ZendAfi_View_Helper_TagRechercheSimple extends Zend_View_Helper_HtmlElemen
protected function _renderDomainSelectAsSelect($domains) { protected function _renderDomainSelectAsSelect($domains) {
$domains = [0 => $this->view->_('Partout')] + $domains; $domains = [0 => $this->view->_('Partout')] + $domains;
return $this->view->tag('div', return $this->view->formSelect(
$this->view->tag('label', 'facettes',
$this->view->_('Rechercher dans le domaine'), 0,
['for' => 'facettes']) ['title' => $this->view->_('Domaine de recherche')],
. $this->view->formSelect( $domains);
'facettes',
0,
[],
$domains));
} }
......
...@@ -113,16 +113,6 @@ class ZendAfi_View_Helper_TagRechercheSimpleDefaultTest extends ViewHelperTestCa ...@@ -113,16 +113,6 @@ class ZendAfi_View_Helper_TagRechercheSimpleDefaultTest extends ViewHelperTestCa
} }
/**
* @depends withDomainSelectInputShouldBePresent
* @test
*/
public function domainSelectLabelShouldBePrensent($html) {
$this->assertXPath($html,
'//div/label[@for="facettes"][following-sibling::select[@name="facettes"]/option[1][@value="0"][@selected="selected"]]');
}
/** /**
* @depends withDomainSelectInputShouldBePresent * @depends withDomainSelectInputShouldBePresent
* @test * @test
......
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