diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2023-03-07 02:29:15 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2023-03-07 02:36:25 +0900 |
commit | d378edca8215080fb0a86899f6dc52643bdb0852 (patch) | |
tree | df84cf42e878805a61087b8b3cb9187e1eee60cd /src/xhtml.cr | |
parent | 72e56c93dfda955dd2af05607c7afe2b510fee23 (diff) | |
download | hybring-d378edca8215080fb0a86899f6dc52643bdb0852.tar.gz |
Add integration tests for HTTP API
Diffstat (limited to 'src/xhtml.cr')
-rw-r--r-- | src/xhtml.cr | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xhtml.cr b/src/xhtml.cr index d53eb04..8db5995 100644 --- a/src/xhtml.cr +++ b/src/xhtml.cr @@ -32,9 +32,9 @@ CSS = " display: grid; grid-template-columns: max-content 1fr 0; } - form label { margin-right: 1ch } form input { margin-bottom: 1ex } - .error { + form label { margin-right: 1ch } + form label.error { color: red; margin-top: -1ex; margin-bottom: 1ex; @@ -90,8 +90,8 @@ class Page required: "required" xml.element "br" if error - xml.element "label", class: "error" do xml.text "Error:" end - xml.element "label", class: "error" do xml.text error end + xml.element "label", for: name, class: "error" do xml.text "Error:" end + xml.element "label", for: name, class: "error" do xml.text error end xml.element "br" end end |