Use lang-selector template for location.gohtml
This commit is contained in:
parent
28ab22bc22
commit
937628ca9a
|
@ -18,12 +18,7 @@
|
|||
{{ with .Directions -}}
|
||||
<fieldset>
|
||||
<legend>{{( pgettext "Directions" "input" )}}</legend>
|
||||
<div class="lang-selector" role="toolbar">
|
||||
{{ range $lang, $input := . -}}
|
||||
<button :aria-pressed="lang === '{{ $lang }}'"
|
||||
@click.prevent="lang = '{{ $lang }}'">{{ $lang }}</button>
|
||||
{{- end }}
|
||||
</div>
|
||||
{{ template "lang-selector" . }}
|
||||
{{ range $lang, $input := . -}}
|
||||
<label x-cloak x-show="lang === '{{ $lang }}'"><span>{{ $lang }}</span><br>
|
||||
<textarea class="html"
|
||||
|
@ -36,12 +31,7 @@
|
|||
{{ with .OpeningDates -}}
|
||||
<fieldset>
|
||||
<legend>{{( pgettext "Opening Dates" "input" )}}</legend>
|
||||
<div class="lang-selector" role="toolbar">
|
||||
{{ range $lang, $input := . -}}
|
||||
<button :aria-pressed="lang === '{{ $lang }}'"
|
||||
@click.prevent="lang = '{{ $lang }}'">{{ $lang }}</button>
|
||||
{{- end }}
|
||||
</div>
|
||||
{{ template "lang-selector" . }}
|
||||
{{ range $lang, $input := . -}}
|
||||
<label x-cloak x-show="lang === '{{ $lang }}'"><span>{{ $lang }}</span><br>
|
||||
<textarea class="html"
|
||||
|
|
Loading…
Reference in New Issue