From 38e24a690aa51a8ae62a075a5a68ed4374ab6d57 Mon Sep 17 00:00:00 2001 From: Kobe Date: Mon, 2 Jun 2025 09:19:40 +0200 Subject: [PATCH] Update email_templates.html --- templates/settings/tabs/email_templates.html | 66 +++++++++++++++++--- 1 file changed, 57 insertions(+), 9 deletions(-) diff --git a/templates/settings/tabs/email_templates.html b/templates/settings/tabs/email_templates.html index c52573e..4cfc7b5 100644 --- a/templates/settings/tabs/email_templates.html +++ b/templates/settings/tabs/email_templates.html @@ -70,46 +70,94 @@ const templateVariables = { 'Account Created': { 'user.username': 'The username of the created account', - 'user.email': 'The email address of the created account' + 'user.email': 'The email address of the created account', + 'user.company': 'The company name of the user', + 'user.position': 'The position of the user in their company', + 'created_at': 'The date and time when the account was created', + 'site.company_name': 'The name of your company', + 'site.company_website': 'Your company website URL' }, 'Password Reset': { 'user.username': 'The username of the account', - 'reset_link': 'The password reset link' + 'user.email': 'The email address of the account', + 'reset_link': 'The password reset link', + 'expiry_time': 'The time when the reset link expires', + 'site.company_name': 'The name of your company', + 'site.company_website': 'Your company website URL' }, 'Account Deleted': { 'user.username': 'The username of the deleted account', - 'deleted_at': 'The date and time of deletion' + 'user.email': 'The email address of the deleted account', + 'deleted_at': 'The date and time of deletion', + 'deleted_by': 'The username of the admin who deleted the account', + 'site.company_name': 'The name of your company', + 'site.company_website': 'Your company website URL' }, 'Account Updated': { 'user.username': 'The username of the updated account', - 'updated_fields': 'The fields that were updated' + 'user.email': 'The email address of the account', + 'updated_fields': 'The fields that were updated', + 'updated_at': 'The date and time of the update', + 'updated_by': 'The username of who made the update', + 'site.company_name': 'The name of your company', + 'site.company_website': 'Your company website URL' }, 'Room Invite': { 'user.username': 'The username of the invited user', + 'user.email': 'The email address of the invited user', 'room.name': 'The name of the room', - 'inviter.username': 'The username of the user who sent the invite' + 'room.description': 'The description of the room', + 'inviter.username': 'The username of the user who sent the invite', + 'inviter.email': 'The email address of the inviter', + 'invite_link': 'The link to accept the room invite', + 'site.company_name': 'The name of your company', + 'site.company_website': 'Your company website URL' }, 'Room Invite Removed': { 'user.username': 'The username of the user', + 'user.email': 'The email address of the user', 'room.name': 'The name of the room', - 'remover.username': 'The username of the user who removed the invite' + 'room.description': 'The description of the room', + 'remover.username': 'The username of the user who removed the invite', + 'remover.email': 'The email address of the remover', + 'removed_at': 'The date and time when the invite was removed', + 'site.company_name': 'The name of your company', + 'site.company_website': 'Your company website URL' }, 'Conversation Invite': { 'user.username': 'The username of the invited user', + 'user.email': 'The email address of the invited user', 'conversation.name': 'The name of the conversation', - 'inviter.username': 'The username of the user who sent the invite' + 'conversation.description': 'The description of the conversation', + 'inviter.username': 'The username of the user who sent the invite', + 'inviter.email': 'The email address of the inviter', + 'invite_link': 'The link to accept the conversation invite', + 'site.company_name': 'The name of your company', + 'site.company_website': 'Your company website URL' }, 'Conversation Invite Removed': { 'user.username': 'The username of the user', + 'user.email': 'The email address of the user', 'conversation.name': 'The name of the conversation', - 'remover.username': 'The username of the user who removed the invite' + 'conversation.description': 'The description of the conversation', + 'remover.username': 'The username of the user who removed the invite', + 'remover.email': 'The email address of the remover', + 'removed_at': 'The date and time when the invite was removed', + 'site.company_name': 'The name of your company', + 'site.company_website': 'Your company website URL' }, 'Conversation Message': { 'user.username': 'The username of the recipient', + 'user.email': 'The email address of the recipient', 'sender.username': 'The username of the message sender', + 'sender.email': 'The email address of the sender', 'message.content': 'The content of the message', + 'message.created_at': 'The date and time when the message was sent', 'conversation.name': 'The name of the conversation', - 'message_link': 'The link to view the message' + 'conversation.description': 'The description of the conversation', + 'message_link': 'The link to view the message', + 'site.company_name': 'The name of your company', + 'site.company_website': 'Your company website URL' } };