Rappel des critères

This commit is contained in:
Michael RICOIS 2012-01-16 21:36:07 +00:00
parent 6b4547a0c8
commit 07b769bfc6
4 changed files with 20 additions and 3 deletions

View File

@ -3,7 +3,14 @@ class IndexController extends Zend_Controller_Action
{
public function init(){}
public function indexAction(){}
public function indexAction()
{
$auth = Zend_Auth::getInstance();
$user = $auth->getIdentity();
if ($user->customisation) {
$this->view->assign('preferences', $user->customisation);
}
}
public function selectionAction(){}

View File

@ -68,5 +68,6 @@
<?php } else {?>
<h3>Vos critères</h3>
<?php }?>

View File

@ -1,5 +1,5 @@
<div id="accordion">
<?php echo $this->action('criteres', 'index');?>
<div <?php if ($this->preferences) { ?>id="accordion" <?php } else {?> id="rappel" <?php }?>>
<?=$this->action('criteres', 'index');?>
</div>
<div id="tabs">
<ul>

View File

@ -222,6 +222,15 @@ h3 {
padding:2px;
}
#rappel {
background: #ffffff;
color: #000000;
float:right;
width:280px;
margin:2px;
padding:2px;
}
.ui-accordion .ui-accordion-content {
padding:0;
}