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

161 lines
8.9 KiB
PHP

<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-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>
<!--
<div class="form-row">
<input type="hidden" name="wpcfstep" value="step2">
</div>
-->
<button class="btn btn-primary mt-5" type="submit">Étape suivante</button>
</form>
</div>
</div>