Skip to content

Conversation

@kassyray
Copy link
Member

This pull request updates the logic for generating notice templates to personalize the recipient address based on the client's age. If the client is over 16, the notice is addressed directly to them; otherwise, it is addressed to their parent or guardian. These changes are applied to both English and French versions of the template.

Personalization based on client age:

  • Added over_16 flag to the template context in build_template_context to indicate if the client is over 16 years old.

Template updates for recipient address:

  • In the English notice template (templates/conf.typ), replaced the hardcoded "To Parent/Guardian of:" with dynamic logic to display either "To:" or "To Parent/Guardian of:" based on the over_16 flag.
  • In the French notice template (templates/conf.typ), replaced the hardcoded "Au parent ou tuteur de:" with dynamic logic to display either "Au:" or "Au parent ou tuteur de:" based on the over_16 flag.

@kassyray kassyray requested a review from jangevaare November 25, 2025 18:19
@kassyray
Copy link
Member Author

Closes #90

@kassyray kassyray merged commit 1c324a8 into main Nov 25, 2025
1 check failed
@kassyray kassyray deleted the bug/dynamic-client-info-tbl branch November 25, 2025 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants