fully impleemnted localelist dialog type

This commit is contained in:
2025-10-10 23:07:41 -06:00
parent 6eec9f77d9
commit 5ff7e3e35c
6 changed files with 219 additions and 6 deletions
+4 -1
View File
@@ -130,9 +130,12 @@
{{ .Caption }}{{ if .Subcaption != "" }} {{ .Subcaption }}{{ end }}
{{ if .Required }}<span class="text-red-600">*</span>{{ end }}
</label>
{{ v := .Value }}
<select id="{{ .Name }}" name="{{ .Name }}" {{ if .Required }}required{{ end }}
class="flex-1 max-w-md px-3 py-2 border border-gray-300 rounded focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
<option value="XX">Unknown</option>{* TODO *}
{{ range GetLanguageList() }}
<option value="{{ .Tag }}" {{ if .Tag == v }}selected{{ end }}>{{ .Name }}</option>
{{ end }}
</select>
</div>
{{ else if .Type == "tzlist" }}