887 lines
60 KiB
PHP
887 lines
60 KiB
PHP
<?php
|
||
|
||
$show_all_form = false;
|
||
|
||
if($currentCredit->type_credit == 'pat')
|
||
$show_all_form = true;
|
||
|
||
|
||
$form_action = $show_all_form ? '#' : get_site_url().'/credit-step2';
|
||
|
||
$submit_label = $show_all_form ? 'Envoyer demande' : 'Étape suivante';
|
||
|
||
?>
|
||
|
||
<div class="container">
|
||
<div class="wp-credit-form">
|
||
<section class="row">
|
||
<h2>Introduction de votre demande de crédit</h2>
|
||
|
||
<div class="bg-light p-5">
|
||
|
||
<div class="col-md-12 pb-3">
|
||
<div class="row">
|
||
<div class="col-md-12">
|
||
<p class="font-weight-bold col-md-4">Type de prêt</p>
|
||
<span class="col-md-8"><?= $map_credit_type[$currentCredit->type_credit] ?></span>
|
||
</div>
|
||
<div class="col-md-12">
|
||
<p class="font-weight-bold col-md-4">Capital choisi</p>
|
||
<span class="col-md-8"><?= $currentCredit->capital ?> €</span>
|
||
</div>
|
||
<div class="col-md-12">
|
||
<p class="font-weight-bold col-md-4">Durée choisie (nombre de mensualités)</p>
|
||
<span class="col-md-8"><?= $currentCredit->duree ?> <?php if ($currentCredit->type_credit === 'am'): ?>ans<?php else: ?>mois<?php endif ?></span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="col-md-12 py-5">
|
||
<div class="row">
|
||
<div class="col-md-6">
|
||
<p class="font-weight-bold col-md-8">Montant emprunté :</p>
|
||
<span class="col-md-4 text-right"><?= $currentCredit->capital ?> €</span>
|
||
|
||
<p class="font-weight-bold col-md-8">Durée :</p>
|
||
<span class="col-md-4 text-right"><?= $currentCredit->duree ?> <?php if ($currentCredit->type_credit === 'am'): ?>ans<?php else: ?>mois<?php endif ?></span>
|
||
|
||
<p class="font-weight-bold col-md-8">Mensualité :</p>
|
||
<span class="col-md-4 text-right"><?= $currentCredit->mensualite ?> €</span>
|
||
</div>
|
||
|
||
<div class="col-md-6">
|
||
<p class="font-weight-bold col-md-8">Coût Total :</p>
|
||
<span class="col-md-4 text-right"><?= $currentCredit->cout_total ?> €</span>
|
||
|
||
<p class="font-weight-bold col-md-8">Taux nominal annuel :</p>
|
||
<span class="col-md-4 text-right"><?= $currentCredit->taux_nominal_annuel ?></span>
|
||
|
||
<p class="font-weight-bold col-md-8">Taux nominal annuel + taux réel qui correspond à la mensualité :</p><span class="col-md-4 text-right"></span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<p><u>Exemple représentatif :</u> type de crédit = prêt à tempérament (tous motifs) / montant emprunté = 12.500€ / durée = 60 mois / mensualité = 245,97€ / coût total = 14758,20€ / TAEG* = 6,95% / taux débiteur fixe = 6,95%.*TAEG = Taux Annuel Effectif Global = Taux Débiteur Fixe. Sous réserve de changement des taux et d'acceptation de votre dossier par nos partenaires financiers.</p>
|
||
</div>
|
||
</section>
|
||
|
||
<form class="form-submit" method="POST" action="<?= $form_action ?>">
|
||
<input type="hidden" name="credit-direct-token" value="<?php echo $currentCredit->token ?>">
|
||
|
||
<div class="form-row">
|
||
<div class="form-group col-md-6">
|
||
<label for="IDlastname">Nom</label>
|
||
<input name="lastname" type="text" class="form-control" id="IDlastname" required>
|
||
</div>
|
||
<div class="form-group col-md-6">
|
||
<label for="IDfirstname">Prénom</label>
|
||
<input name="firstname" type="text" class="form-control" id="IDfirstname" required>
|
||
</div>
|
||
<div class="form-group col-md-6">
|
||
<label for="IDphone">Téléphone</label>
|
||
<input name="phone" type="tel" class="form-control" id="IDphone" required>
|
||
</div>
|
||
<div class="form-group col-md-6">
|
||
<label for="IDemail">Email</label>
|
||
<input name="email" type="email" class="form-control" id="IDemail" required>
|
||
</div>
|
||
<!-- <div class="form-group col-md-4">
|
||
<label for="IDagency">Agence</label>
|
||
<select name="agency" id="IDagency" class="form-control" required>
|
||
<option value="">Veuillez faire un choix</option>
|
||
<?php foreach($agencies as $agency) : ?>
|
||
<option value="<?php echo $agency->idAgences ?>">
|
||
Agence <?php echo $agency->Nom_agence ?>
|
||
<?php if (!is_null($agency->description_agence) && $agency->description_agence !== '') : ?>
|
||
: <?php echo $agency->description_agence ?>
|
||
<?php endif ?>
|
||
</option>
|
||
<?php endforeach ?>
|
||
</select>
|
||
</div> -->
|
||
</div>
|
||
|
||
<?php if($currentCredit->type_credit == 'fin_neuve' || $currentCredit->type_credit == 'fin_occ_m3a' || $currentCredit->type_credit == 'fin_occ_p3a') : ?>
|
||
<div class="form-row">
|
||
<div class="form-group col-md-4">
|
||
<label for="IDmarque">Marque + Modèle</label>
|
||
<input name="marque" type="text" class="form-control" id="IDmarque" required>
|
||
</div>
|
||
<div class="form-group col-md-4">
|
||
<label for="IDvehicleregistrationdate">Date 1ère immatriculation</label>
|
||
<input name="vehicleregistrationdate" type="date" class="form-control" id="IDvehicleregistrationdate" required>
|
||
</div>
|
||
<div class="form-group col-md-4">
|
||
<label for="IDsellername">Nom du vendeur</label>
|
||
<input name="sellername" type="text" class="form-control" id="IDsellername" required>
|
||
</div>
|
||
<div class="form-group col-md-4">
|
||
<label for="IDselleraddress">Adresse du vendeur</label>
|
||
<input name="selleraddress" type="text" class="form-control" id="IDselleraddress" placeholder="Rue + numéro" required>
|
||
</div>
|
||
<div class="form-group col-md-4">
|
||
<label for="IDvehicleprice">Prix d'achat du véhicule</label>
|
||
<input name="vehicleprice" type="number" class="form-control" id="IDvehicleprice" min="0" step="0.01" required>
|
||
</div>
|
||
<div class="form-group col-md-4">
|
||
<label for="IDaccompte">Montant de l’acompte</label>
|
||
<input name="vehicule_accompte" type="number" class="form-control" id="IDaccompte" min="0" step="0.01" required>
|
||
</div>
|
||
<div class="form-group col-md-4">
|
||
<label for="IDreprise">Montant de la reprise</label>
|
||
<input name="vehicule_reprise" type="number" class="form-control" id="IDreprise" min="0" step="0.01" required>
|
||
</div>
|
||
<div class="form-group col-md-4">
|
||
<label for="IDemprunt">Montant à emprunter</label>
|
||
<input name="vehicule_emprunt" type="number" class="form-control" id="IDemprunt" value="<?= $currentCredit->capital ?>" min="0" step="0.01" disabled>
|
||
</div>
|
||
<div class="form-group col-md-4">
|
||
<label for="IDduree">Durée</label>
|
||
<input name="vehicule_duree" type="number" class="form-control" id="IDduree" value="<?= $currentCredit->duree ?>" min="0" step="1" disabled>
|
||
</div>
|
||
</div>
|
||
<?php endif ?>
|
||
|
||
<?php if ($currentCredit->type_credit == 'am') : ?>
|
||
<div class="form-row">
|
||
|
||
<div class="form-group col-md-4"><label for="IDestateloantype">Type de crédit</label>
|
||
<select name="estateloantype" id="IDestateloantype" class="form-control" required>
|
||
<option value="">Veuillez sélectionner votre type de prêt</option>
|
||
|
||
<?php foreach ($mapHouseCreditTypes as $value => $label): ?>
|
||
<option value="<?php echo $value ?>"><?php echo $label ?></option>
|
||
<?php endforeach ?>
|
||
</select>
|
||
</div>
|
||
<div class="form-group col-md-4">
|
||
<label for="IDestatebuyingprice">Prix d'achat</label>
|
||
<input name="estatebuyingprice" type="number" class="form-control" id="IDestatebuyingprice" min="0" step="0.01">
|
||
</div>
|
||
<div class="form-group col-md-4">
|
||
<label for="IDprix_achat_tvac">Prix de la construction TVAC</label>
|
||
<input name="prix_achat_tvac" type="number" class="form-control" id="IDprix_achat_tvac" min="0" step="0.01">
|
||
</div>
|
||
<div class="form-group col-md-4">
|
||
<label for="IDvaleur_batiment">Valeur du bâtiment </label>
|
||
<input name="valeur_batiment" type="number" class="form-control" id="IDvaleur_batiment" min="0" step="0.01">
|
||
</div>
|
||
<div class="form-group col-md-4">
|
||
<label for="IDestateequity">Fonds propres</label>
|
||
<input name="estateequity" type="number" class="form-control" id="IDestateequity" min="0" step="0.01">
|
||
</div>
|
||
<div class="form-group col-md-4">
|
||
<div class="col-form-label">
|
||
<b>Compromis signé</b>
|
||
</div>
|
||
<div class="form-check form-check-inline">
|
||
<input name="estatecompromise" type="radio" class="form-check-input" id="ID1estatecompromise" value="0" checked="">
|
||
<label class="form-check-label" for="ID1estatecompromise">Non</label>
|
||
</div>
|
||
<div class="form-check form-check-inline">
|
||
<input name="estatecompromise" type="radio" class="form-check-input" id="ID2estatecompromise" value="1">
|
||
<label class="form-check-label" for="ID2estatecompromise">Oui</label>
|
||
</div>
|
||
</div>
|
||
<div class="form-group col-md-4">
|
||
<label for="IDestatcadastralincome">Montant du revenu cadastral</label>
|
||
<input name="estatcadastralincome" type="number" class="form-control" id="IDestatcadastralincome" min="0" step="0.01">
|
||
</div>
|
||
<div class="form-group col-md-4">
|
||
<label for="IDbatiment_emprunt">Montant à emprunter</label>
|
||
<input name="batiment_emprunt" type="number" class="form-control" id="IDbatiment_emprunt" min="0" step="0.01" required>
|
||
</div>
|
||
<div class="form-group col-md-4">
|
||
<label for="IDbatiment_duree">Durée (ans)</label>
|
||
<input name="batiment_duree" type="number" class="form-control" id="IDbatiment_duree" min="10" max="30" step="1" required>
|
||
</div>
|
||
</div>
|
||
<?php endif ?>
|
||
|
||
<?php
|
||
if($show_all_form) {
|
||
?>
|
||
|
||
<fieldset>
|
||
<div class="form-row">
|
||
<div class="col-form-label pr-3 pl-0">J'emprunte ?</div>
|
||
<div class="form-check form-check-inline">
|
||
<input name="hascoborrower" type="radio" class="form-check-input" id="ID1hascoborrower" value="0" checked="">
|
||
<label class="form-check-label" for="ID1hascoborrower">seul</label>
|
||
</div>
|
||
<div class="form-check form-check-inline">
|
||
<input name="hascoborrower" type="radio" class="form-check-input" id="ID2hascoborrower" value="1">
|
||
<label class="form-check-label" for="ID2hascoborrower">avec un co-emprunteur</label>
|
||
</div>
|
||
</div>
|
||
|
||
</fieldset>
|
||
<!--emporunteur-->
|
||
<fieldset class="pt-5 co-emprunteur">
|
||
<div class="wpcf-borrower">
|
||
<div class="form-row">
|
||
<legend>Emprunteur (suite des informations)</legend>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDcivilstatus">État civil</label>
|
||
<?php $etatCivil = $wpdb->get_results( "SELECT * FROM cdf_Etat_civil"); ?>
|
||
|
||
<select name="civilstatus" id="IDcivilstatus" class="form-control" required>
|
||
<option value="" selected="">Veuillez faire un choix</option>
|
||
|
||
<?php foreach ($etatCivil as $ec): ?>
|
||
<option value="<?php echo $ec->idetat_civil ?>"><?php echo $ec->nom_etat_civil ?></option>
|
||
<?php endforeach ?>
|
||
</select>
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDbirthdate">Date de naissance</label>
|
||
<input name="birthdate" type="date" class="form-control" id="IDbirthdate" required>
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDbirthplace">Lieu de naissance</label>
|
||
<input name="birthplace" type="text" class="form-control" id="IDbirthplace" required>
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDnationality">Nationalité</label>
|
||
<input name="nationality" type="text" class="form-control" id="IDnationality" required>
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDcardnumber">Numéro de carte d'identité</label>
|
||
<input name="cardnumber" type="text" class="form-control" id="IDcardnumber" required>
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDcnvaliditydate">Date de validité</label>
|
||
<input name="cnvaliditydate" type="date" class="form-control" id="IDcnvaliditydate" required>
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDnationalregistrationnumber">Numéro de registre national</label>
|
||
<input name="nationalregistrationnumber" type="number" class="form-control" id="IDnationalregistrationnumber" required>
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDbankaccountnumber">Numéro de compte bancaire</label>
|
||
<input name="bankaccountnumber" type="text" class="form-control" id="IDbankaccountnumber" required>
|
||
</div><div class="form-group col-md-3">
|
||
<label for="IDaddress">Adresse</label>
|
||
<input name="address" type="text" class="form-control" id="IDaddress" placeholder="Rue et numéro" required>
|
||
</div>
|
||
<div class="form-group col-md-3"><label for="IDzip">Code Postal</label>
|
||
<input name="zip" type="number" class="form-control" id="IDzip" required>
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDcity">Ville</label>
|
||
<input name="city" type="text" class="form-control" id="IDcity" required>
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDcountry">Pays</label>
|
||
<input name="country" type="text" class="form-control" id="IDcountry" required>
|
||
</div>
|
||
<div class="form-group col-md-6">
|
||
<label for="IDmovingdate">Date d'emménagement</label>
|
||
<input name="movingdate" type="date" class="form-control" id="IDmovingdate" required>
|
||
</div>
|
||
|
||
<div class="form-group col-md-6">
|
||
<label for="IDdependentchildren">Nombre d'enfant(s) à charge</label>
|
||
<input name="dependentchildren" type="number" class="form-control" id="IDdependentchildren" min="0" max="24" required>
|
||
</div>
|
||
|
||
<div class="form-group col-md-4">
|
||
<label for="IDjob">Profession</label>
|
||
<?php $professions = $wpdb->get_results( "SELECT * FROM cdf_Profession"); ?>
|
||
|
||
<select name="job" id="IDjob" class="form-control" required>
|
||
<option value="">Veuillez faire un choix</option>
|
||
|
||
<?php foreach ($professions as $p) : ?>
|
||
<option value="<?php echo $p->idprofession ?>"><?php echo $p->nom_profession ?></option>
|
||
<?php endforeach ?>
|
||
</select>
|
||
</div>
|
||
|
||
<div class="form-group col-md-4">
|
||
<label for="IDcontract_type">Type de contrat</label>
|
||
|
||
<select name="contract_type" id="IDcontract_type" class="form-control">
|
||
<option value=""></option>
|
||
|
||
<?php foreach($contractTypes as $key => $contractType): ?>
|
||
<option value="<?php echo $key ?>"><?php echo $contractType ?></option>
|
||
<?php endforeach ?>
|
||
</select>
|
||
</div>
|
||
|
||
<div class="form-group col-md-4">
|
||
<label for="IDemname">Nom <span>de l'employeur/organisme de paiement</span></label>
|
||
<input name="emname" type="text" class="form-control" id="IDemname">
|
||
</div>
|
||
<div class="form-group col-md-12 d-none">
|
||
<label for="IDemnumber">Numéro d'entreprise</label>
|
||
<input name="emnumber" type="text" class="form-control" id="IDemnumber">
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDemaddress">Adresse <span>de l'employeur/organisme de paiement</span></label>
|
||
<input name="emaddress" type="text" class="form-control" id="IDemaddress">
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDemzip">Code postal <span>de l'employeur/organisme de paiement</span></label>
|
||
<input name="emzip" type="text" class="form-control" id="IDemzip">
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDemcity">Localité <span>de l'employeur/organisme de paiement</span></label>
|
||
<input name="emcity" type="text" class="form-control" id="IDemcity">
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDemcountry">Pays <span>de l'employeur/organisme de paiement</span></label>
|
||
<input name="emcountry" type="text" class="form-control" id="IDemcountry"></div>
|
||
<div class="form-group col-md-6">
|
||
<label for="IDcommitmentdate">Date <span>d'engagement</span></label>
|
||
<input name="commitmentdate" type="date" class="form-control" id="IDcommitmentdate">
|
||
</div>
|
||
<div class="form-group col-md-6">
|
||
<label for="IDsalary"><span>Salaire net mensuel</span></label>
|
||
<input name="salary" type="number" class="form-control" id="IDsalary" min="0" step="0.01" required>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="form-row py-3">
|
||
<div class="col-form-label pr-3">Autres revenus</div>
|
||
<div class="form-check form-check-inline">
|
||
<input name="hasotherincome" type="radio" class="form-check-input" id="ID1hasotherincome" value="0" checked="">
|
||
<label class="form-check-label" for="ID1hasotherincome">Non</label>
|
||
</div>
|
||
<div class="form-check form-check-inline">
|
||
<input name="hasotherincome" type="radio" class="form-check-input" id="ID2hasotherincome" value="1">
|
||
<label class="form-check-label" for="ID2hasotherincome">Oui</label>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="py-3 wpcf-otherincome em d-none">
|
||
<div class="form-row">
|
||
<div class="col-md-3 col-xs-12">
|
||
<div class="form-row">
|
||
<div class="form-check form-check-inline col-md-12">
|
||
<input name="hasoimealvoucher" type="checkbox" class="form-check-input wpcf-otherincome--oitype" id="ID0oitype" value="mealvoucher">
|
||
<label class="form-check-label" for="ID0oitype">Chèque repas</label>
|
||
</div>
|
||
<div class="form-group col-md-12 wpcf-otherincome--amouth wpcf-otherincome--amouth-mealvoucher d-none">
|
||
<input name="oiamouthmealvoucher" type="number" class="form-control" id="IDoiamouthmealvoucher" placeholder="Montant" min="0" step="0.01">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-3 col-xs-12">
|
||
<div class="form-row">
|
||
<div class="form-check form-check-inline col-md-12">
|
||
<input name="hasoirentalincome" type="checkbox" class="form-check-input wpcf-otherincome--oitype" id="ID1oitype" value="rentalincome">
|
||
<label class="form-check-label" for="ID1oitype">Revenus locatif</label>
|
||
</div>
|
||
<div class="form-group col-md-12 wpcf-otherincome--amouth wpcf-otherincome--amouth-rentalincome d-none">
|
||
<input name="oiamouthrentalincome" type="number" class="form-control" id="IDoiamouthrentalincome" placeholder="Montant" min="0" step="0.01">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-3 col-xs-12">
|
||
<div class="form-row">
|
||
<div class="form-check form-check-inline col-md-12">
|
||
<input name="hasoiunemployment" type="checkbox" class="form-check-input wpcf-otherincome--oitype" id="ID2oitype" value="unemployment">
|
||
<label class="form-check-label" for="ID2oitype">Chômage</label>
|
||
</div>
|
||
<div class="form-group col-md-12 wpcf-otherincome--amouth wpcf-otherincome--amouth-unemployment d-none">
|
||
<input name="oiamouthunemployment" type="number" class="form-control" id="IDoiamouthunemployment" placeholder="Montant" min="0" step="0.01">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-3 col-xs-12">
|
||
<div class="form-row">
|
||
<div class="form-check form-check-inline col-md-12">
|
||
<input name="hasoiother" type="checkbox" class="form-check-input wpcf-otherincome--oitype" id="ID3oitype" value="other">
|
||
<label class="form-check-label" for="ID3oitype">Autre</label>
|
||
</div>
|
||
<div class="form-group col-md-12 wpcf-otherincome--amouth wpcf-otherincome--amouth-other d-none">
|
||
<input name="oiamouthother" type="number" class="form-control" id="IDoiamouthother" placeholder="Montant" min="0" step="0.01">
|
||
</div>
|
||
<div class="form-group col-md-12 wpcf-otherincome--amouth wpcf-otherincome--amouth-other d-none">
|
||
<input name="oiothertext" type="text" class="form-control" id="IDoiothertext" placeholder="Type de revenu">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</fieldset>
|
||
|
||
<!--co-emporunteur-->
|
||
<fieldset>
|
||
<div class="wpcf-coborrower pt-5 d-none">
|
||
<div class="form-row">
|
||
<legend>Co Emprunteur</legend>
|
||
<div class="form-group col-md-6"><label for="IDcofirstname">Prénom</label>
|
||
<input name="cofirstname" type="text" class="form-control" id="IDcofirstname">
|
||
</div>
|
||
<div class="form-group col-md-6">
|
||
<label for="IDcolastname">Nom</label>
|
||
<input name="colastname" type="text" class="form-control" id="IDcolastname">
|
||
</div>
|
||
|
||
<div class="form-group col-md-3">
|
||
<label for="IDcocivilstatus">État civil</label>
|
||
<?php $etatCivil = $wpdb->get_results( "SELECT * FROM cdf_Etat_civil"); ?>
|
||
|
||
<select name="cocivilstatus" id="IDcocivilstatus" class="form-control">
|
||
<option value="" selected="">Veuillez faire un choix</option>
|
||
|
||
<?php foreach ($etatCivil as $ec): ?>
|
||
<option value="<?php echo $ec->idetat_civil ?>"><?php echo $ec->nom_etat_civil ?></option>
|
||
<?php endforeach ?>
|
||
</select>
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDcobirthdate">Date de naissance</label>
|
||
<input name="cobirthdate" type="date" class="form-control" id="IDcobirthdate">
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDcobirthplace">Lieu de naissance</label>
|
||
<input name="cobirthplace" type="text" class="form-control" id="IDcobirthplace">
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDconationality">Nationalité</label>
|
||
<input name="conationality" type="text" class="form-control" id="IDconationality">
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDcocardnumber">Numéro de carte d'identité</label>
|
||
<input name="cocardnumber" type="text" class="form-control" id="IDcocardnumber">
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDcocnvaliditydate">Date de validité</label>
|
||
<input name="cocnvaliditydate" type="date" class="form-control" id="IDcocnvaliditydate">
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDconationalregistrationnumber">Numéro de registre national</label>
|
||
<input name="conationalregistrationnumber" type="text" class="form-control" id="IDconationalregistrationnumber">
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDcobankaccountnumber">Numéro de compte bancaire</label>
|
||
<input name="cobankaccountnumber" type="text" class="form-control" id="IDcobankaccountnumber">
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDcoaddress">Adresse</label>
|
||
<input name="coaddress" type="text" class="form-control" id="IDcoaddress">
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDcozip">Code Postal</label>
|
||
<input name="cozip" type="text" class="form-control" id="IDcozip">
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDcocity">Ville</label>
|
||
<input name="cocity" type="text" class="form-control" id="IDcocity">
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDcocountry">Pays</label>
|
||
<input name="cocountry" type="text" class="form-control" id="IDcocountry">
|
||
</div>
|
||
|
||
<div class="form-group col-md-12">
|
||
<label for="IDcodependentchildren">Nombre d'enfant(s) à charge</label>
|
||
<input name="codependentchildren" type="number" class="form-control" id="IDcodependentchildren" min="0" max="24">
|
||
</div>
|
||
|
||
<div class="form-group col-md-4">
|
||
<label for="IDcojob">Profession</label>
|
||
<?php $professions = $wpdb->get_results( "SELECT * FROM cdf_Profession"); ?>
|
||
|
||
<select name="cojob" id="IDcojob" class="form-control">
|
||
<option value="">Veuillez faire un choix</option>
|
||
|
||
<?php foreach ($professions as $p) : ?>
|
||
<option value="<?php echo $p->idprofession ?>"><?php echo $p->nom_profession ?></option>
|
||
<?php endforeach ?>
|
||
</select>
|
||
</div>
|
||
|
||
<div class="form-group col-md-4">
|
||
<label for="IDcocontract_type">Type de contrat</label>
|
||
|
||
<select name="cocontract_type" id="IDcocontract_type" class="form-control">
|
||
<option value=""></option>
|
||
|
||
<?php foreach($contractTypes as $key => $contractType): ?>
|
||
<option value="<?php echo $key ?>"><?php echo $contractType ?></option>
|
||
<?php endforeach ?>
|
||
</select>
|
||
</div>
|
||
|
||
<div class="form-group col-md-4">
|
||
<label for="IDcoemname">Nom <span>de l'employeur/organisme de paiement</span></label>
|
||
<input name="coemname" type="text" class="form-control" id="IDcoemname">
|
||
</div>
|
||
<div class="form-group col-md-12 d-none">
|
||
<label for="IDcoemnumber">Numéro d'entreprise</label>
|
||
<input name="coemnumber" type="text" class="form-control" id="IDcoemnumber">
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDcoemaddress">Adresse <span>de l'employeur/organisme de paiement</span></label>
|
||
<input name="coemaddress" type="text" class="form-control" id="IDcoemaddress">
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDcoemzip">Code postal <span>de l'employeur/organisme de paiement</span></label>
|
||
<input name="coemzip" type="text" class="form-control" id="IDcoemzip">
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDcoemcity">Localité <span>de l'employeur/organisme de paiement</span></label>
|
||
<input name="coemcity" type="text" class="form-control" id="IDcoemcity">
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="IDcoemcountry">Pays <span>de l'employeur/organisme de paiement</span></label>
|
||
<input name="coemcountry" type="text" class="form-control" id="IDcoemcountry"></div>
|
||
<div class="form-group col-md-6">
|
||
<label for="IDcocommitmentdate">Date <span>d'engagement</span></label>
|
||
<input name="cocommitmentdate" type="date" class="form-control" id="IDcocommitmentdate">
|
||
</div>
|
||
<div class="form-group col-md-6">
|
||
<label for="IDcosalary"><span>Salaire net mensuel</span></label>
|
||
<input name="cosalary" type="number" class="form-control" id="IDcosalary" min="0" step="0.01" required>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
<div class="form-row py-3">
|
||
<div class="col-form-label pr-3">Autres revenus</div>
|
||
<div class="form-check form-check-inline">
|
||
<input name="cohasotherincome" type="radio" class="form-check-input" id="ID1cohasotherincome" value="0" checked="">
|
||
<label class="form-check-label" for="ID1cohasotherincome">Non</label>
|
||
</div>
|
||
<div class="form-check form-check-inline">
|
||
<input name="cohasotherincome" type="radio" class="form-check-input" id="ID2cohasotherincome" value="1">
|
||
<label class="form-check-label" for="ID2cohasotherincome">Oui</label>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="py-3 co wpcf-otherincome d-none">
|
||
<div class="form-row">
|
||
<div class="col-md-3 col-xs-12">
|
||
<div class="form-row">
|
||
<div class="form-check form-check-inline col-md-12">
|
||
<input name="cohasoimealvoucher" type="checkbox" class="form-check-input wpcf-otherincome--oitype" id="ID0cooitype" value="mealvoucher">
|
||
<label class="form-check-label" for="ID0cooitype">Chèque repas</label>
|
||
</div>
|
||
<div class="form-group col-md-12 wpcf-otherincome--amouth wpcf-otherincome--amouth-mealvoucher d-none">
|
||
<input name="cooiamouthmealvoucher" type="number" class="form-control" id="IDcooiamouthmealvoucher" placeholder="Montant" min="0" step="0.01">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-3 col-xs-12">
|
||
<div class="form-row">
|
||
<div class="form-check form-check-inline col-md-12">
|
||
<input name="cohasoirentalincome" type="checkbox" class="form-check-input wpcf-otherincome--oitype" id="ID1cooitype" value="rentalincome">
|
||
<label class="form-check-label" for="ID1cooitype">Revenus locatif</label>
|
||
</div>
|
||
<div class="form-group col-md-12 wpcf-otherincome--amouth wpcf-otherincome--amouth-rentalincome d-none">
|
||
<input name="cooiamouthrentalincome" type="number" class="form-control" id="IDcooiamouthrentalincome" placeholder="Montant" min="0" step="0.01">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-3 col-xs-12">
|
||
<div class="form-row">
|
||
<div class="form-check form-check-inline col-md-12">
|
||
<input name="cohasoiunemployment" type="checkbox" class="form-check-input wpcf-otherincome--oitype" id="ID2cooitype" value="unemployment">
|
||
<label class="form-check-label" for="ID2cooitype">Chômage</label>
|
||
</div>
|
||
<div class="form-group col-md-12 wpcf-otherincome--amouth wpcf-otherincome--amouth-unemployment d-none">
|
||
<input name="cooiamouthunemployment" type="number" class="form-control" id="IDcooiamouthunemployment" placeholder="Montant" min="0" step="0.01">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-3 col-xs-12">
|
||
<div class="form-row">
|
||
<div class="form-check form-check-inline col-md-12">
|
||
<input name="cohasoiother" type="checkbox" class="form-check-input wpcf-otherincome--oitype" id="ID3cooitype" value="other">
|
||
<label class="form-check-label" for="ID3cooitype">Autre</label>
|
||
</div>
|
||
<div class="form-group col-md-12 wpcf-otherincome--amouth wpcf-otherincome--amouth-other d-none">
|
||
<input name="cooiamouthother" type="number" class="form-control" id="IDcooiamouthother" placeholder="Montant" min="0" step="0.01">
|
||
</div>
|
||
<div class="form-group col-md-12 wpcf-otherincome--amouth wpcf-otherincome--amouth-other d-none">
|
||
<input name="cooiothertext" type="text" class="form-control" id="IDcooiothertext" placeholder="Type de revenu">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</fieldset>
|
||
|
||
<!--emporunteur-charge en cour-->
|
||
<fieldset class="py-5">
|
||
<div class="form-row">
|
||
<legend>Emprunteur</legend>
|
||
<legend>Crédits(s) et charge(s) en cours</legend>
|
||
|
||
<div class="form-group col-md-4 pb-3">
|
||
<label for="IDhometype">Habitation</label>
|
||
<select name="hometype" id="IDhometype" class="form-control" required>
|
||
<option value="">Veuillez faire un choix</option>
|
||
<option value="tenant">Locataire</option>
|
||
<option value="owner">Propriétaire</option>
|
||
<option value="withoutrentalcharge">Sans charge locative</option>
|
||
</select>
|
||
</div>
|
||
<div class="wpcf-hometype--complement">
|
||
|
||
<div class="form-group d-none wpcf-hometype--complement-hometenant">
|
||
<label for="IDhometenant">Montant du loyer à payer</label>
|
||
<input name="hometenant" type="number" class="form-control" id="IDhometenant" min="0" step="0.01">
|
||
</div>
|
||
<div class="form-group d-none wpcf-hometype--complement-homeowner">
|
||
<label for="IDhomeowner">Crédit hypothécaire en cours ?</label>
|
||
<select name="homeowner" id="IDhomeowner" class="form-control">
|
||
<option value="">Veuillez faire un choix</option>
|
||
<option value="withmortgageloan">Avec crédit hypothécaire</option>
|
||
<option value="mortgagechargeiber">Libre de charge hypothécaire</option>
|
||
</select>
|
||
</div>
|
||
<div class="form-group d-none wpcf-hometype--complement-homewithoutrentalcharge">
|
||
<label for="IDhomewithoutrentalcharge">Vous habitez</label>
|
||
<select name="homewithoutrentalcharge" id="IDhomewithoutrentalcharge" class="form-control">
|
||
<option value="">Veuillez faire un choix</option>
|
||
<option value="other">Autre</option>
|
||
<option value="withparents">Chez les parents</option>
|
||
<option value="cohabitant">Cohabitant</option>
|
||
<option value="family">Famille</option>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="w-100 d-none d-md-block"></div>
|
||
|
||
<div class="form-check form-check-inline">
|
||
<input name="hascurrentloan" type="checkbox" class="form-check-input" id="IDhascurrentloan" value="1">
|
||
<label class="form-check-label" for="IDhascurrentloan">Avez-vous des crédits en cours ?</label>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="wpcf-currentloan d-none">
|
||
<?php if (is_object($coBorrower)) : ?>
|
||
<p class="warning-message">Si un crédit est en commun avec le co-emprunter, merci de ne l'encoder qu'une seule fois.</p>
|
||
<?php endif ?>
|
||
|
||
<div class="py-5 wpcf-currentloan--block wpcf-prototype">
|
||
|
||
<button type="button" class="close wpcf-currentloan--block--remove" aria-label="Close">
|
||
<span aria-hidden="true">×</span>
|
||
</button>
|
||
|
||
<div class="form-row">
|
||
<div class="form-group col-md-3">
|
||
<label for="ID__number__loantype">Type de créance</label>
|
||
<?php $typesCreance = $wpdb->get_results( "SELECT * FROM cdf_Type_creance"); ?>
|
||
|
||
<select name="currentloans[__number__][loantype]" id="ID__number__loantype" class="form-control" required>
|
||
<option value="">Veuillez faire un choix</option>
|
||
|
||
<?php foreach ($typesCreance as $typeCreance) : ?>
|
||
<option value="<?php echo $typeCreance->idtype_creance ?>"><?php echo $typeCreance->nom_creance ?></option>
|
||
<?php endforeach ?>
|
||
</select>
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="ID__number__bankname">Nom de l'organisme / Banque</label>
|
||
<input name="currentloans[__number__][bankname]" type="text" class="form-control"
|
||
id="ID__number__bankname" required>
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="ID__number__borrowedcapital">Capital emprunté</label>
|
||
<input name="currentloans[__number__][borrowedcapital]" type="number" class="form-control"
|
||
id="ID__number__borrowedcapital" min="0" step="0.01" required>
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="ID__number__durationmonth">Durée du crédit (en mois)</label>
|
||
<input name="currentloans[__number__][durationmonth]" type="number" class="form-control"
|
||
id="ID__number__durationmonth" min="0" step="1" required>
|
||
</div>
|
||
<div class="form-group col-md-3"><label for="ID__number__monthlypayment">Mensualité</label>
|
||
<input name="currentloans[__number__][monthlypayment]" type="number" class="form-control"
|
||
id="ID__number__monthlypayment" min="0" step="0.01" required>
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="ID__number__firstduedate">Date 1ère échéance</label>
|
||
<input name="currentloans[__number__][firstduedate]" type="date" class="form-control"
|
||
id="ID__number__firstduedate" required>
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="ID__number__remainingbalance">Solde restant dû (approximatif)</label>
|
||
<input name="currentloans[__number__][remainingbalance]" type="number" class="form-control"
|
||
id="ID__number__remainingbalance" min="0" step="0.01" required>
|
||
</div>
|
||
<div class="col-md-3 form-group">
|
||
<div class="col-form-label pr-3">À clôturer / Solder ?</div>
|
||
|
||
<div class="form-check form-check-inline">
|
||
<input name="currentloans[__number__][hasclosed]" type="radio" class="form-check-input"
|
||
id="ID__number__1hasclosed" value="0" checked="">
|
||
<label class="form-check-label" for="ID__number__1hasclosed">Non</label>
|
||
</div>
|
||
<div class="form-check form-check-inline">
|
||
<input name="currentloans[__number__][hasclosed]" type="radio" class="form-check-input"
|
||
id="ID__number__2hasclosed" value="1">
|
||
<label class="form-check-label" for="ID__number__2hasclosed">Oui</label>
|
||
</div>
|
||
</div>
|
||
|
||
<input type="hidden" class="wpcf-currentloan--block--kuid" name="currentloans[__number__][kuid]" value="">
|
||
</div>
|
||
</div>
|
||
|
||
<button class="btn btn-primary wpcf-currentload--add">Ajouter un autre crédit</button>
|
||
<input type="hidden" name="delcurrentloan">
|
||
</div>
|
||
</fieldset>
|
||
|
||
<!--co-emporunteur-charge en cour-->
|
||
<fieldset class="py-5 co-emprunteur">
|
||
<div class="form-row">
|
||
<legend>Co-Emprunteur</legend>
|
||
<legend>Crédits(s) et charge(s) en cours</legend>
|
||
|
||
<div class="form-group col-md-4 pb-3">
|
||
<label for="IDcohometype">Habitation</label>
|
||
<select name="cohometype" id="IDcohometype" class="form-control" required>
|
||
<option value="">Veuillez faire un choix</option>
|
||
<option value="tenant">Locataire</option>
|
||
<option value="owner">Propriétaire</option>
|
||
<option value="withoutrentalcharge">Sans charge locative</option>
|
||
</select>
|
||
</div>
|
||
<div class="wpcf-cohometype--complement">
|
||
|
||
<div class="form-group d-none wpcf-cohometype--complement-hometenant">
|
||
<label for="IDcohometenant">Montant du loyer à payer</label>
|
||
<input name="cohometenant" type="number" class="form-control" id="IDcohometenant" min="0" step="0.01">
|
||
</div>
|
||
<div class="form-group d-none wpcf-cohometype--complement-homeowner">
|
||
<label for="IDcohomeowner">Crédit hypothécaire en cours ?</label>
|
||
<select name="cohomeowner" id="IDcohomeowner" class="form-control">
|
||
<option value="">Veuillez faire un choix</option>
|
||
<option value="withmortgageloan">Avec crédit hypothécaire</option>
|
||
<option value="mortgagechargeiber">Libre de charge hypothécaire</option>
|
||
</select>
|
||
</div>
|
||
<div class="form-group d-none wpcf-cohometype--complement-homewithoutrentalcharge">
|
||
<label for="IDcohomewithoutrentalcharge">Vous habitez</label>
|
||
<select name="cohomewithoutrentalcharge" id="IDcohomewithoutrentalcharge" class="form-control">
|
||
<option value="">Veuillez faire un choix</option>
|
||
<option value="other">Autre</option>
|
||
<option value="withparents">Chez les parents</option>
|
||
<option value="cohabitant">Cohabitant</option>
|
||
<option value="family">Famille</option>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="w-100 d-none d-md-block"></div>
|
||
|
||
<div class="form-check form-check-inline">
|
||
<input name="cohascurrentloan" type="checkbox" class="form-check-input" id="IDcohascurrentloan" value="1">
|
||
<label class="form-check-label" for="IDcohascurrentloan">Avez-vous des crédits en cours ?</label>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="wpcf-cocurrentloan d-none">
|
||
<div class="py-5 wpcf-cocurrentloan--block">
|
||
|
||
<button type="button" class="close wpcf-cocurrentloan--block--remove" aria-label="Close">
|
||
<span aria-hidden="true">×</span>
|
||
</button>
|
||
|
||
<div class="form-row">
|
||
<div class="form-group col-md-3">
|
||
<label for="ID__number__cosplashbacktype">Type de créance</label>
|
||
<label for="ID__number__loantype">Type de créance</label>
|
||
<?php $typesCreance = $wpdb->get_results( "SELECT * FROM cdf_Type_creance"); ?>
|
||
|
||
<select name="cocurrentloans[__number__][loantype]" id="ID__number__loantype" class="form-control" required>
|
||
<option value="">Veuillez faire un choix</option>
|
||
|
||
<?php foreach ($typesCreance as $typeCreance) : ?>
|
||
<option value="<?php echo $typeCreance->idtype_creance ?>"><?php echo $typeCreance->nom_creance ?></option>
|
||
<?php endforeach ?>
|
||
</select>
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="ID__number__cobankname">Nom de l'organisme / Banque</label>
|
||
<input name="cocurrentloans[__number__][bankname]" type="text" class="form-control"
|
||
id="ID__number__cobankname" required>
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="ID__number__coborrowedcapital">Capital emprunté</label>
|
||
<input name="cocurrentloans[__number__][borrowedcapital]" type="number" class="form-control"
|
||
id="ID__number__coborrowedcapital" min="0" step="0.01" required>
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="ID__number__codurationmonth">Durée du crédit (en mois)</label>
|
||
<input name="cocurrentloans[__number__][durationmonth]" type="number" class="form-control"
|
||
id="ID__number__codurationmonth" min="0" step="1" required>
|
||
</div>
|
||
<div class="form-group col-md-3"><label for="ID__number__comonthlypayment">Mensualité</label>
|
||
<input name="cocurrentloans[__number__][monthlypayment]" type="number" class="form-control"
|
||
id="ID__number__comonthlypayment" min="0" step="0.01" required>
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="ID__number__cofirstduedate">Date 1ère échéance</label>
|
||
<input name="cocurrentloans[__number__][firstduedate]" type="date" class="form-control"
|
||
id="ID__number__cofirstduedate" required>
|
||
</div>
|
||
<div class="form-group col-md-3">
|
||
<label for="ID__number__coremainingbalance">Solde restant dû (approximatif)</label>
|
||
<input name="cocurrentloans[__number__][remainingbalance]" type="number" class="form-control"
|
||
id="ID__number__coremainingbalance" min="0" step="0.01" required>
|
||
</div>
|
||
<div class="col-md-3 form-group">
|
||
<div class="col-form-label pr-3">À clôturer / Solder ?</div>
|
||
|
||
<div class="form-check form-check-inline">
|
||
<input name="cocurrentloans[__number__][hasclosed]" type="radio" class="form-check-input"
|
||
id="ID__number__1cohasclosed" value="0" checked="">
|
||
<label class="form-check-label" for="ID__number__1cohasclosed">Non</label>
|
||
</div>
|
||
<div class="form-check form-check-inline">
|
||
<input name="cocurrentloans[__number__][hasclosed]" type="radio" class="form-check-input"
|
||
id="ID__number__2cohasclosed" value="1">
|
||
<label class="form-check-label" for="ID__number__2cohasclosed">Oui</label>
|
||
</div>
|
||
</div>
|
||
|
||
<input type="hidden" class="wpcf-cocurrentloan--block--kuid" name="cocurrentloans[__number__][kuid]" value="">
|
||
</div>
|
||
|
||
</div>
|
||
<button class="btn btn-primary wpcf-cocurrentload--add">Ajouter un autre crédit</button>
|
||
<input type="hidden" name="delcocurrentloan">
|
||
</div>
|
||
</fieldset>
|
||
|
||
<div class="form-group col-md-12">
|
||
<label for="IDcommentary">Remarques - message à nous communiquer</label>
|
||
<textarea name="commentary" class="form-control" id="IDcommentary"></textarea>
|
||
</div>
|
||
<?php
|
||
}
|
||
?>
|
||
|
||
<div class="form-row">
|
||
<div class="form-check form-check-inline">
|
||
<input class="form-check-input" type="checkbox" name="rgpd" value="1" id="rgpdID" required>
|
||
<label class="form-check-label" for="rgpdID">
|
||
J'accepte <a href="https://credit-direct.be/vie-privee/" target="_blank">les conditions générales de Crédit Direct</a>
|
||
</label>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="form-group">
|
||
<input type="hidden" name="wpcfstep" value="step1">
|
||
</div>
|
||
|
||
<button class="btn btn-primary" type="submit"><?= $submit_label; ?></button>
|
||
</form>
|
||
</div>
|
||
</div>
|