Suppression des liens d'edition
This commit is contained in:
parent
37b0b06e59
commit
528f028ccc
@ -4,7 +4,7 @@
|
||||
<div class="page-header">
|
||||
<h1><?=$this->raisonSociale?> <small>
|
||||
<?php if ($this->siren) {?> <?=$this->SirenTexte($this->siren)?> <?php }?>
|
||||
<?php if ($this->isin) {?>ISIN : <?=$this->isin?> <?php }?>
|
||||
<?php if ($this->isin) {?>, ISIN : <?=$this->isin?> <?php }?>
|
||||
</small></h1>
|
||||
</div>
|
||||
<?php }?>
|
||||
@ -49,63 +49,6 @@
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
<?php if ($this->UserModeEdit) {?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200"></td>
|
||||
<td width="350">
|
||||
<?php
|
||||
if ($this->siren) {
|
||||
$href = $this->url(array('module'=>'input', 'controller'=>'index','action'=>'liendoc','siren'=>$this->siren, 'type'=>'Entreprise'), 'default', true);
|
||||
} else {
|
||||
$href = $this->url(array('module'=>'input', 'controller'=>'index','action'=>'liendoc','idLien'=>$this->lienref, 'type'=>'Entreprise'), 'default', 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>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200"></td>
|
||||
<td width="350">
|
||||
<?php
|
||||
if ($this->siren) {
|
||||
$href = $this->url(array('module'=>'input', 'controller'=>'index', 'action'=>'lienfiche', 'siren'=>$this->siren),null,true);
|
||||
$hrefSuppr = $this->url(array('module'=>'input', 'controller'=>'index', 'action'=>'liendelete', 'siren'=>$this->siren),null,true);
|
||||
} else {
|
||||
$href = $this->url(array('module'=>'input', 'controller'=>'index', 'action'=>'lienfiche', 'idFiche'=>$this->lienref),null,true);
|
||||
$hrefSuppr = $this->url(array('module'=>'input', 'controller'=>'index', 'action'=>'liendelete', 'idFiche'=>$this->lienref),null,true);
|
||||
}
|
||||
?>
|
||||
<a class="dialog" title="Edition fiche" href="<?=$href?>">Editer la fiche</a>
|
||||
<a class="confirm" title="Fiche suppression" href="<?=$hrefSuppr; ?>">Supprimer la fiche</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if ($this->PP) {?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="200"></td>
|
||||
<td width="350">
|
||||
<?php
|
||||
$date = new Zend_Date($this->naissanceDate, 'YYYY-MM-dd');
|
||||
$param = array(
|
||||
'module'=>'search',
|
||||
'controller'=>'dirigeant',
|
||||
'action'=>'index',
|
||||
'dirNom'=>$this->nom,
|
||||
'dirPrenom'=>$this->prenom,
|
||||
'dirDateNaissJJ' =>$date?$date->get('dd'):'',
|
||||
'dirDateNaissMM' =>$date?$date->get('MM'):'',
|
||||
'dirDateNaissAAAA' =>$date?$date->get('YYYY'):''
|
||||
); ?>
|
||||
<a href="<?=$this->url($param,'default',true);?>">Lancer une recherche dirigeant</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
</table>
|
||||
</div>
|
||||
<?php }?>
|
||||
@ -128,20 +71,6 @@ Cette entreprise est une personne physique exerçant son activité en nom propre
|
||||
|
||||
<?php } else {?>
|
||||
|
||||
<?php if (empty($this->AutrePage) && $this->UserModeEdit) {?>
|
||||
<?php if ($part == 'actionnaires') {?>
|
||||
<div style="line-height:16px;">
|
||||
<a class="dialog" title="Ajouter un actionnaire" href="<?=$this->url(array('module'=>'input', 'controller'=>'index','action'=>'lien','type'=>'actionnaire','mode'=>'add','siren'=>$this->siren,'lienref'=>$this->lienref), null, true)?>">
|
||||
<img style="vertical-align:middle;" src="/themes/default/images/interfaces/ajouter.png" /> Ajouter un actionnaire</a>
|
||||
</div>
|
||||
<?php } else {?>
|
||||
<div style="line-height:16px;">
|
||||
<a class="dialog" title="Ajouter une participation" href="<?=$this->url(array('module'=>'input', 'controller'=>'index','action'=>'lien','type'=>'participation','mode'=>'add','siren'=>$this->siren,'lienref'=>$this->lienref), null, true)?>">
|
||||
<img style="vertical-align:middle;" src="/themes/default/images/interfaces/ajouter.png" /> Ajouter une participation</a>
|
||||
</div>
|
||||
<?php }?>
|
||||
<?php }?>
|
||||
|
||||
<?php if ( count($this->$part)>0 ) {?>
|
||||
<table class="table table-condensed table-hover">
|
||||
<?php foreach ($this->$part as $lien) {?>
|
||||
@ -336,7 +265,7 @@ $('a.dialog').on('click', function(){
|
||||
}
|
||||
});
|
||||
|
||||
$( "a.confirm" ).on('click', function(e){
|
||||
$('a.confirm').on('click', function(e){
|
||||
e.preventDefault();
|
||||
var href = $(this).attr('href');
|
||||
var dialogOpts = {
|
||||
|
Loading…
Reference in New Issue
Block a user