Skip to content
Snippets Groups Projects
Commit f8576c92 authored by gloas's avatar gloas
Browse files

Boite recherche simple correction affichage select annexe

parent e2430375
Branches
Tags
No related merge requests found
......@@ -84,7 +84,6 @@ class ZendAfi_View_Helper_TagRechercheSimple extends Zend_View_Helper_HtmlElemen
$this->getComboTypesDocs());
if($this->preferences["select_annexe"] and $this->division!="2") {
$contenu.='<div style="margin-top:5px">'.$this->view->_('Site').'</div>';
$contenu.=$this->getComboAnnexes();
}
return $contenu;
......@@ -155,16 +154,19 @@ class ZendAfi_View_Helper_TagRechercheSimple extends Zend_View_Helper_HtmlElemen
if (empty($annexes))
return $combo;
$data=array(""=>"tous");
$data=[''=>'tous'];
foreach($annexes as $annexe) {
$data[$annexe->getCode()]=$annexe->getLibelle();
}
$combo='<select name="annexe">';
$combo = '<div style="margin-top:5px">'.
'<label for="select_annexe">'.$this->view->_('Site').'&nbsp;</label>'.
'<select id="select_annexe" name="annexe">';
foreach($data as $key=>$valeur) {
$combo.='<option value="'.$key.'">'.stripSlashes($valeur).'</option>';
}
$combo.='</select>';
$combo.='</select></div>';
return $combo;
}
......
......@@ -949,6 +949,13 @@ class ProfilOptionsControllerViewProfilJeunesseAccueilTest extends ProfilOptions
}
/** @test */
public function comboRechSimpleSelectAnnexeShouldHaveLabel() {
$this->assertXPathContentContains('//form[@class="rechSimpleForm"]//label[@for="select_annexe"]',
'Site');
}
/** @test */
public function titleShouldBeProfilJeunesseInHomePage() {
$this->dispatch('/opac/');
......
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