diff options
| author | 2024-09-06 09:33:59 +0200 | |
|---|---|---|
| committer | 2024-09-06 09:33:59 +0200 | |
| commit | 97c4af001b800c6195076ad50eb969e20f484262 (patch) | |
| tree | 334cf98f74720e5378aa653bd1888a5bb1b81f56 /html.c | |
| parent | Version 2.58 RELEASED. (diff) | |
| download | snac2-97c4af001b800c6195076ad50eb969e20f484262.tar.gz snac2-97c4af001b800c6195076ad50eb969e20f484262.tar.xz snac2-97c4af001b800c6195076ad50eb969e20f484262.zip | |
New checkbox in html_note() for marking a post as a draft.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -357,6 +357,14 @@ xs_html *html_note(snac *user, const char *summary, | |||
| 357 | xs_html_attr("name", "in_reply_to"), | 357 | xs_html_attr("name", "in_reply_to"), |
| 358 | xs_html_attr("placeholder", "Optional URL to reply to"))); | 358 | xs_html_attr("placeholder", "Optional URL to reply to"))); |
| 359 | 359 | ||
| 360 | xs_html_add(form, | ||
| 361 | xs_html_tag("p", NULL), | ||
| 362 | xs_html_attr("title", L("Don't send, but store as a draft")), | ||
| 363 | xs_html_text(L("Draft:")), | ||
| 364 | xs_html_sctag("input", | ||
| 365 | xs_html_attr("type", "checkbox"), | ||
| 366 | xs_html_attr("name", "is_draft"))); | ||
| 367 | |||
| 360 | if (edit_id) | 368 | if (edit_id) |
| 361 | xs_html_add(form, | 369 | xs_html_add(form, |
| 362 | xs_html_sctag("input", | 370 | xs_html_sctag("input", |