credit-direct/templates/front/newSteps/credit-newstep2-a.php
2025-12-18 09:44:42 +01:00

232 lines
15 KiB
PHP

<div class="container">
<div class="wp-credit-form">
<form class="form-submit" method="POST" action="<?php echo get_site_url() ?>/credit-step3">
<input type="hidden" name="credit-direct-token" value="<?php echo $currentCredit->token ?>">
<section class="step-progress">
<ul class="progressbar">
<li class="progress-step active-step">Coordonées</li>
<li class="progress-step active-step">Emprunteur</li>
<li class="progress-step">Crédit</li>
</ul>
</section>
<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>
<fieldset class="pt-5">
<div class="wpcf-borrower">
<div class="form-row">
<h4>Emprunteur</h4>
<legend>Coordonnées de contact</legend>
<div class="form-group col-md-6">
<label for="IDfirstname">Prénom</label>
<input name="firstname" type="text" class="form-control" id="IDfirstname">
</div>
<div class="form-group col-md-6">
<label for="IDlastname">Nom</label>
<input name="lastname" type="text" class="form-control" id="IDlastname">
</div>
<div class="form-group col-md-6">
<label for="IDemail">Email</label>
<input name="email" type="email" class="form-control" id="IDemail">
</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">
</div>
<legend>Votre profession et Revenus</legend>
<div class="form-group col-md-12">
<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-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-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="isIndependant d-none">
<div class="form-row">
<div class="col-md-4">
<label for="idSecteurActivites">Type de contrat</label>
<select name="secteur_activite" id="idSecteurActivites" class="form-control">
<option value="">Veuillez faire un choix</option>
<option value="prive">Privé</option>
<option value="public">Public</option>
<option value="autre">Autre</option>
</select>
</div>
<div class="col-md-4">
<label for="num_tva">N° de TVA ou d'entreprise</label>
<input name="num_tva" type="text" class="form-control" id="num_tva">
</div>
</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 class="form-row py-3">
<div class="col-form-label pr-3">Etes-vous fichez à la Banque Nationale ?</div>
<div class="form-check form-check-inline">
<input name="isFiched" type="radio" class="form-check-input" id="isFiched1" value="0" checked="">
<label class="form-check-label" for="isFiched1">Non</label>
</div>
<div class="form-check form-check-inline">
<input name="isFiched" type="radio" class="form-check-input" id="isFiched2" value="1">
<label class="form-check-label" for="isFiched2">Oui</label>
</div>
</div>
<div class="isFichedDisplay em d-none">
<div class="form-row">
<div class="col-md-12">
<p class="sub-title">Statut du fichage</p>
<div class="form-check form-check-inline">
<input name="fichage_status" type="radio" class="form-check-input" id="fichage_status1" value="regularise">
<label class="form-check-label" for="fichage_status1">Régularisé</label>
</div>
<div class="form-check form-check-inline">
<input name="fichage_status" type="radio" class="form-check-input" id="fichage_status2" value="non_regularise">
<label class="form-check-label" for="fichage_status2">Non régularisé</label>
</div>
<div class="form-check form-check-inline">
<input name="fichage_status" type="radio" class="form-check-input" id="fichage_status3" value="mediation_dettes">
<label class="form-check-label" for="fichage_status3">Médiation de dettes</label>
</div>
</div>
</div>
</div>
<div class="form-row py-3">
<div class="col-md-12">
<div class="col-form-label pr-3">Statut du logement</div>
<select name="housing_status" id="housing_status" class="form-control">
<option value="">Veuillez faire un choix</option>
<option value="proprietaire">Propriétaire avec prêt hypothécaire</option>
<option value="proprietaire_sans_pret">Propriétaire sans prêt hypothécaire</option>
<option value="locataire">Locataire</option>
<option value="cohabitant">Cohabitant</option>
</select>
</div>
</div>
<div class="hasLoyer em d-none">
<div class="form-row">
<div class="col-md-12">
<div class="col-form-label pr-3">Montant du loyer mensuel ou participation aux charges</div>
<input name="mtn_loyer" type="date" class="form-control" id="mtn_loyer">
</div>
</div>
</div>
</div>
</fieldset>