updated default year used on frontend
This commit is contained in:
Borna Rajković committed 2024-01-07 22:01:58 +01:00
1 parent 6bd0c9e37c
commit 76ef62bb96
4 files changed
+6 -7

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@
<label for="dsy-year">Godina</label>
<select id="dsy-year" name="year">
{{range $entry := .Years}}
<option value="{{$entry}}">{{$entry}}</option>
<option {{if eq $.Year $entry}}selected{{end}} value="{{$entry}}">{{$entry}}</option>
{{end}}
</select>
</section>
+1 -1
View File
@@ -22,7 +22,7 @@
<label for="year">Za godinu:</label>
<select id="year" name="year">
{{range $entry := .Years}}
<option {{if intpeq $.Search.Year $entry}}selected{{end}} value="{{$entry}}">{{$entry}}</option>
<option {{if eq $.Year $entry}}selected{{end}} value="{{$entry}}">{{$entry}}</option>
{{end}}
</select>
</div>