From 46c75999391a0e384e20acded4f3839e3077d890 Mon Sep 17 00:00:00 2001 From: meltedhyperion Date: Thu, 10 Aug 2023 01:31:53 +0530 Subject: [PATCH] add dept field and update email template --- api/users/model/users-model.go | 3 +- templates/newUserTemplate.html | 314 ++++++++++++++++----------------- 2 files changed, 159 insertions(+), 158 deletions(-) diff --git a/api/users/model/users-model.go b/api/users/model/users-model.go index dda3a8a..7c5baf9 100644 --- a/api/users/model/users-model.go +++ b/api/users/model/users-model.go @@ -11,7 +11,8 @@ type User struct { PhoneNumber int `validate:"required,min=1000000000,max=9999999999" json:"phoneNumber" bson:"phoneNumber"` RegNumber string `validate:"required" json:"regNumber" bson:"regNumber"` EventSlugs []string `json:"events" bson:"events"` - CreatedAt string `json:"createdAt" bson:"createdAt"` + Department string `json:"department" bson:"department"` + CreatedAt string `json:"createdAt" bson:"createdAt"` } type RsvpUsers struct { diff --git a/templates/newUserTemplate.html b/templates/newUserTemplate.html index c1a4b88..9d1478c 100644 --- a/templates/newUserTemplate.html +++ b/templates/newUserTemplate.html @@ -533,7 +533,7 @@ + style="padding:0;Margin:0;width:269px"> @@ -546,37 +546,52 @@

-

- Hey {{.Name}}! -

- Thanks a bunch for hopping - on board for OFF THE CLOCK!πŸ•₯ -

- Your registration is in and - we're seriously stoked to - have you join us at the - event! πŸ™Œ -

- Hold onto your hat while we - work our behind-the-scenes - wizardry. 🎩 - Keep an eye on your mailbox - because we'll be sending you - some instructions - soon.
- And hey, if you've - got - any questions poppin' up - like confetti, don't - hesitate to slide into our - DMs on Instagram.πŸ“ΈπŸ’¬

- Catch you on the flip side! -

- Cheers,
- SRMKZILLA -

+ style="font-size: 30px;"> +

+ Hey {{.Name}}! +

+ Thanks a bunch for + hopping + on board for + OFF THE + CLOCK!πŸ•₯ +

+ Your registration is + in and + we're seriously + stoked to + have you join us at + the + event! πŸ™Œ +

+ Hold onto your hat + while we + work our + behind-the-scenes + wizardry. 🎩 + Keep an eye on your + mailbox + because we'll be + sending you + some instructions + soon.
+ And hey, if you've + got + any questions + poppin' up + like confetti, don't + hesitate to slide + into our + DMs on Instagram.πŸ“ΈπŸ’¬

+ Catch you on the + flip side! +

+ Cheers,
+ SRMKZILLA + +

@@ -599,150 +614,135 @@ -
- + style="padding:0;Margin:0;padding-right:20px;padding-left:20px;padding-top:30px;padding-bottom:20px ;background-color:#021124"> + +
- - + +
+ + width="100%" role="presentation" + style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"> -
- - - - - - -
-
-

SRMKZILLA
SRM - Institute - of - Science - and - Technology
Chennai, - Tamil - Nadu - — - 603203 -

-
-
+
+
+ SRMKZILLA
SRM + Institute + of + Science + and + Technology
Chennai, + Tamil + Nadu + — + 603203 + +
+
+ + + + +
+ width="100%" role="presentation" + style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"> -
+ - + + + +