36 lines
1.3 KiB
Plaintext
36 lines
1.3 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/carousel.slideL10nForm*/ -}}
|
|
{{printf (pgettext "Translate Carousel Slide to %s" "title") .Locale.Endonym }}
|
|
{{- end }}
|
|
|
|
{{ define "content" -}}
|
|
{{- /*gotype: dev.tandem.ws/tandem/camper/pkg/carousel.slideL10nForm*/ -}}
|
|
<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 }}
|