301 lines
21 KiB
PHP
301 lines
21 KiB
PHP
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<h2>Introduction de votre demande de crédit</h2>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
|
|
<section class="steps-holder">
|
|
<div class="container">
|
|
<section class="row">
|
|
<div class="credit-recap col-md-12 pb-3">
|
|
|
|
<div class="progress-steps">
|
|
<div class="step">
|
|
<span class="step-number">1</span>
|
|
<span class="step-text">Contact</span>
|
|
</div>
|
|
<div class="step active">
|
|
<span class="step-number">2</span>
|
|
<span class="step-text">Revenus & charges</span>
|
|
</div>
|
|
<div class="step">
|
|
<span class="step-number">3</span>
|
|
<span class="step-text">Informations personnelles</span>
|
|
</div>
|
|
<div class="step">
|
|
<span class="step-number">4</span>
|
|
<span class="step-text">Coordonnées</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</section>
|
|
|
|
<div class="container">
|
|
<div class="wp-credit-form">
|
|
<?php if (!empty($_POST) && isset($validation_errors) && !empty($validation_errors)): ?>
|
|
<?php echo $validation_errors; ?>
|
|
<?php endif; ?>
|
|
|
|
<form class="form-submit" method="POST" action="<?php echo get_site_url() ?>/credit-step3" enctype="multipart/form-data">
|
|
<input type="hidden" name="credit-direct-token" value="<?php echo $currentCredit->token ?>">
|
|
|
|
<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" <?php if(!$hasCoBorrower) echo '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" <?php if($hasCoBorrower) echo 'checked'; ?>>
|
|
<label class="form-check-label" for="ID2hascoborrower">avec un co-emprunteur</label>
|
|
</div>
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
<div class="row">
|
|
<fieldset class="pt-5 col-md-12 credit-cols">
|
|
<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> -->
|
|
|
|
<div class="form-group col-md-12 etat-civil-pat">
|
|
<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="">Veuillez faire un choix</option>
|
|
|
|
<?php foreach ($etatCivil as $ec) : ?>
|
|
<option value="<?php echo $ec->idetat_civil ?>" <?php echo $model->isOptionSelected('FK_etat_civil', $ec->idetat_civil, $borrower); ?>><?php echo $ec->nom_etat_civil ?></option>
|
|
<?php endforeach ?>
|
|
</select>
|
|
</div>
|
|
|
|
<legend class="sub-section">Votre profession et Revenus</legend>
|
|
|
|
<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 $model->isOptionSelected('FK_profession', $p->idprofession, $borrower); ?>><?php echo $p->nom_profession ?></option>
|
|
<?php endforeach ?>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="form-group col-md-4 withemployer_section">
|
|
<section class="contrat employee_section">
|
|
<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 $model->isOptionSelected('contract_type', $key, $borrower); ?>><?php echo $contractType ?></option>
|
|
<?php endforeach ?>
|
|
</select>
|
|
</section>
|
|
<section class="independent_since independent_section hidden">
|
|
<label for="IDindependent_since">Indépendant depuis</label>
|
|
<input name="independent_since" type="text" class="form-control input-date" id="IDindependent_since" placeholder="JJ/MM/AAAA" data-inputmask="'mask': '99/99/9999'">
|
|
</section>
|
|
|
|
</div>
|
|
<div class="form-group col-md-6">
|
|
<section class="monthly_salary employee_section">
|
|
<label for="IDsalary"><span>Salaire net mensuel</span></label>
|
|
<input name="salary" type="number" class="form-control" id="IDsalary" min="0" step="0.01" value="<?php echo $model->getFieldValue('salaire', $borrower); ?>" required>
|
|
</section>
|
|
<section class="annual_taxable_income independent_section hidden">
|
|
<label for="IDannual_taxable_income"><span>Revenu imposable annuel</span></label>
|
|
<input name="annual_taxable_income" type="number" class="form-control" id="IDannual_taxable_income" min="0" step="0.01" value="<?php echo $model->getFieldValue('revenu_imposable_annuel', $borrower); ?>">
|
|
</section>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-md-6">
|
|
<!-- <section class="paycheck employee_section withemployer_section">
|
|
<label for="IDpaycheck">Preuve de revenu (fiche de paie, mutuelle, chômage, etc.) (Facultatif)</label>
|
|
<input name="paycheck[]" type="file" class="form-control" id="IDpaycheck" multiple>
|
|
</section>
|
|
<section class="notice_of_assessment independent_section hidden">
|
|
<label for="IDnotice_of_assessment">Votre dernier avertissement extrait de rôle (Facultatif)</label></label>
|
|
<input name="notice_of_assessment" type="file" class="form-control" id="IDnotice_of_assessment">
|
|
</section> -->
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="isIndependant d-none">
|
|
<div class="form-row">
|
|
<div class="col-md-4">
|
|
<label for="idSecteurActivites">Secteur d'activité</label>
|
|
<select name="secteur_activite" id="idSecteurActivites" class="form-control">
|
|
<option value="">Veuillez faire un choix</option>
|
|
<option value="prive" <?php echo $model->isOptionSelected('secteur_activite', 'prive', $borrower); ?>>Privé</option>
|
|
<option value="public" <?php echo $model->isOptionSelected('secteur_activite', 'public', $borrower); ?>>Public</option>
|
|
<option value="autre" <?php echo $model->isOptionSelected('secteur_activite', 'autre', $borrower); ?>>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" value="<?php echo $model->getFieldValue('num_tva', $borrower); ?>">
|
|
</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" <?php if(!$model->hasOtherIncome) echo '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" <?php if($model->hasOtherIncome) echo 'checked'; ?>>
|
|
<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" <?php echo $model->isCheckboxChecked('hasoimealvoucher', 'mealvoucher', $borrower); ?>>
|
|
<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" value="<?php echo $model->getFieldValue('oiamouthmealvoucher', $borrower); ?>">
|
|
</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" <?php echo $model->isCheckboxChecked('hasoirentalincome', 'rentalincome', $borrower); ?>>
|
|
<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" value="<?php echo $model->getFieldValue('oiamouthrentalincome', $borrower); ?>">
|
|
</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" <?php echo $model->isCheckboxChecked('hasoiunemployment', 'unemployment', $borrower); ?>>
|
|
<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" value="<?php echo $model->getFieldValue('oiamouthunemployment', $borrower); ?>">
|
|
</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" <?php echo $model->isCheckboxChecked('hasoiother', 'other', $borrower); ?>>
|
|
<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" value="<?php echo $model->getFieldValue('oiamouthother', $borrower); ?>">
|
|
</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" value="<?php echo $model->getFieldValue('oiothertext', $borrower); ?>">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-row py-3">
|
|
<div class="col-form-label pr-3">Etes-vous fiché à la Banque Nationale ?</div>
|
|
<div class="form-check form-check-inline">
|
|
<input name="isFiched" type="radio" class="form-check-input" id="isFiched1" value="0" <?php if(!$model->estFicheBanqueNational) echo '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" <?php if($model->estFicheBanqueNational) echo 'checked'; ?>>
|
|
<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" <?php echo $model->isRadioChecked('fichage_status', 'regularise', $borrower); ?>>
|
|
<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" <?php echo $model->isRadioChecked('fichage_status', 'non_regularise', $borrower); ?>>
|
|
<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" <?php echo $model->isRadioChecked('fichage_status', 'mediation_dettes', $borrower); ?>>
|
|
<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="habitation_type" id="habitation_type" class="form-control">
|
|
<option value="">Veuillez faire un choix</option>
|
|
<option value="proprietaire" <?php echo $model->isOptionSelected('habitation_type', 'proprietaire', $borrower); ?>>Propriétaire avec prêt hypothécaire</option>
|
|
<option value="proprietaire_sans_pret" <?php echo $model->isOptionSelected('habitation_type', 'proprietaire_sans_pret', $borrower); ?>>Propriétaire sans prêt hypothécaire</option>
|
|
<option value="locataire" <?php echo $model->isOptionSelected('habitation_type', 'locataire', $borrower); ?>>Locataire</option>
|
|
<option value="cohabitant" <?php echo $model->isOptionSelected('habitation_type', 'cohabitant', $borrower); ?>>Cohabitant</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="hasLoyer em <?php if(!$model->is_locataire($borrower)) echo '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="habitation_loyer" type="number" class="form-control" id="habitation_loyer" value="<?php echo $model->getFieldValue('habitation_loyer', $borrower); ?>">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!--autre crédit-->
|
|
<section class="credits">
|
|
|
|
</section>
|
|
|
|
</div>
|
|
</fieldset>
|
|
|