(teams) update and enhance team invitation email

- replace logo
- modify wording
- enhance template
This commit is contained in:
Sabrina Demagny
2025-03-10 18:44:13 +01:00
parent 7f75efacf8
commit 5730b9ea5e
5 changed files with 75 additions and 44 deletions

View File

@@ -14,13 +14,24 @@ class DebugBaseView(TemplateView):
# TEAM INVITATION
class DebugViewTeamInvitationHtml(DebugBaseView):
class DebugViewTeamInvitationBase(DebugBaseView):
"""Debug view for team invitation base email layout"""
def get_context_data(self, **kwargs):
"""Add some fake context data for team invitation email layout"""
context = super().get_context_data(**kwargs)
context["team"] = "example team"
context["role"] = "owner"
return context
class DebugViewTeamInvitationHtml(DebugViewTeamInvitationBase):
"""Debug view for team invitation html email layout"""
template_name = "mail/html/team_invitation.html"
class DebugViewTeamInvitationTxt(DebugBaseView):
class DebugViewTeamInvitationTxt(DebugViewTeamInvitationBase):
"""Debug view for team invitation text email layout"""
template_name = "mail/text/team_invitation.txt"