37 lines
1.4 KiB
Plaintext
37 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/home.slideL10nForm*/ -}}
|
|
{{printf (pgettext "Translate Carousel Slide to %s" "title") .Locale.Endonym }}
|
|
{{- end }}
|
|
|
|
{{ define "content" -}}
|
|
{{- /*gotype: dev.tandem.ws/tandem/camper/pkg/home.slideL10nForm*/ -}}
|
|
{{ template "settings-tabs" "campsiteTypes" }}
|
|
<form data-hx-put="/admin/home/slides/{{ .ID }}/{{ .Locale.Language }}">
|
|
<h2>
|
|
{{printf (pgettext "Translate 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 }}
|