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" }}
|
{{ else if eq $suiter.Role.Name "Guest" }}
|
||||||
<td>{{ $.Locals.Guest }}</td>
|
<td>{{ $.Locals.Guest }}</td>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ if eq .EventType "Suitwalk" }}
|
||||||
{{ if $suiter.AttendsRestaurant }}
|
{{ if $suiter.AttendsRestaurant }}
|
||||||
<td class="tdgreen">✓ {{ $.Locals.Yes }}</td>
|
<td class="tdgreen">✓ {{ $.Locals.Yes }}</td>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<td class="tdred">❌ {{ $.Locals.No }}</td>
|
<td class="tdred">❌ {{ $.Locals.No }}</td>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
</tr>
|
</tr>
|
||||||
{{end}}
|
{{end}}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -44,7 +46,7 @@
|
||||||
<th>{{ .Locals.Name }}</th>
|
<th>{{ .Locals.Name }}</th>
|
||||||
<th>{{ .Locals.Role }}</th>
|
<th>{{ .Locals.Role }}</th>
|
||||||
{{ if eq .EventType "Suitwalk" }}
|
{{ if eq .EventType "Suitwalk" }}
|
||||||
<th>Restaurant</th>
|
<th>{{ .Locals.Restaurant }}</th>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -63,6 +65,13 @@
|
||||||
{{ else if eq $suiter.Role.Name "Guest" }}
|
{{ else if eq $suiter.Role.Name "Guest" }}
|
||||||
<td>{{ $.Locals.Guest }}</td>
|
<td>{{ $.Locals.Guest }}</td>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ if eq .EventType "Suitwalk" }}
|
||||||
|
{{ if $suiter.AttendsRestaurant }}
|
||||||
|
<td class="tdgreen">✓ {{ $.Locals.Yes }}</td>
|
||||||
|
{{ else }}
|
||||||
|
<td class="tdred">❌ {{ $.Locals.No }}</td>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
</tr>
|
</tr>
|
||||||
{{end}}
|
{{end}}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Reference in a new issue