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:
parent
23d16fa162
commit
bc5fd61d5d
|
@ -17,27 +17,6 @@
|
|||
|
||||
<h2>{{( pgettext "Campsites" "title" )}}</h2>
|
||||
{{ 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">
|
||||
<table>
|
||||
<colgroup></colgroup>
|
||||
|
@ -83,6 +62,27 @@
|
|||
</tbody>
|
||||
</table>
|
||||
</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 -}}
|
||||
<p>{{( gettext "No campsites added yet." )}}</p>
|
||||
{{- end }}
|
||||
|
|
Loading…
Reference in New Issue