Skip to content

Commit

Permalink
Merge pull request #3676 from MTES-MCT/feature/3488-fo---non-decence-…
Browse files Browse the repository at this point in the history
…energetique-classe-G

[FO / BO  - Non-Decence Energetique] Ajuster critères
  • Loading branch information
numew authored Feb 13, 2025
2 parents 4044add + 865fd25 commit 790a5d9
Show file tree
Hide file tree
Showing 29 changed files with 442 additions and 439 deletions.
76 changes: 0 additions & 76 deletions assets/json/Signalement/desordres_profile_occupant.json
Original file line number Diff line number Diff line change
Expand Up @@ -1700,82 +1700,6 @@
"conditional": {
"show": "formStore.data.desordres_logement_chauffage_details_chauffage_dangereux === 1"
}
},
{
"type": "SignalementFormOnlyChoice",
"label": "Quand le DPE de votre logement a-t-il été réalisé ?",
"slug": "desordres_logement_chauffage_details_dpe_annee",
"conditional": {
"show": "(formStore.data.desordres_logement_chauffage_details_fenetres_permeables === 1 || formStore.data.desordres_logement_chauffage_details_difficultes_chauffage === 1 || formStore.data.desordres_logement_chauffage_details_chauffage_KO === 1 ) && formStore.data.bail_dpe_dpe === 'oui'"
},
"values": [
{
"label": "{{dictionaryStore::post2023}}",
"value": "post2023"
},
{
"label": "{{dictionaryStore::before2023}}",
"value": "before2023"
}
],
"validate": {
"message": "Veuillez indiquer quand le DPE a été réalisé."
}
},
{
"type": "SignalementFormCounter",
"label": "{{dictionaryStore::desordres_logement_chauffage_details_dpe_conso_finale}} (facultatif)",
"description": "Format attendu : Saisir un nombre entier",
"slug": "desordres_logement_chauffage_details_dpe_conso_finale",
"conditional": {
"show": "formStore.data.desordres_logement_chauffage_details_dpe_annee === 'post2023'"
},
"validate": {
"pattern": "^[0-9]*$",
"patternMessage": "Veuillez saisir une consommation en énergie valide.",
"required": false
},
"defaultValue": 1
},
{
"type": "SignalementFormCounter",
"label": "Quelle est la superficie de votre logement ? (m²) (facultatif)",
"description": "Format attendu : Saisir un nombre entier",
"slug": "composition_logement_superficie",
"conditional": {
"show": "formStore.data.desordres_logement_chauffage_details_dpe_annee === 'before2023'"
},
"validate": {
"pattern": "^[0-9]*$",
"patternMessage": "Veuillez renseigner une superficie valide.",
"required": false
}
},
{
"type": "SignalementFormCounter",
"label": "Quelle est la consommation en énergie indiquée sur le DPE ? (kWh/an) (facultatif)",
"description": "Format attendu : Saisir un nombre entier",
"slug": "desordres_logement_chauffage_details_dpe_conso",
"conditional": {
"show": "formStore.data.desordres_logement_chauffage_details_dpe_annee === 'before2023'"
},
"defaultValue": 1,
"validate": {
"pattern": "^[0-9]*$",
"patternMessage": "Veuillez renseigner une consommation en énergie valide.",
"required": false
}
},
{
"type": "SignalementFormCheckbox",
"label": "Mon DPE est vide",
"slug": "desordres_logement_chauffage_details_dpe_conso_vide",
"conditional": {
"show": "formStore.data.desordres_logement_chauffage_details_dpe_annee === 'post2023' || formStore.data.desordres_logement_chauffage_details_dpe_annee === 'before2023'"
},
"validate": {
"required": false
}
}
]
}
Expand Down
76 changes: 0 additions & 76 deletions assets/json/Signalement/desordres_profile_tiers.json
Original file line number Diff line number Diff line change
Expand Up @@ -1726,82 +1726,6 @@
"conditional": {
"show": "formStore.data.desordres_logement_chauffage_details_chauffage_dangereux === 1"
}
},
{
"type": "SignalementFormOnlyChoice",
"label": "{{dictionaryStore::desordres_logement_chauffage_details_dpe_annee}}",
"slug": "desordres_logement_chauffage_details_dpe_annee",
"conditional": {
"show": "(formStore.data.desordres_logement_chauffage_details_fenetres_permeables === 1 || formStore.data.desordres_logement_chauffage_details_difficultes_chauffage === 1 || formStore.data.desordres_logement_chauffage_details_chauffage_KO === 1 ) && formStore.data.bail_dpe_dpe === 'oui'"
},
"values": [
{
"label": "{{dictionaryStore::post2023}}",
"value": "post2023"
},
{
"label": "{{dictionaryStore::before2023}}",
"value": "before2023"
}
],
"validate": {
"message": "Veuillez indiquer quand le DPE a été réalisé."
}
},
{
"type": "SignalementFormCounter",
"label": "{{dictionaryStore::desordres_logement_chauffage_details_dpe_conso_finale}} (facultatif)",
"description": "Format attendu : Saisir un nombre entier",
"slug": "desordres_logement_chauffage_details_dpe_conso_finale",
"conditional": {
"show": "formStore.data.desordres_logement_chauffage_details_dpe_annee === 'post2023'"
},
"validate": {
"pattern": "^[0-9]*$",
"patternMessage": "Veuillez renseigner une consommation en énergie valide.",
"required": false
},
"defaultValue": 1
},
{
"type": "SignalementFormCounter",
"label": "{{dictionaryStore::composition_logement_superficie}} (facultatif)",
"description": "Format attendu : Saisir un nombre entier",
"slug": "composition_logement_superficie",
"conditional": {
"show": "formStore.data.desordres_logement_chauffage_details_dpe_annee === 'before2023'"
},
"validate": {
"pattern": "^[0-9]*$",
"patternMessage": "Veuillez renseigner une superficie valide.",
"required": false
}
},
{
"type": "SignalementFormCounter",
"label": "{{dictionaryStore::desordres_logement_chauffage_details_dpe_conso}} (facultatif)",
"description": "Format attendu : Saisir un nombre entier",
"slug": "desordres_logement_chauffage_details_dpe_conso",
"conditional": {
"show": "formStore.data.desordres_logement_chauffage_details_dpe_annee === 'before2023'"
},
"defaultValue": 1,
"validate": {
"pattern": "^[0-9]*$",
"patternMessage": "Veuillez renseigner une consommation en énergie valide.",
"required": false
}
},
{
"type": "SignalementFormCheckbox",
"label": "{{dictionaryStore::desordres_logement_chauffage_details_dpe_conso_vide}} (facultatif)",
"slug": "desordres_logement_chauffage_details_dpe_conso_vide",
"conditional": {
"show": "formStore.data.desordres_logement_chauffage_details_dpe_annee === 'post2023' || formStore.data.desordres_logement_chauffage_details_dpe_annee === 'before2023'"
},
"validate": {
"required": false
}
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion assets/json/Signalement/dictionary.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"plusieurs_pieces": { "default": "Plusieurs pièces" },
"caf": { "default": "CAF" },
"msa": { "default": "MSA" },
"post2023": { "default": "En 2023" },
"post2023": { "default": "A partir de 2023" },
"before2023": { "default": "Avant 2023" },
"before_movein": { "default": "Avant emménagement" },
"after_movein": { "default": "Après emménagement" },
Expand Down
30 changes: 30 additions & 0 deletions assets/json/Signalement/questions_profile_bailleur.json
Original file line number Diff line number Diff line change
Expand Up @@ -1128,6 +1128,36 @@
"validate": {
"message": "Veuillez indiquer la classe énergétique pour le logement."
}
},
{
"type": "SignalementFormOnlyChoice",
"label": "Quand le DPE de votre logement a-t-il été réalisé ?",
"slug": "desordres_logement_chauffage_details_dpe_annee",
"values": [
{
"label": "{{dictionaryStore::post2023}}",
"value": "post2023"
},
{
"label": "{{dictionaryStore::before2023}}",
"value": "before2023"
},
{
"label": "{{dictionaryStore::nsp}}",
"value": "nsp"
}
],
"validate": {
"message": "Veuillez indiquer quand le DPE a été réalisé."
}
},
{
"type": "SignalementFormWarning",
"slug": "bail_dpe_date_warning",
"label": "Les DPE réalisés <u>avant le 30 juin 2021</u> ne sont plus valables. Si le DPE du logement a été réalisé avant le 30 juin 2021, vous devez faire réaliser un nouveau DPE.",
"conditional": {
"show": "formStore.data.desordres_logement_chauffage_details_dpe_annee === 'before2023' || formStore.data.desordres_logement_chauffage_details_dpe_annee === 'nsp'"
}
}
],
"footer": [
Expand Down
30 changes: 30 additions & 0 deletions assets/json/Signalement/questions_profile_bailleur_occupant.json
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,36 @@
"validate": {
"message": "Veuillez indiquer la classe énergétique pour le logement."
}
},
{
"type": "SignalementFormOnlyChoice",
"label": "Quand le DPE de votre logement a-t-il été réalisé ?",
"slug": "desordres_logement_chauffage_details_dpe_annee",
"values": [
{
"label": "{{dictionaryStore::post2023}}",
"value": "post2023"
},
{
"label": "{{dictionaryStore::before2023}}",
"value": "before2023"
},
{
"label": "{{dictionaryStore::nsp}}",
"value": "nsp"
}
],
"validate": {
"message": "Veuillez indiquer quand le DPE a été réalisé."
}
},
{
"type": "SignalementFormWarning",
"slug": "bail_dpe_date_warning",
"label": "Les DPE réalisés <u>avant le 30 juin 2021</u> ne sont plus valables. Si le DPE du logement a été réalisé avant le 30 juin 2021, vous devez faire réaliser un nouveau DPE.",
"conditional": {
"show": "formStore.data.desordres_logement_chauffage_details_dpe_annee === 'before2023' || formStore.data.desordres_logement_chauffage_details_dpe_annee === 'nsp'"
}
}
],
"footer": [
Expand Down
30 changes: 30 additions & 0 deletions assets/json/Signalement/questions_profile_locataire.json
Original file line number Diff line number Diff line change
Expand Up @@ -1154,6 +1154,36 @@
"validate": {
"message": "Veuillez indiquer la classe énergétique pour le logement."
}
},
{
"type": "SignalementFormOnlyChoice",
"label": "Quand le DPE de votre logement a-t-il été réalisé ?",
"slug": "desordres_logement_chauffage_details_dpe_annee",
"values": [
{
"label": "{{dictionaryStore::post2023}}",
"value": "post2023"
},
{
"label": "{{dictionaryStore::before2023}}",
"value": "before2023"
},
{
"label": "{{dictionaryStore::nsp}}",
"value": "nsp"
}
],
"validate": {
"message": "Veuillez indiquer quand le DPE a été réalisé."
}
},
{
"type": "SignalementFormWarning",
"slug": "bail_dpe_date_warning",
"label": "Les DPE réalisés <u>avant le 30 juin 2021</u> ne sont plus valables. Si le DPE du logement a été réalisé avant le 30 juin 2021, demandez au propriétaire / bailleur du logement de réaliser un nouveau DPE.",
"conditional": {
"show": "formStore.data.desordres_logement_chauffage_details_dpe_annee === 'before2023' || formStore.data.desordres_logement_chauffage_details_dpe_annee === 'nsp'"
}
}
],
"footer": [
Expand Down
30 changes: 30 additions & 0 deletions assets/json/Signalement/questions_profile_service_secours.json
Original file line number Diff line number Diff line change
Expand Up @@ -1215,6 +1215,36 @@
"validate": {
"message": "Veuillez indiquer la classe énergétique pour le logement."
}
},
{
"type": "SignalementFormOnlyChoice",
"label": "Quand le DPE de votre logement a-t-il été réalisé ?",
"slug": "desordres_logement_chauffage_details_dpe_annee",
"values": [
{
"label": "{{dictionaryStore::post2023}}",
"value": "post2023"
},
{
"label": "{{dictionaryStore::before2023}}",
"value": "before2023"
},
{
"label": "{{dictionaryStore::nsp}}",
"value": "nsp"
}
],
"validate": {
"message": "Veuillez indiquer quand le DPE a été réalisé."
}
},
{
"type": "SignalementFormWarning",
"slug": "bail_dpe_date_warning",
"label": "Les DPE réalisés <u>avant le 30 juin 2021</u> ne sont plus valables. Si le DPE du logement a été réalisé avant le 30 juin 2021, demandez au propriétaire / bailleur du logement de réaliser un nouveau DPE.",
"conditional": {
"show": "formStore.data.desordres_logement_chauffage_details_dpe_annee === 'before2023' || formStore.data.desordres_logement_chauffage_details_dpe_annee === 'nsp'"
}
}
],
"footer": [
Expand Down
30 changes: 30 additions & 0 deletions assets/json/Signalement/questions_profile_tiers_particulier.json
Original file line number Diff line number Diff line change
Expand Up @@ -1249,6 +1249,36 @@
"validate": {
"message": "Veuillez indiquer la classe énergétique pour le logement."
}
},
{
"type": "SignalementFormOnlyChoice",
"label": "Quand le DPE de votre logement a-t-il été réalisé ?",
"slug": "desordres_logement_chauffage_details_dpe_annee",
"values": [
{
"label": "{{dictionaryStore::post2023}}",
"value": "post2023"
},
{
"label": "{{dictionaryStore::before2023}}",
"value": "before2023"
},
{
"label": "{{dictionaryStore::nsp}}",
"value": "nsp"
}
],
"validate": {
"message": "Veuillez indiquer quand le DPE a été réalisé."
}
},
{
"type": "SignalementFormWarning",
"slug": "bail_dpe_date_warning",
"label": "Les DPE réalisés <u>avant le 30 juin 2021</u> ne sont plus valables. Si le DPE du logement a été réalisé avant le 30 juin 2021, demandez au propriétaire / bailleur du logement de réaliser un nouveau DPE.",
"conditional": {
"show": "formStore.data.desordres_logement_chauffage_details_dpe_annee === 'before2023' || formStore.data.desordres_logement_chauffage_details_dpe_annee === 'nsp'"
}
}
],
"footer": [
Expand Down
30 changes: 30 additions & 0 deletions assets/json/Signalement/questions_profile_tiers_pro.json
Original file line number Diff line number Diff line change
Expand Up @@ -1233,6 +1233,36 @@
"validate": {
"message": "Veuillez indiquer la classe énergétique pour le logement."
}
},
{
"type": "SignalementFormOnlyChoice",
"label": "Quand le DPE de votre logement a-t-il été réalisé ?",
"slug": "desordres_logement_chauffage_details_dpe_annee",
"values": [
{
"label": "{{dictionaryStore::post2023}}",
"value": "post2023"
},
{
"label": "{{dictionaryStore::before2023}}",
"value": "before2023"
},
{
"label": "{{dictionaryStore::nsp}}",
"value": "nsp"
}
],
"validate": {
"message": "Veuillez indiquer quand le DPE a été réalisé."
}
},
{
"type": "SignalementFormWarning",
"slug": "bail_dpe_date_warning",
"label": "Les DPE réalisés <u>avant le 30 juin 2021</u> ne sont plus valables. Si le DPE du logement a été réalisé avant le 30 juin 2021, demandez au propriétaire / bailleur du logement de réaliser un nouveau DPE.",
"conditional": {
"show": "formStore.data.desordres_logement_chauffage_details_dpe_annee === 'before2023' || formStore.data.desordres_logement_chauffage_details_dpe_annee === 'nsp'"
}
}
],
"footer": [
Expand Down
Loading

0 comments on commit 790a5d9

Please sign in to comment.