diff options
| author | 2023-06-07 18:44:33 +0200 | |
|---|---|---|
| committer | 2023-06-07 18:44:33 +0200 | |
| commit | e22da86ccff9b9f4bdc6a7a9360d057fb79d1ef2 (patch) | |
| tree | cc4761e822a499cbef38b788bd7f5174d5306264 | |
| parent | New CSS classes snac-poll-form and snac-poll-result. (diff) | |
| download | snac2-e22da86ccff9b9f4bdc6a7a9360d057fb79d1ef2.tar.gz snac2-e22da86ccff9b9f4bdc6a7a9360d057fb79d1ef2.tar.xz snac2-e22da86ccff9b9f4bdc6a7a9360d057fb79d1ef2.zip | |
Minor tweak to snac-poll-form.
| -rw-r--r-- | html.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1025,8 +1025,8 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local, | |||
| 1025 | } | 1025 | } |
| 1026 | else { | 1026 | else { |
| 1027 | /* poll still active */ | 1027 | /* poll still active */ |
| 1028 | xs *s1 = xs_fmt("<form class=\"snac-poll-form\" method=\"post\" " | 1028 | xs *s1 = xs_fmt("<div class=\"snac-poll-form\">\n" |
| 1029 | "action=\"%s/admin/vote\">\n" | 1029 | "<form method=\"post\" action=\"%s/admin/vote\">\n" |
| 1030 | "<input type=\"hidden\" name=\"actor\" value= \"%s\">\n" | 1030 | "<input type=\"hidden\" name=\"actor\" value= \"%s\">\n" |
| 1031 | "<input type=\"hidden\" name=\"irt\" value=\"%s\">\n", | 1031 | "<input type=\"hidden\" name=\"irt\" value=\"%s\">\n", |
| 1032 | snac->actor, actor, id); | 1032 | snac->actor, actor, id); |
| @@ -1045,7 +1045,7 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local, | |||
| 1045 | } | 1045 | } |
| 1046 | 1046 | ||
| 1047 | xs *s2 = xs_fmt("<p><input type=\"submit\" " | 1047 | xs *s2 = xs_fmt("<p><input type=\"submit\" " |
| 1048 | "class=\"button\" value=\"%s\">\n</form>\n\n", L("Vote")); | 1048 | "class=\"button\" value=\"%s\">\n</form>\n</div>\n\n", L("Vote")); |
| 1049 | 1049 | ||
| 1050 | s1 = xs_str_cat(s1, s2); | 1050 | s1 = xs_str_cat(s1, s2); |
| 1051 | 1051 | ||