diff --git a/backend/templates/tablos.templ b/backend/templates/tablos.templ index 1a2fba5..26425f7 100644 --- a/backend/templates/tablos.templ +++ b/backend/templates/tablos.templ @@ -139,8 +139,9 @@ templ TabloCreateFormFragment(form TabloCreateForm, errs TabloCreateErrors, csrf name="color" value={ form.Color } class="mt-1 block w-full rounded border border-slate-300 px-3 py-2 text-sm placeholder-slate-400 focus:border-slate-500 focus:outline-none" - placeholder="#6366f1 or indigo" + placeholder="#6366f1" /> + @FieldError(errs.Color)
@ui.Button(ui.ButtonProps{ diff --git a/backend/templates/tablos_forms.go b/backend/templates/tablos_forms.go index e3a4d3f..3408773 100644 --- a/backend/templates/tablos_forms.go +++ b/backend/templates/tablos_forms.go @@ -12,6 +12,7 @@ type TabloCreateForm struct { // create form. A field with an empty string means "no error for this field". type TabloCreateErrors struct { Title string + Color string General string }