diff options
| author | 2023-11-27 14:00:21 +0100 | |
|---|---|---|
| committer | 2023-11-27 14:00:21 +0100 | |
| commit | fab8b57e31bb8e5ca76d4d3b0d10f588c4273899 (patch) | |
| tree | 32205a18b3a4173ee77ea23e7e28fba12d29a6c7 | |
| parent | Backport from xs. (diff) | |
| download | snac2-fab8b57e31bb8e5ca76d4d3b0d10f588c4273899.tar.gz snac2-fab8b57e31bb8e5ca76d4d3b0d10f588c4273899.tar.xz snac2-fab8b57e31bb8e5ca76d4d3b0d10f588c4273899.zip | |
More minor HTML tweaks.
| -rw-r--r-- | html.c | 59 |
1 files changed, 30 insertions, 29 deletions
| @@ -337,35 +337,36 @@ 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_tag("textarea", | 341 | xs_html_sctag("br", NULL), |
| 342 | xs_html_attr("class", "snac-textarea"), | 342 | xs_html_tag("textarea", |
| 343 | xs_html_attr("name", "poll_options"), | 343 | xs_html_attr("class", "snac-textarea"), |
| 344 | xs_html_attr("rows", "4"), | 344 | xs_html_attr("name", "poll_options"), |
| 345 | xs_html_attr("wrap", "virtual"), | 345 | xs_html_attr("rows", "4"), |
| 346 | xs_html_attr("placeholder", "Option 1...\nOption 2...\nOption 3...\n...")), | 346 | xs_html_attr("wrap", "virtual"), |
| 347 | xs_html_tag("p", NULL), | 347 | xs_html_attr("placeholder", "Option 1...\nOption 2...\nOption 3...\n...")), |
| 348 | xs_html_tag("select", | 348 | xs_html_tag("p", NULL), |
| 349 | xs_html_attr("name", "poll_multiple"), | 349 | xs_html_tag("select", |
| 350 | xs_html_tag("option", | 350 | xs_html_attr("name", "poll_multiple"), |
| 351 | xs_html_attr("value", "off"), | 351 | xs_html_tag("option", |
| 352 | xs_html_text(L("One choice"))), | 352 | xs_html_attr("value", "off"), |
| 353 | xs_html_tag("option", | 353 | xs_html_text(L("One choice"))), |
| 354 | xs_html_attr("value", "on"), | 354 | xs_html_tag("option", |
| 355 | xs_html_text(L("Multiple choices")))), | 355 | xs_html_attr("value", "on"), |
| 356 | xs_html_text(" "), | 356 | xs_html_text(L("Multiple choices")))), |
| 357 | xs_html_tag("select", | 357 | xs_html_text(" "), |
| 358 | xs_html_attr("name", "poll_end_secs"), | 358 | xs_html_tag("select", |
| 359 | xs_html_tag("option", | 359 | xs_html_attr("name", "poll_end_secs"), |
| 360 | xs_html_attr("value", "300"), | 360 | xs_html_tag("option", |
| 361 | xs_html_text(L("End in 5 minutes"))), | 361 | xs_html_attr("value", "300"), |
| 362 | xs_html_tag("option", | 362 | xs_html_text(L("End in 5 minutes"))), |
| 363 | xs_html_attr("value", "3600"), | 363 | xs_html_tag("option", |
| 364 | xs_html_attr("selected", NULL), | 364 | xs_html_attr("value", "3600"), |
| 365 | xs_html_text(L("End in 1 hour"))), | 365 | xs_html_attr("selected", NULL), |
| 366 | xs_html_tag("option", | 366 | xs_html_text(L("End in 1 hour"))), |
| 367 | xs_html_attr("value", "86400"), | 367 | xs_html_tag("option", |
| 368 | xs_html_text(L("End in 1 day")))))); | 368 | xs_html_attr("value", "86400"), |
| 369 | xs_html_text(L("End in 1 day"))))))); | ||
| 369 | } | 370 | } |
| 370 | 371 | ||
| 371 | xs_html_add(form, | 372 | xs_html_add(form, |