fix(display-attendies): fix template
This commit is contained in:
parent
151151e39e
commit
be03226aa4
1 changed files with 10 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue