diff --git a/src/app/views/regularstable.html b/src/app/views/regularstable.html index c760728..8dd1532 100644 --- a/src/app/views/regularstable.html +++ b/src/app/views/regularstable.html @@ -10,16 +10,16 @@ - {{range $suiter := .Attendies }} - {{if not $suiter.OnWaitingList }} + {{range $attendie := .Attendies }} + {{if not $attendie.OnWaitingList }} - {{ $suiter.Nickname }} - {{ if $suiter.AttendsRestaurant }} + {{ $attendie.Nickname }} + {{ if $attendie.AttendsRestaurant }} ✓ {{ $.Locals.Yes }} {{ else }} ❌ {{ $.Locals.No }} {{ end }} - {{ if $suiter.AttendsBar }} + {{ if $attendie.AttendsBar }} ✓ {{ $.Locals.Yes }} {{ else }} ❌ {{ $.Locals.No }} @@ -29,4 +29,21 @@ {{end}} +

{{ .Locals.SuiterWaitinglist }}

+ + + + + + + + {{range $attendie := .Attendies }} + {{if $attendie.OnWaitingList }} + + + + {{end}} + {{end}} + +
{{ .Locals.Name }}
{{ $attendie.Nickname }}
{{end}} \ No newline at end of file diff --git a/src/app/views/specialEvent.html b/src/app/views/specialEvent.html new file mode 100644 index 0000000..89e3182 --- /dev/null +++ b/src/app/views/specialEvent.html @@ -0,0 +1,31 @@ +

{{ .EventName }} {{ .Locals.Attendie }}

+

{{ .Locals.Registered }}

+ + + + + + + + + + {{range $attendie := .Attendies }} + {{if not $attendie.OnWaitingList }} + + + {{ if $attendie.AttendsRestaurant }} + + {{ else }} + + {{ end }} + {{ if $attendie.AttendsEvent }} + + {{ else }} + + {{ end }} + + {{end}} + {{end}} + +
{{ .Locals.Name }}{{ .Locals.Restaurant }}{{ .Locals.Event }}
{{ $attendie.Nickname }}✓ {{ $.Locals.Yes }}❌ {{ $.Locals.No }}✓ {{ $.Locals.Yes }}❌ {{ $.Locals.No }}
+{{end}} \ No newline at end of file diff --git a/src/config/localization.go b/src/config/localization.go index d85be85..f4a8952 100644 --- a/src/config/localization.go +++ b/src/config/localization.go @@ -94,4 +94,9 @@ var defaultMessages = []i18n.Message{ One: "AfterParty", Other: "AfterParties", }, + { + ID: "Event", + One: "Event", + Other: "Events", + }, } diff --git a/src/localization/active.de.json b/src/localization/active.de.json index 9da2a77..d0b4f26 100644 --- a/src/localization/active.de.json +++ b/src/localization/active.de.json @@ -9,6 +9,11 @@ "one": "Teilnehmer*in", "other": "Teilnehmende" }, + "Event": { + "hash": "sha1-c5497bca58468ae64aed6c0fd921109217988db3", + "one": "Event", + "other": "Events" + }, "Guest": { "hash": "sha1-7b7f214bbd4af36f25668b0ddade965422d342fd", "one": "Gast", diff --git a/src/localization/active.en.json b/src/localization/active.en.json index 4ba8e19..7fef7ba 100644 --- a/src/localization/active.en.json +++ b/src/localization/active.en.json @@ -7,6 +7,10 @@ "one": "Attendie", "other": "Attendies" }, + "Event": { + "one": "Event", + "other": "Events" + }, "Guest": { "one": "Guest", "other": "Guets"