added langs

This commit is contained in:
partisan 2024-03-30 23:29:14 +01:00
parent dfc3600664
commit 1237e8d045
2 changed files with 64 additions and 4 deletions

View file

@ -19,13 +19,14 @@
<form class="results_settings" action="/search" method="get">
<input type="hidden" name="q" value="{{ .Query }}">
<select class="results-settings" name="safe" id="safeSearchSelect">
<option value="active">Safe Search On</option>
<option value="">Safe Search Off</option>
<option value="active">Safe Search On</option>
</select>
<select class="results-settings" name="lang" id="languageSelect">
<option value="">Any Language</option>
<!-- Populate with actual language options as needed -->
</select>
{{range .LanguageOptions}}
<option value="{{.Code}}" {{if eq .Code $.CurrentLang}}selected{{end}}>{{.Name}}</option>
{{end}}
</select>
<button class="results-save" type="submit">Apply settings</button>
</form>
<div class="results">