issue #0001350 : Prise en compte des doublons (test)
This commit is contained in:
parent
4a4798cf49
commit
8b3a2e6311
@ -138,4 +138,13 @@ class ProfilController extends Zend_Controller_Action
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function helpAction()
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -86,10 +86,10 @@ input[type="text"] {
|
||||
|
||||
<div style="clear:both;">
|
||||
Clé de dédoublonnage : <br/>
|
||||
<input type="checkbox" name="doublon[]" value="siret" <?php if(in_array('siret', $this->doublon)) echo ' checked';?>/> SIRET<br/>
|
||||
<input type="checkbox" name="doublon[]" value="siren" <?php if(in_array('siren', $this->doublon)) echo ' checked';?>/> SIREN<br/>
|
||||
<input type="checkbox" name="doublon[]" value="nic" <?php if(in_array('nic', $this->doublon)) echo ' checked';?>/> NIC<br/>
|
||||
<input type="checkbox" name="doublon[]" value="ref" <?php if(in_array('ref', $this->doublon)) echo ' checked';?>/> REF<br/>
|
||||
<input type="checkbox" name="doublon" value="siret" <?php if(in_array('siret', $this->doublon)) echo ' checked';?>/> SIRET<br/>
|
||||
<input type="checkbox" name="doublon" value="siren" <?php if(in_array('siren', $this->doublon)) echo ' checked';?>/> SIREN<br/>
|
||||
<input type="checkbox" name="doublon" value="nic" <?php if(in_array('nic', $this->doublon)) echo ' checked';?>/> NIC<br/>
|
||||
<input type="checkbox" name="doublon" value="ref" <?php if(in_array('ref', $this->doublon)) echo ' checked';?>/> REF<br/>
|
||||
</div>
|
||||
|
||||
<div style="clear:both;">
|
||||
@ -153,9 +153,13 @@ $(function() {
|
||||
});
|
||||
var ref = $('input[name=profil]').val();
|
||||
if (ref!='') {
|
||||
$.post(url, { reference: ref, criteres: list }, function(data){
|
||||
var doublon = $('input[name=doublon]:checkbox:checked').map(function () {
|
||||
return this.value;
|
||||
}).get();
|
||||
console.log(doublon);
|
||||
/*$.post(url, { reference: ref, criteres: list, doublon: doublon }, function(data){
|
||||
if (data!='Erreur'){ window.location.href = '/'; }
|
||||
}, 'json');
|
||||
}, 'json');*/
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user