Liens de saisie pour les liens interentreprise
This commit is contained in:
parent
58a27588ce
commit
fe70284b6e
@ -655,13 +655,15 @@ class Legal_IdentiteController extends Zend_Controller_Action
|
||||
*/
|
||||
public function liensAction()
|
||||
{
|
||||
$nbMonthForRecentLien = 3;
|
||||
|
||||
$this->view->headScript()->appendFile($this->theme->pathScript.'/identite-groupe.js', 'text/javascript');
|
||||
$this->view->headScript()->appendFile($this->theme->pathScript.'/identite-groupe.js', 'text/javascript');
|
||||
|
||||
$request = $this->getRequest();
|
||||
$autrePage = $this->getRequest()->getParam('apage');
|
||||
$lienRef = $request->getParam('lienref', null);
|
||||
|
||||
$this->view->InputLinks = array();
|
||||
$nbMonthForRecentLien = 3;
|
||||
|
||||
$user = new Scores_Utilisateur();
|
||||
$this->view->assign('edition', $user->checkModeEdition());
|
||||
|
||||
@ -681,7 +683,7 @@ class Legal_IdentiteController extends Zend_Controller_Action
|
||||
$this->view->assign('isin', $identite->isin);
|
||||
$this->view->assign('actif', $identite->actif);
|
||||
|
||||
//Define SIREN if exist
|
||||
// Define SIREN if exist
|
||||
if ( intval($identite->siren)!=0 ) {
|
||||
$siren = $identite->siren;
|
||||
$session = new Scores_Session_Entreprise($siren, null, true);
|
||||
@ -699,7 +701,7 @@ class Legal_IdentiteController extends Zend_Controller_Action
|
||||
$this->view->assign('naissanceDate', $identite->naissanceDate);
|
||||
}
|
||||
|
||||
//Get links
|
||||
// Get links
|
||||
$infos = $ws->getLiensById($lienRef);
|
||||
|
||||
} else {
|
||||
@ -715,6 +717,29 @@ class Legal_IdentiteController extends Zend_Controller_Action
|
||||
$this->view->assign('siret', $this->siret);
|
||||
$this->view->assign('raisonSociale', $session->getRaisonSociale());
|
||||
$this->view->assign('surveillance', $user->checkPerm('liens'));
|
||||
|
||||
// Lien edition
|
||||
$this->view->InputLinks[] = array(
|
||||
'class' => 'dialog',
|
||||
'title' => 'Edition fiche lien',
|
||||
'label' => '<span class="glyphicon glyphicon-pencil"></span> Editer la fiche',
|
||||
'href' => $this->view->url(array('module'=>'input', 'controller'=>'lien',
|
||||
'action'=>'fiche', 'siren'=>$this->siren)),
|
||||
);
|
||||
$this->view->InputLinks[] = array(
|
||||
'class' => 'confirm',
|
||||
'title' => 'Suppression fiche lien',
|
||||
'label' => '<span class="glyphicon glyphicon-remove"></span> Supprimer la fiche',
|
||||
'href' => $this->view->url(array('module'=>'input', 'controller'=>'lien',
|
||||
'action'=>'delete', 'siren'=>$this->siren)),
|
||||
);
|
||||
$this->view->InputLinks[] = array(
|
||||
'class' => 'dialog',
|
||||
'title' => 'Lier un document',
|
||||
'label' => '<span class="glyphicon glyphicon-file"></span> Lier un document (organigramme du groupe)',
|
||||
'href' => $this->view->url(array('module'=>'input', 'controller'=>'lien',
|
||||
'action'=>'doc', 'siren'=>$this->siren)),
|
||||
);
|
||||
|
||||
//Check access to display group link
|
||||
if ( $user->checkPerm('GROUPE') ) {
|
||||
|
Loading…
Reference in New Issue
Block a user