aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-09-06 09:33:59 +0200
committerdefault <nobody@localhost>2024-09-06 09:33:59 +0200
commit97c4af001b800c6195076ad50eb969e20f484262 (patch)
tree334cf98f74720e5378aa653bd1888a5bb1b81f56 /html.c
parentacb3f92ef4be5cb3dde371a0ae3d10d9ef6ac665 (diff)
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,
xs_html_attr("name", "in_reply_to"),
xs_html_attr("placeholder", "Optional URL to reply to")));
+ xs_html_add(form,
+ xs_html_tag("p", NULL),
+ xs_html_attr("title", L("Don't send, but store as a draft")),
+ xs_html_text(L("Draft:")),
+ xs_html_sctag("input",
+ xs_html_attr("type", "checkbox"),
+ xs_html_attr("name", "is_draft")));
+
if (edit_id)
xs_html_add(form,
xs_html_sctag("input",