filtres offres fonctionnel aved sauvegarde des choix

offres2
Baptiste D 1 year ago
parent 44416aebce
commit fd7bdac0ae

@ -183,9 +183,9 @@ class UtilisateurControleur
'offres' => $offers,
'numberPages' => $numberPages,
'currentPage' => $page,
'typeContrat' => (($typeContrat != null ? "checked" : "")),
'experience' => (($exp != null ? "checked" : "")),
'niveauEtudes' => (($niveauEtudes != null ? "checked" : "")),
'typeContrat' => (($typeContrat != null ? $typeContrat : "")),
'experience' => (($exp != null ? $exp : "")),
'niveauEtudes' => (($niveauEtudes != null ? $niveauEtudes : "")),
'valContrat' => (($typeContrat != null ? "&typeContrat=".$typeContrat : "")),
'valExp' => (($exp != null ? "&experience=".$exp : "")),
'valEtudes' => (($niveauEtudes != null ? "&niveauEtudes=".$niveauEtudes : ""))

@ -23,19 +23,19 @@
<div class="form-group mr-3 flex-column">
<label for="typeContrat">Type de contrat :</label>
<div class="form-check">
<input class="form-check-input" type="radio" name="typeContrat" id="cdd" value="CDD" {{typeContrat}}>
<input class="form-check-input" type="radio" name="typeContrat" id="cdd" value="CDD" {% if typeContrat == "CDD" %}checked{% endif %}>
<label class="form-check-label" for="cdd">CDD</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="typeContrat" id="cdi" value="CDI" {{typeContrat}}>
<input class="form-check-input" type="radio" name="typeContrat" id="cdi" value="CDI" {% if typeContrat == "CDI" %}checked{% endif %}>
<label class="form-check-label" for="cdi">CDI</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="typeContrat" id="alternance" value="Alternance" {{typeContrat}}>
<input class="form-check-input" type="radio" name="typeContrat" id="alternance" value="Alternance" {% if "Alternance" == typeContrat %}checked{% endif %}>
<label class="form-check-label" for="alternance">Alternance</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="typeContrat" id="stage" value="Stage" {{typeContrat}}>
<input class="form-check-input" type="radio" name="typeContrat" id="stage" value="Stage" {% if "Stage" == typeContrat %}checked{% endif %}>
<label class="form-check-label" for="stage">Stage</label>
</div>
</div>
@ -43,11 +43,11 @@
<div class="form-group mr-3 flex-column">
<label for="experience">Expérience :</label>
<div class="form-check">
<input class="form-check-input" type="radio" name="experience" id="junior" value="Junior" {{experience}}>
<input class="form-check-input" type="radio" name="experience" id="junior" value="Junior" {% if "Junior" == experience %}checked{% endif %}>
<label class="form-check-label" for="junior">Junior</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="experience" id="senior" value="Senior" {{experience}}>
<input class="form-check-input" type="radio" name="experience" id="senior" value="Senior" {% if "Senior" == experience %}checked{% endif %}>
<label class="form-check-label" for="senior">Senior</label>
</div>
</div>
@ -56,15 +56,15 @@
<label for="niveauEtudes">Niveau d'études :</label>
<div class="form-check">
<input class="form-check-input" type="radio" name="niveauEtudes" id="bac2" value="Bac+2" {{niveauEtudes}}>
<input class="form-check-input" type="radio" name="niveauEtudes" id="bac2" value="Bac+2" {% if "Bac+2" == niveauEtudes %}checked{% endif %}>
<label class="form-check-label" for="bac2">Bac+2</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="niveauEtudes" id="bac3" value="Bac+3" {{niveauEtudes}}>
<input class="form-check-input" type="radio" name="niveauEtudes" id="bac3" value="Bac+3" {% if "Bac+3" == niveauEtudes %}checked{% endif %}>
<label class="form-check-label" for="bac3">Bac+3</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="niveauEtudes" id="bac5" value="Bac+5" {{niveauEtudes}}>
<input class="form-check-input" type="radio" name="niveauEtudes" id="bac5" value="Bac+5" {% if "Bac+5" == niveauEtudes %}checked{% endif %}>
<label class="form-check-label" for="bac5">Bac+5</label>
</div>
</div>

Loading…
Cancel
Save