diff --git a/web/static/numerus.css b/web/static/numerus.css index 4f1b572..2db0b16 100644 --- a/web/static/numerus.css +++ b/web/static/numerus.css @@ -588,11 +588,6 @@ main > nav { right: 0; } -/* AlpineJS */ -[x-cloak] { - display: none !important; -} - /* Multiselect */ .multiselect { max-width: 35rem; diff --git a/web/template/app.gohtml b/web/template/app.gohtml index d0ad46a..237a83c 100644 --- a/web/template/app.gohtml +++ b/web/template/app.gohtml @@ -6,13 +6,6 @@ {{ template "title" . }} — Numerus -
diff --git a/web/template/form.gohtml b/web/template/form.gohtml index 6b9eadb..ac56505 100644 --- a/web/template/form.gohtml +++ b/web/template/form.gohtml @@ -40,7 +40,21 @@ {{ define "select-field" -}} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.SelectField*/ -}} -
+
+ {{- if .Multiple }} + + {{ end -}} {{- if .Errors }}
    diff --git a/web/template/products/edit.gohtml b/web/template/products/edit.gohtml index 0f04c9f..2fd3085 100644 --- a/web/template/products/edit.gohtml +++ b/web/template/products/edit.gohtml @@ -20,58 +20,7 @@ {{ template "input-field" .Name | addInputAttr "autofocus" }} {{ template "input-field" .Description }} {{ template "input-field" .Price }} -
    -
    - {{ template "select-field" .Tax }} -
    - {{ with .Tax }} - - {{ end }} -
    + {{ template "select-field" .Tax }}