Move the booking’s filter to the bottom

The first thing to show, the most important, is the grid; then users
can change the grid’s output.
This commit is contained in:
jordi fita mas 2024-04-19 17:39:44 +02:00
parent 23d16fa162
commit bc5fd61d5d
1 changed files with 21 additions and 21 deletions

View File

@ -17,27 +17,6 @@
<h2>{{( pgettext "Campsites" "title" )}}</h2> <h2>{{( pgettext "Campsites" "title" )}}</h2>
{{ if .Campsites -}} {{ if .Campsites -}}
<form id="booking-filter">
<fieldset>
{{ with .From -}}
<fieldset>
<legend>{{( gettext "From Date" )}}</legend>
{{ template "month-input" . }}
{{ template "error-message" . }}
</fieldset>
{{- end }}
{{ with .To -}}
<fieldset>
<legend>{{( gettext "To Date" )}}</legend>
{{ template "month-input" . }}
{{ template "error-message" . }}
</fieldset>
{{- end }}
</fieldset>
<footer>
<button type="submit">{{( pgettext "Show" "action" )}}</button>
</footer>
</form>
<div id="campsites-booking"> <div id="campsites-booking">
<table> <table>
<colgroup></colgroup> <colgroup></colgroup>
@ -83,6 +62,27 @@
</tbody> </tbody>
</table> </table>
</div> </div>
<form id="booking-filter">
<fieldset>
{{ with .From -}}
<fieldset>
<legend>{{( gettext "From Date" )}}</legend>
{{ template "month-input" . }}
{{ template "error-message" . }}
</fieldset>
{{- end }}
{{ with .To -}}
<fieldset>
<legend>{{( gettext "To Date" )}}</legend>
{{ template "month-input" . }}
{{ template "error-message" . }}
</fieldset>
{{- end }}
</fieldset>
<footer>
<button type="submit">{{( pgettext "Show" "action" )}}</button>
</footer>
</form>
{{ else -}} {{ else -}}
<p>{{( gettext "No campsites added yet." )}}</p> <p>{{( gettext "No campsites added yet." )}}</p>
{{- end }} {{- end }}