fix(display-attendies): fix template

This commit is contained in:
nikurasu 2024-03-09 05:15:38 +01:00
parent 151151e39e
commit be03226aa4
Signed by: Nikurasu
GPG key ID: 9E7F14C03EF1F271

View file

@ -26,11 +26,13 @@
{{ else if eq $suiter.Role.Name "Guest" }}
<td>{{ $.Locals.Guest }}</td>
{{ end }}
{{ if eq .EventType "Suitwalk" }}
{{ if $suiter.AttendsRestaurant }}
<td class="tdgreen">✓ {{ $.Locals.Yes }}</td>
{{ else }}
<td class="tdred">❌ {{ $.Locals.No }}</td>
{{ end }}
{{ end }}
</tr>
{{end}}
</tbody>
@ -44,7 +46,7 @@
<th>{{ .Locals.Name }}</th>
<th>{{ .Locals.Role }}</th>
{{ if eq .EventType "Suitwalk" }}
<th>Restaurant</th>
<th>{{ .Locals.Restaurant }}</th>
{{ end }}
</tr>
</thead>
@ -63,6 +65,13 @@
{{ else if eq $suiter.Role.Name "Guest" }}
<td>{{ $.Locals.Guest }}</td>
{{ end }}
{{ if eq .EventType "Suitwalk" }}
{{ if $suiter.AttendsRestaurant }}
<td class="tdgreen">✓ {{ $.Locals.Yes }}</td>
{{ else }}
<td class="tdred">❌ {{ $.Locals.No }}</td>
{{ end }}
{{ end }}
</tr>
{{end}}
</tbody>