Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FO - Form] Ajouter un champ "classe énergétique" #3334

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions assets/json/Signalement/questions_profile_bailleur.json
Original file line number Diff line number Diff line change
Expand Up @@ -1043,9 +1043,6 @@
"value": "nsp"
}
],
"conditional": {
"show": "formStore.data.bail_dpe_dpe === 'oui'"
},
"validate": {
"message": "Veuillez indiquer la classe énergétique pour le logement."
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@
{
"type": "SignalementFormSelect",
"slug": "bail_dpe_classe_energetique",
"label": "Quelle est la classe énergétique de votre logement ?",
"label": "Quelle est la classe énergétique du logement ?",
"description": "La classe énergétique indique si le logement consomme beaucoup d'énergie ou non. La classe A est la meilleure, la classe G est la moins bonne.",
"values": [
{
Expand Down Expand Up @@ -902,9 +902,6 @@
"value": "nsp"
}
],
"conditional": {
"show": "formStore.data.bail_dpe_dpe === 'oui'"
},
"validate": {
"message": "Veuillez indiquer la classe énergétique pour le logement."
}
Expand Down
5 changes: 1 addition & 4 deletions assets/json/Signalement/questions_profile_locataire.json
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@
{
"type": "SignalementFormSelect",
"slug": "bail_dpe_classe_energetique",
"label": "Quelle est la classe énergétique de votre logement ?",
"label": "Quelle est la classe énergétique du logement ?",
"description": "La classe énergétique indique si le logement consomme beaucoup d'énergie ou non. La classe A est la meilleure, la classe G est la moins bonne.",
"values": [
{
Expand Down Expand Up @@ -1096,9 +1096,6 @@
"value": "nsp"
}
],
"conditional": {
"show": "formStore.data.bail_dpe_dpe === 'oui'"
},
"validate": {
"message": "Veuillez indiquer la classe énergétique pour le logement."
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1147,9 +1147,6 @@
"value": "nsp"
}
],
"conditional": {
"show": "formStore.data.bail_dpe_dpe === 'oui'"
},
"validate": {
"message": "Veuillez indiquer la classe énergétique pour le logement."
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1174,9 +1174,6 @@
"value": "nsp"
}
],
"conditional": {
"show": "formStore.data.bail_dpe_dpe === 'oui'"
},
"validate": {
"message": "Veuillez indiquer la classe énergétique pour le logement."
}
Expand Down
3 changes: 0 additions & 3 deletions assets/json/Signalement/questions_profile_tiers_pro.json
Original file line number Diff line number Diff line change
Expand Up @@ -1158,9 +1158,6 @@
"value": "nsp"
}
],
"conditional": {
"show": "formStore.data.bail_dpe_dpe === 'oui'"
},
"validate": {
"message": "Veuillez indiquer la classe énergétique pour le logement."
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,7 @@ export default defineComponent({
result += this.addLineIfNeeded('bail_dpe_bail', 'Bail établi ? ')
result += this.addLineIfNeeded('bail_dpe_etat_des_lieux', 'Etat des lieux réalisé ? ')
result += this.addLineIfNeeded('bail_dpe_dpe', 'DPE réalisé ? ')
if (this.formStore.data.bail_dpe_dpe === 'oui') {
result += this.addLineIfNeeded('bail_dpe_classe_energetique', 'Classe énergétique du logement : ')
}
result += this.addLineIfNeeded('bail_dpe_classe_energetique', 'Classe énergétique du logement : ')
return result
},
getFormDataSituationOccupant (): string {
Expand Down
Loading