commit e22da86
default
·
2023-06-07 16:44:33 +0000 UTC
parent 22565f5
Minor tweak to snac-poll-form.
1 files changed,
+3,
-3
M
html.c
M
html.c
+3,
-3
1@@ -1025,8 +1025,8 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
2 }
3 else {
4 /* poll still active */
5- xs *s1 = xs_fmt("<form class=\"snac-poll-form\" method=\"post\" "
6- "action=\"%s/admin/vote\">\n"
7+ xs *s1 = xs_fmt("<div class=\"snac-poll-form\">\n"
8+ "<form method=\"post\" action=\"%s/admin/vote\">\n"
9 "<input type=\"hidden\" name=\"actor\" value= \"%s\">\n"
10 "<input type=\"hidden\" name=\"irt\" value=\"%s\">\n",
11 snac->actor, actor, id);
12@@ -1045,7 +1045,7 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
13 }
14
15 xs *s2 = xs_fmt("<p><input type=\"submit\" "
16- "class=\"button\" value=\"%s\">\n</form>\n\n", L("Vote"));
17+ "class=\"button\" value=\"%s\">\n</form>\n</div>\n\n", L("Vote"));
18
19 s1 = xs_str_cat(s1, s2);
20