Files
kleiax 904d14b64c
CI / test (push) Canceled after 0s
Initial commit
2026-09-12 22:22:17 +02:00

9 lines
934 B
Cheetah

{{define "season_range"}}
<fieldset class='season-range'><legend>{{.Legend}}</legend><div class='form-grid season-range-grid'>
<label>Monat von<select name='{{.Prefix}}_month_from'><option value='0'>Nicht angegeben</option>{{range months}}<option value='{{.Value}}' {{if eqInt $.Month .Value}}selected{{end}}>{{.Label}}</option>{{end}}</select></label>
<label>Tag von<input type='number' min='1' max='31' name='{{.Prefix}}_day_from' value='{{if .Day}}{{.Day}}{{else}}1{{end}}'></label>
<label>Zeitraum<input type='number' min='0' name='{{.Prefix}}_duration' value='{{.Duration}}'></label>
<label>Einheit<select name='{{.Prefix}}_duration_unit'><option value='day' {{if eqString .Unit "day"}}selected{{end}}>Tage</option><option value='week' {{if eqString .Unit "week"}}selected{{end}}>Wochen</option><option value='month' {{if eqString .Unit "month"}}selected{{end}}>Monate</option></select></label>
</div></fieldset>
{{end}}