Skip to content

Commit

Permalink
events have types now (#49); emails with availability
Browse files Browse the repository at this point in the history
fixes #49
  • Loading branch information
dheidemann committed Jul 21, 2024
1 parent 99cd576 commit 75afdf3
Show file tree
Hide file tree
Showing 12 changed files with 885 additions and 588 deletions.
7 changes: 4 additions & 3 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ EMAIL_SIGNATURE="Dein"
EMAIL_NAME="Pepp - Die Vorkursverwaltung"

EMAIL_CONFIRM_SUBJECT="Bitte bestätige deine E-Mail Adresse"
EMAIL_CONFIRM_INTRO="danke für deine Registrierung als Vorkurstutor/in!"
EMAIL_CONFIRM_BUTTON_INSTRUCTION="Bitte klicke hier um deine E-Mail Adresse zu bestätigen:"
EMAIL_CONFIRM_BUTTON_TEXT="E-Mail bestätigen"
EMAIL_CONFIRM_INTRO="danke für deine Registrierung als Vorkurstutor/-in!"
EMAIL_CONFIRM_BUTTON_INSTRUCTION="Bitte klicke hier, um deine E-Mail Adresse und die Verfügbarkeiten zu bestätigen:"
EMAIL_CONFIRM_BUTTON_TEXT="Bestätigen"
EMAIL_CONFIRM_OUTRO="Wir melden uns bei dir."

EMAIL_ASSIGNMENTS_SUBJECT="Deine Veranstaltung"
EMAIL_ASSIGNMENTS_EVENT_TITLE="Veranstaltung"
EMAIL_ASSIGNMENTS_KIND_TITLE="Art"
EMAIL_ASSIGNMENTS_DATE_TITLE="Datum"
EMAIL_ASSIGNMENTS_TIME_TITLE="Uhrzeit"
EMAIL_ASSIGNMENTS_ROOM_TITLE="Raum"
Expand Down
2 changes: 1 addition & 1 deletion server/db/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func Init(ctx context.Context, tracer *trace.TracerProvider) (*bun.DB, *sql.DB,
(*models.RoomToEvent)(nil)}

tables := []interface{}{
(*models.Topic)(nil),
(*models.Label)(nil),
(*models.Event)(nil),
(*models.User)(nil),
(*models.Building)(nil),
Expand Down
2 changes: 2 additions & 0 deletions server/email/send.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ type Email struct {
Intros []string
Dictionary []hermes.Entry
Actions []hermes.Action
Table hermes.Table
Outros []string
}

Expand All @@ -36,6 +37,7 @@ func Send(person models.User, email Email) error {
Intros: email.Intros,
Dictionary: email.Dictionary,
Actions: email.Actions,
Table: email.Table,
Outros: email.Outros,
},
}
Expand Down
8 changes: 4 additions & 4 deletions server/gqlgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ models:
model: github.com/FachschaftMathPhysInfo/pepp/server/models.Student
NewStudent:
model: github.com/FachschaftMathPhysInfo/pepp/server/models.Student
Topic:
model: github.com/FachschaftMathPhysInfo/pepp/server/models.Topic
NewTopic:
model: github.com/FachschaftMathPhysInfo/pepp/server/models.Topic
Label:
model: github.com/FachschaftMathPhysInfo/pepp/server/models.Label
NewLabel:
model: github.com/FachschaftMathPhysInfo/pepp/server/models.Label
Room:
model: github.com/FachschaftMathPhysInfo/pepp/server/models.Room
NewRoom:
Expand Down
Loading

0 comments on commit 75afdf3

Please sign in to comment.