36 lines
1.4 KiB
Plaintext
36 lines
1.4 KiB
Plaintext
<!--
|
|
SPDX-FileCopyrightText: 2023 jordi fita mas <jordi@tandem.blog>
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
-->
|
|
{{ define "title" -}}
|
|
{{- /*gotype: dev.tandem.ws/tandem/camper/pkg/campsite/types.slideL10nForm*/ -}}
|
|
{{printf (pgettext "Translate Campsite Type Carousel Slide to %s" "title") .Locale.Endonym }}
|
|
{{- end }}
|
|
|
|
{{ define "content" -}}
|
|
{{- /*gotype: dev.tandem.ws/tandem/camper/pkg/campsite/types.slideL10nForm*/ -}}
|
|
<form data-hx-put="/admin/campsites/types/{{ .TypeSlug }}/slides/{{ .MediaID }}/{{ .Locale.Language }}">
|
|
<h2>
|
|
{{printf (pgettext "Translate Campsite Type Carousel Slide to %s" "title") .Locale.Endonym }}
|
|
</h2>
|
|
{{ CSRFInput }}
|
|
<fieldset>
|
|
{{ with .Caption -}}
|
|
<fieldset>
|
|
<legend>{{( pgettext "Caption" "input")}}</legend>
|
|
{{( gettext "Source:" )}} {{ .Source }}<br>
|
|
<label>
|
|
{{( pgettext "Translation:" "input" )}}
|
|
<input type="text" name="{{ .Name }}" value="{{ .Val }}"
|
|
{{ template "error-attrs" . }}><br>
|
|
</label>
|
|
{{ template "error-message" . }}
|
|
</fieldset>
|
|
{{- end }}
|
|
</fieldset>
|
|
<footer>
|
|
<button type="submit">{{( pgettext "Translate" "action" )}}</button>
|
|
</footer>
|
|
</form>
|
|
{{- end }}
|