42 lines
1.5 KiB
Plaintext
42 lines
1.5 KiB
Plaintext
<!--
|
|
SPDX-FileCopyrightText: 2023 jordi fita mas <jordi@tandem.blog>
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
-->
|
|
{{ define "title" -}}
|
|
{{( pgettext "Campsite Type Features" "title" )}}
|
|
{{- end }}
|
|
|
|
{{ define "content" -}}
|
|
{{- /*gotype: dev.tandem.ws/tandem/camper/pkg/campsite/types.featureIndex*/ -}}
|
|
<a href="/admin/campsites/types/{{ .TypeSlug }}/features/new">{{( pgettext "Add Feature" "action" )}}</a>
|
|
<h2>{{( pgettext "Campsite Type Features" "title" )}}</h2>
|
|
{{ if .Features -}}
|
|
<table class="services">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">{{( pgettext "Name" "header" )}}</th>
|
|
<th scope="col">{{( pgettext "Translations" "header" )}}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{ range .Features -}}
|
|
<tr>
|
|
<td class="icon_{{ .Icon }}"><a href="{{ .URL }}">{{ .Name }}</a></td>
|
|
<td>
|
|
{{ range .Translations }}
|
|
<a
|
|
{{ if .Missing }}
|
|
class="missing-translation"
|
|
{{ end }}
|
|
href="{{ .URL }}">{{ .Endonym }}</a>
|
|
{{ end }}
|
|
</td>
|
|
</tr>
|
|
{{- end }}
|
|
</tbody>
|
|
</table>
|
|
{{ else -}}
|
|
<p>{{( gettext "No campsite type features added yet." )}}</p>
|
|
{{- end }}
|
|
{{- end }}
|