Liens inter-entreprises - Mode Editon -Ajouter un actionnaire(correction

de liens)
This commit is contained in:
Jean Vladimir TWAHIRWA 2016-09-13 16:31:02 +02:00
parent 11dfca7a5a
commit d71cfbfddd
5 changed files with 12 additions and 12 deletions

View File

@ -999,7 +999,7 @@ class Input_LienController extends Zend_Controller_Action
//Special legal form, go to other display
if ( ($result->FJ>=1000 && $result->FJ<=1999) || ($result->FJ>=10 && $result->FJ<=19) ) {
$this->view->assign('countries', $this->countries);
$this->renderScript('saisie/lienpp.phtml');
$this->renderScript('lien/pp.phtml');
}
}

View File

@ -26,7 +26,7 @@ div#etranger { display:none; }
</style>
<div id="center">
<form name="saveLienRef" action="<?=$this->url(array('module'=>'input', 'controller'=>'lien', 'action'=>'refsave'), 'default', true)?>" method="post">
<form name="saveLienRef" action="<?=$this->url(array('module'=>'input', 'controller'=>'lien', 'action'=>'ref'), 'default', true)?>" method="post">
<?php }?>
<div class="fieldgrp">
@ -277,7 +277,7 @@ function AddSelectCountry(code, n){
if (!n) { n=1; } else {n++;}
if (n<=3){
var html = 'Aucun identifiant !';
$.getJSON('/saisie/countryid', {code: code}, function(data){
$.getJSON('/lien/countryid', {code: code}, function(data){
var option = '';
$.each(data, function(i, item){
option = option + '<option value="'+item.internalId+'">'+item.name+'</option>';

View File

@ -1,6 +1,6 @@
<?php if ($this->edit) {?>
<form name="saveLienRef" action="<?=$this->url(array('module'=>'input','controller'=>'lien', 'action'=>'refsave'), 'default', true)?>" method="post">
<form name="saveLienRef" action="<?=$this->url(array('module'=>'input','controller'=>'lien', 'action'=>'ref'), 'default', true)?>" method="post">
<input type="hidden" name="idLien" value="<?=$this->edit?>"/>
<div class="fieldgrp">
<label>Siren</label>
@ -9,11 +9,11 @@
</div>
</div>
<?php if ( intval($this->siren)==0 && $this->PpPm=='PM' ) {?>
<?=$this->render('saisie/lienetranger.phtml')?>
<?=$this->render('lien/etranger.phtml')?>
<?php } elseif ( $this->PpPm=='PP' ) { ?>
<?=$this->render('saisie/lienpp.phtml', $this->depListe)?>
<?=$this->render('lien/pp.phtml', $this->depListe)?>
<?php } else {?>
<?=$this->render('saisie/lienidentite.phtml')?>
<?=$this->render('lien/identite.phtml')?>
<?php }?>
</form>
<script>
@ -56,7 +56,7 @@
<div id="fiche" style="display:none;">
<form name="saveLienRef" action="<?=$this->url(array('module'=>'input','controller'=>'lien', 'action'=>'refsave'), 'default', true)?>" method="post">
<form name="saveLienRef" action="<?=$this->url(array('module'=>'input','controller'=>'lien', 'action'=>'ref'), 'default', true)?>" method="post">
<fieldset>
<legend>Informations fiche</legend>
@ -153,7 +153,7 @@ $('a#infors').on('click', function(e){
e.preventDefault();
var siren = $('div#fiche input[name=siren]').val();
if(siren.length==9) {
$.post('/saisie/lienidentite', {siren: siren }, function success(data) {
$.post('/lien/identite', {siren: siren }, function success(data) {
$('div#lienRef').html(data);
});
} else {

View File

@ -49,7 +49,7 @@ div#dialog .ui-widget-content { text-align:left; }
<?php if ( $this->id2 ) {?>
<b>Fiche créée <?=$this->id2Nom?> (id = <?=$this->id2?>)</b>
<?php } else {?>
<?=$this->render('saisie/lienfiche.phtml')?>
<?=$this->render('lien/fiche.phtml')?>
<?php }?>
<?php } elseif ($this->mode == 'edit') {?>
<div class="fieldgrp">Modification d'un actionnaire pour la société <?=$this->rs?> (<?=$this->siren?>)</div>
@ -150,7 +150,7 @@ div#dialog .ui-widget-content { text-align:left; }
<?php if ( $this->id2 ) {?>
<b>Fiche créée <?=$this->id2Nom?> (id = <?=$this->id2?>)</b>
<?php } else {?>
<?=$this->render('saisie/lienfiche.phtml')?>
<?=$this->render('lien/fiche.phtml')?>
<?php }?>
<?php } elseif ($this->mode == 'edit') {?>
<div class="fieldgrp">Modification d'une participation pour la société <?=$this->rs?> (<?=$this->siren?>)</div>

View File

@ -775,7 +775,7 @@ class Legal_IdentiteController extends Zend_Controller_Action
'class' => 'dialog',
'label' => '<span class="glyphicon glyphicon-plus"></span> Ajouter un actionnaire',
'href' => $this->view->url(array('module'=>'input', 'controller'=>'lien',
'action'=>'lien', 'type'=>'actionnaire', 'mode'=>'add', 'siren'=>$siren),
'action'=>'index', 'type'=>'actionnaire', 'mode'=>'add', 'siren'=>$siren),
'default', true),
),
array(