summaryrefslogtreecommitdiff
path: root/forms.fnl
diff options
context:
space:
mode:
authorunwox <me@unwox.com>2025-09-14 21:22:02 +0600
committerunwox <me@unwox.com>2025-09-14 21:22:02 +0600
commitd29f796b047c2a90db8f1e143d7da2a0159f9b7e (patch)
tree2f4ec0e8c2326ff619cc0afd4e53e270b6e6e24c /forms.fnl
parentf3a8179ba51eb877b96a79d2806dfa58bd6100bd (diff)
small improvements
Diffstat (limited to 'forms.fnl')
-rw-r--r--forms.fnl4
1 files changed, 2 insertions, 2 deletions
diff --git a/forms.fnl b/forms.fnl
index 4e57125..9b035e1 100644
--- a/forms.fnl
+++ b/forms.fnl
@@ -230,8 +230,8 @@
[:option
(fn [] {:value option.value :selected (= value option.value)})
option.label])))]
- (if error [:div {:class "form-error"} error] "")
- (if help [:div {:class "form-help"} help] "")]))})
+ (if error (HTML [:div {:class "form-error"} error]) "")
+ (if help (HTML [:div {:class "form-help"} help]) "")]))})
(fn render-form [form data errors]
(HTML