summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/html.c b/html.c
index 3ad3689..ff25acf 100644
--- a/html.c
+++ b/html.c
@@ -999,12 +999,15 @@ static xs_html *html_button(char *clss, char *label, char *hint)
999{ 999{
1000 xs *c = xs_fmt("snac-btn-%s", clss); 1000 xs *c = xs_fmt("snac-btn-%s", clss);
1001 1001
1002 return xs_html_sctag("input", 1002 /* use an NULL tag to separate non-css-classed buttons from one another */
1003 xs_html_attr("type", "submit"), 1003 return xs_html_tag(NULL,
1004 xs_html_attr("name", "action"), 1004 xs_html_sctag("input",
1005 xs_html_attr("class", c), 1005 xs_html_attr("type", "submit"),
1006 xs_html_attr("value", label), 1006 xs_html_attr("name", "action"),
1007 xs_html_attr("title", hint)); 1007 xs_html_attr("class", c),
1008 xs_html_attr("value", label),
1009 xs_html_attr("title", hint)),
1010 xs_html_text("\n"));
1008} 1011}
1009 1012
1010 1013