summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2023-11-27 14:02:29 +0100
committerGravatar default2023-11-27 14:02:29 +0100
commitc34d701a655d0e053f017bdb72ffa9e3f98d8fe1 (patch)
tree5980fe87080207b4339c3cf7c925d2492e99748b /html.c
parentMore minor HTML tweaks. (diff)
downloadsnac2-c34d701a655d0e053f017bdb72ffa9e3f98d8fe1.tar.gz
snac2-c34d701a655d0e053f017bdb72ffa9e3f98d8fe1.tar.xz
snac2-c34d701a655d0e053f017bdb72ffa9e3f98d8fe1.zip
Revert "More minor HTML tweaks."
This reverts commit fab8b57e31bb8e5ca76d4d3b0d10f588c4273899.
Diffstat (limited to 'html.c')
-rw-r--r--html.c59
1 files changed, 29 insertions, 30 deletions
diff --git a/html.c b/html.c
index 7d6217d..1d540ca 100644
--- a/html.c
+++ b/html.c
@@ -337,36 +337,35 @@ xs_html *html_note(snac *user, char *summary,
337 xs_html_tag("summary", 337 xs_html_tag("summary",
338 xs_html_text(L("Poll..."))), 338 xs_html_text(L("Poll..."))),
339 xs_html_tag("p", 339 xs_html_tag("p",
340 xs_html_text(L("Poll options (one per line, up to 8):")), 340 xs_html_text(L("Poll options (one per line, up to 8):"))),
341 xs_html_sctag("br", NULL), 341 xs_html_tag("textarea",
342 xs_html_tag("textarea", 342 xs_html_attr("class", "snac-textarea"),
343 xs_html_attr("class", "snac-textarea"), 343 xs_html_attr("name", "poll_options"),
344 xs_html_attr("name", "poll_options"), 344 xs_html_attr("rows", "4"),
345 xs_html_attr("rows", "4"), 345 xs_html_attr("wrap", "virtual"),
346 xs_html_attr("wrap", "virtual"), 346 xs_html_attr("placeholder", "Option 1...\nOption 2...\nOption 3...\n...")),
347 xs_html_attr("placeholder", "Option 1...\nOption 2...\nOption 3...\n...")), 347 xs_html_tag("p", NULL),
348 xs_html_tag("p", NULL), 348 xs_html_tag("select",
349 xs_html_tag("select", 349 xs_html_attr("name", "poll_multiple"),
350 xs_html_attr("name", "poll_multiple"), 350 xs_html_tag("option",
351 xs_html_tag("option", 351 xs_html_attr("value", "off"),
352 xs_html_attr("value", "off"), 352 xs_html_text(L("One choice"))),
353 xs_html_text(L("One choice"))), 353 xs_html_tag("option",
354 xs_html_tag("option", 354 xs_html_attr("value", "on"),
355 xs_html_attr("value", "on"), 355 xs_html_text(L("Multiple choices")))),
356 xs_html_text(L("Multiple choices")))), 356 xs_html_text(" "),
357 xs_html_text(" "), 357 xs_html_tag("select",
358 xs_html_tag("select", 358 xs_html_attr("name", "poll_end_secs"),
359 xs_html_attr("name", "poll_end_secs"), 359 xs_html_tag("option",
360 xs_html_tag("option", 360 xs_html_attr("value", "300"),
361 xs_html_attr("value", "300"), 361 xs_html_text(L("End in 5 minutes"))),
362 xs_html_text(L("End in 5 minutes"))), 362 xs_html_tag("option",
363 xs_html_tag("option", 363 xs_html_attr("value", "3600"),
364 xs_html_attr("value", "3600"), 364 xs_html_attr("selected", NULL),
365 xs_html_attr("selected", NULL), 365 xs_html_text(L("End in 1 hour"))),
366 xs_html_text(L("End in 1 hour"))), 366 xs_html_tag("option",
367 xs_html_tag("option", 367 xs_html_attr("value", "86400"),
368 xs_html_attr("value", "86400"), 368 xs_html_text(L("End in 1 day"))))));
369 xs_html_text(L("End in 1 day")))))));
370 } 369 }
371 370
372 xs_html_add(form, 371 xs_html_add(form,