summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2023-12-03 11:43:40 +0100
committerGravatar default2023-12-03 11:43:40 +0100
commit8b3471afb7adf38d31d7ee5220be0930960330aa (patch)
tree1490d399b14f5c0592b1a0ddfa30a23d85828257 /html.c
parentFill the 'fields' list in mastoapi_account(). (diff)
downloadpenes-snac2-8b3471afb7adf38d31d7ee5220be0930960330aa.tar.gz
penes-snac2-8b3471afb7adf38d31d7ee5220be0930960330aa.tar.xz
penes-snac2-8b3471afb7adf38d31d7ee5220be0930960330aa.zip
Backport from xs.
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