summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2024-09-06 09:33:59 +0200
committerGravatar default2024-09-06 09:33:59 +0200
commit97c4af001b800c6195076ad50eb969e20f484262 (patch)
tree334cf98f74720e5378aa653bd1888a5bb1b81f56 /html.c
parentVersion 2.58 RELEASED. (diff)
downloadsnac2-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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/html.c b/html.c
index 0b13602..ad82fc6 100644
--- a/html.c
+++ b/html.c
@@ -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",