-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Signalement] Modification de la question de préavis de départ #2196
Conversation
@@ -101,6 +102,18 @@ public function setTravailleurSocialQuitteLogement(?string $travailleurSocialQui | |||
return $this; | |||
} | |||
|
|||
public function getTravailleurSocialPreavisDepart(bool $raw = true): ?string | |||
{ | |||
return (!$raw && 'nsp' === $this->travailleurSocialPreavisDepart) ? 'Ne sait pas' : $this->travailleurSocialPreavisDepart; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reprise du même principe utilisé par Numa dans sa PR #2194
{% elseif signalement.situationFoyer.travailleurSocialPreavisDepart is same as 'non' %} | ||
{{ static_picto_no|raw }} | ||
{% else %} | ||
{{signalement.situationFoyer.travailleurSocialPreavisDepart(false)}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reprise du principe utilisé par Numa dans sa PR #2194
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests et relecture OK
Veto sur un merge de celle ci avant la #2194
templates/back/signalement/view/edit-modals/edit-situation-foyer.html.twig
Show resolved
Hide resolved
src/DataFixtures/Files/signalement_draft_payload/locataire.json
Outdated
Show resolved
Hide resolved
Quelques commentaires, tests pas encore faits |
@hmeneuvrier retours traités tableau mis à jour ligne 74 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Relecture OK et tests OK, je pourrai merger quand celle de Numa sera mergée
5006c96
to
7f1c473
Compare
|
Ticket
#2164
Description
L'information sur le préavis de départ n'était pas obtenue avec la même précision selon les profils.
La question est posée ailleurs, si le déclarant sait si l'occupant a prévu de quitter les lieux.
Dans le BO, elle change de bloc.
Tests