Merged
Conversation
feat: enhance email templates and add datetime formatting for event n…
There was a problem hiding this comment.
Pull request overview
This PR updates the event-related email templates and the email service to improve how event dates are displayed and to adjust the email copy shown to users/admins.
Changes:
- Standardize/adjust HTML email template markup and wording across approval/accepted/rejected emails.
- Add datetime formatting in
EmailServiceso event start/end render in a consistentdd/mm/YYYY à HH:MMformat. - Update rejection/acceptance templates to direct users to a specific contact location.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
backend/templates/event_rejected.html |
Email copy/layout updates; removes “reasons” section; changes contact text. |
backend/templates/event_approval.html |
Email copy/layout updates; modifies greeting and button label; minor markup formatting changes. |
backend/templates/event_accepted.html |
Minor layout/copy changes; updates contact text. |
backend/services/email_service.py |
Adds _format_datetime_for_email() and uses it for event start/end in outgoing emails. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| <div class="info-note"> | ||
| Si vous avez des questions concernant votre événement, n'hésitez pas à contacter l'administration. | ||
| Si vous avez des questions concernant votre événement, n'hésitez pas à contacter le bureau coding (302). |
Comment on lines
+1
to
+6
| <!doctype html> | ||
| <html lang="fr"> | ||
|
|
||
| <head> | ||
| <meta charset="utf-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <meta charset="utf-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
Comment on lines
+1
to
+6
| <!doctype html> | ||
| <html lang="fr"> | ||
|
|
||
| <head> | ||
| <meta charset="utf-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <meta charset="utf-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
Comment on lines
+141
to
+145
| <p> | ||
| Si vous pensez qu'il y a eu une erreur ou si vous souhaitez obtenir | ||
| plus d'informations sur les raisons du rejet, n'hésitez pas à | ||
| contacter le bureau coding (302). | ||
| </p> |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.