-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
21 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
@import _root_.helper.MDLForms._ | ||
@import cats.implicits.catsSyntaxEq | ||
@import models.Organisation.Category | ||
@import play.api.libs.json.Json | ||
@import serializers.{DataModel, Keys} | ||
|
@@ -90,31 +91,39 @@ <h5 class="title--addline"> | |
name="groups[]" | ||
value="@group.id" | ||
data-group-name="@group.name" | ||
@if(applicationForm.data.find({case (k, v) => k.startsWith("groups[") && v == group.id.toString})){ checked="checked" } | ||
@if(applicationForm.data.find({case (k, v) => k.startsWith("groups[") && v === group.id.toString})){ checked="checked" } | ||
> | ||
<span class="mdl-checkbox__label"> | ||
<b>@group.name</b> | ||
@if(organisation.nonEmpty){ <em>(@organisation.get.name)</em> } | ||
</span> | ||
</label> | ||
|
||
<div id="[email protected]" class="organisation-row @if(!applicationForm.data.find({case (k, v) => k.startsWith("groups[") && v == group.id.toString})){ invisible }"> | ||
@if(organisation.map(_.id).filter(_ == Organisation.cafId).nonEmpty) { | ||
<div id="[email protected]" class="organisation-row @if(!applicationForm.data.find({case (k, v) => k.startsWith("groups[") && v === group.id.toString})){ invisible }"> | ||
@if(organisation.map(_.id).filter(_ === Organisation.cafId).nonEmpty) { | ||
<tr> | ||
<td style="text-align: left; white-space: normal"> | ||
<div class="info-box info-box--no-spacing"> | ||
La CAF aura besoin du <b>numéro identifiant CAF</b> et à défaut de la date de naissance. Vous pouvez le renseigner dans <b>Informations concernant l'usager</b> ci-dessous. | ||
</div> | ||
</td> | ||
</tr> | ||
} else if (organisation.map(_.id).filter(_ == Organisation.cpamId).nonEmpty) { | ||
} else if (organisation.map(_.id).filter(_ === Organisation.cpamId).nonEmpty) { | ||
<tr> | ||
<td style="text-align: left; white-space: normal"> | ||
<div class="info-box info-box--no-spacing"> | ||
La CPAM aura besoin du <b>numéro de sécurité sociale</b> et à défaut de la date de naissance. Vous pouvez le renseigner dans <b>Informations concernant l'usager</b> ci-dessous. | ||
</div> | ||
</td> | ||
</tr> | ||
} else if (organisation.find(entity => Set(Organisation.prefId, Organisation.sousPrefId).contains(entity.id)).nonEmpty) { | ||
<tr> | ||
<td style="text-align: left; white-space: normal"> | ||
<div class="info-box info-box--no-spacing"> | ||
La préfecture (ou sous-préfecture) ne répondra pas forcément aux questions relative aux renouvellements de titre de séjour ou des certificats d’immatriculation. Pour les titres de séjour concernant les étudiants, vous pouvez utiliser la plateforme du ministère de l’intérieur <a href="https://administration-etrangers-en-france.interieur.gouv.fr/particuliers/#/" target="_blank" rel="noopener">à cette adresse</a>. Pour les certificats d’immatriculation, vous pouvez contacter l’ANTS <a href="https://ants.gouv.fr/Contacter-l-ANTS/Contactez-nous" target="_blank" rel="noopener">à cette adresse</a>. | ||
</div> | ||
</td> | ||
</tr> | ||
} | ||
</div> | ||
|
||
|
@@ -235,7 +244,7 @@ <h5 class="title--addline">Ajouter des collègues à la demande</h5> | |
<tr> | ||
<td> | ||
<label class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect mdl-js-ripple-effect--ignore-events"> | ||
<input type="checkbox" class="mdl-checkbox__input" name="users[]" value="@coworker.id" @if(applicationForm.data.find({case (k, v) => k.startsWith("users[") && v == coworker.id.toString})){ checked="checked" }> | ||
<input type="checkbox" class="mdl-checkbox__input" name="users[]" value="@coworker.id" @if(applicationForm.data.find({case (k, v) => k.startsWith("users[") && v === coworker.id.toString})){ checked="checked" }> | ||
</label> | ||
</td> | ||
<td class="mdl-data-table__cell--non-numeric">@coworker.name</td> | ||
|
@@ -282,7 +291,7 @@ <h5 class="title--addline"> | |
class="mdl-radio__button" | ||
name="@name" | ||
value="@optionValue" | ||
@if(value == Some(optionValue)){checked="checked"} | ||
@if(value === Some(optionValue)){checked="checked"} | ||
@toHtmlArgs(args)/> | ||
<span class="mdl-radio__label">@optionLabel</span> | ||
</label> | ||
|