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

sandbox cedric ouvertures

opening hours always accessible
parent 762b4e9d
Branches
Tags
2 merge requests!1140Dev#30273 library box,!1129Dev#30273 library box
<?php
echo $this->profileSelect('bib',$this->id_zone,$this->id_bib,'z');
echo ('<center><div align="center"><br>'.$this->bouton('id=c_19','picto=add.gif','texte='.$this->traduire('Ajouter une bibliothèque').'','url='.BASE_URL.'/admin/bib/add','largeur=250px').'</div></center>');
echo $this->profileSelect('bib',$this->id_zone,$this->id_bib,'z');
echo ('<center><div align="center"><br>'.$this->bouton('id=c_19','picto=add.gif','texte='.$this->traduire('Ajouter une bibliothèque').'','url='.BASE_URL.'/admin/bib/add','largeur=250px').'</div></center>');
?>
<br /><table cellspacing="0" cellpadding="0">
<tr class="soustitre">
<tr class="soustitre">
<td>Ville</td>
<td>Libelle</td>
<td colspan="6"> Action</td>
......@@ -11,12 +11,12 @@ echo ('<center><div align="center"><br>'.$this->bouton('id=c_19','picto=add.gif'
<tr>
<td colspan="8" class="separ"> </td>
</tr>
<?php
<?php
$ligne = 0;
foreach ($this->bib_array as $bib) {
$ico_del = '<a href="'.BASE_URL.'/admin/bib/delete/id/'.$bib->getId().'">'.$this->boutonIco("picto=ico/del.gif").'</a>';
$ligne ++ ; if ($ligne & 1) $class="first"; else $class="second";
$ville = ucfirst($bib->getVille());
echo '<tr class="'.$class.'">'.
......@@ -28,26 +28,25 @@ echo ('<center><div align="center"><br>'.$this->bouton('id=c_19','picto=add.gif'
$action = '<td valign="top" align="center"><a href="%s"><img src="'.URL_ADMIN_IMG.'picto/%s" border="0" alt="%3$s" title="%3$s"/></a></td>';
echo sprintf($action,
echo sprintf($action,
$this->url(array('action' => 'plans',
'id_bib' => $bib->getId())),
'plan.gif',
$this->_('Plans de la bibliothèque'));
echo sprintf($action,
echo sprintf($action,
$this->url(array('action' => 'localisations',
'id_bib' => $bib->getId())),
'localisation.gif',
$this->_('Localisations de la bibliothèque'));
if (Class_AdminVar::isPlanningOuverturesEnabled())
echo sprintf($action,
$this->url(array('controller' => 'ouvertures',
'action' => 'index',
'id_site' => $bib->getId())),
'calendar.gif',
$this->_('Planification des ouvertures'));
echo sprintf($action,
$this->url(array('controller' => 'ouvertures',
'action' => 'index',
'id_site' => $bib->getId())),
'calendar.gif',
$this->_('Planification des ouvertures'));
echo '</tr>';
}
......
......@@ -131,15 +131,6 @@ class BibControllerIndexWidthAdminPortailTest extends BibControllerTestCase {
public function bibCranShouldHaveActionToEdit() {
$this->assertXPath('//tr[@class="second"][1]//a[contains(@href, "bib/edit/id/3")]');
}
/** @test */
public function whenMultimediaDisabledOuverturesShouldNotBeAvailable() {
Class_AdminVar::find('MULTIMEDIA_KEY')->setValeur('');
$this->bootstrap();
$this->dispatch('admin/bib/index', true);
$this->assertNotXPath('//a[contains(@href, "ouvertures")]');
}
}
......
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