issue #0001372 : Add doc to company witthout siren

This commit is contained in:
Michael RICOIS 2013-04-12 12:11:30 +00:00
parent e6cc420e7c
commit c61855ee8f
2 changed files with 9 additions and 1 deletions

View File

@ -581,6 +581,7 @@ class IdentiteController extends Zend_Controller_Action
$request = $this->getRequest();
$lienRef = $request->getParam('lienref', null);
$this->view->assign('lienref', $lienRef);
$user = new Scores_Utilisateur();
$this->view->assign('edition', $user->checkModeEdition());

View File

@ -66,7 +66,14 @@
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib"></td>
<td width="350" class="StyleInfoLib">
<a class="dialog" title="Lier un document" href="<?=$this->url(array('controller'=>'saisie','action'=>'liendoc','siren'=>$this->siren), null, true)?>">
<?php
if ($this->siren) {
$href = $this->url(array('controller'=>'saisie','action'=>'liendoc','siren'=>$this->siren), null, true);
} else {
$href = $this->url(array('controller'=>'saisie','action'=>'liendoc','idLien'=>$this->lienref), null, true);
}
?>
<a class="dialog" title="Lier un document" href="<?=$href?>">
<img style="vertical-align:middle;" src="/themes/default/images/interfaces/page_white_put.png" />
Lier un document (organigramme du groupe)
</a>