summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2025-04-10 08:40:54 +0200
committerGravatar default2025-04-10 08:40:54 +0200
commitcbe25ddb853281aa800befea31e8f6dac0206411 (patch)
tree3ecccb69e2da75b55b87d434273ba2e3b4f2b226 /html.c
parentShorten link label in Attachments. (diff)
downloadpenes-snac2-cbe25ddb853281aa800befea31e8f6dac0206411.tar.gz
penes-snac2-cbe25ddb853281aa800befea31e8f6dac0206411.tar.xz
penes-snac2-cbe25ddb853281aa800befea31e8f6dac0206411.zip
Hide the scheduled post date and time behind a 'details'.
Diffstat (limited to 'html.c')
-rw-r--r--html.c28
1 files changed, 16 insertions, 12 deletions
diff --git a/html.c b/html.c
index e303d72..b5d8946 100644
--- a/html.c
+++ b/html.c
@@ -457,18 +457,22 @@ xs_html *html_note(snac *user, const char *summary,
457 if (edit_id == NULL || is_draft || is_scheduled(user, edit_id)) { 457 if (edit_id == NULL || is_draft || is_scheduled(user, edit_id)) {
458 xs_html_add(form, 458 xs_html_add(form,
459 xs_html_tag("p", 459 xs_html_tag("p",
460 xs_html_text(L("Post date and time (empty, right now; in the future, schedule for later):")), 460 xs_html_tag("details",
461 xs_html_sctag("br", NULL), 461 xs_html_tag("summary",
462 xs_html_sctag("input", 462 xs_html_text(L("Scheduled post..."))),
463 xs_html_attr("type", "date"), 463 xs_html_tag("p",
464 xs_html_attr("value", post_date ? post_date : ""), 464 xs_html_text(L("Post date and time:")),
465 xs_html_attr("name", "post_date")), 465 xs_html_sctag("br", NULL),
466 xs_html_text(" "), 466 xs_html_sctag("input",
467 xs_html_sctag("input", 467 xs_html_attr("type", "date"),
468 xs_html_attr("type", "time"), 468 xs_html_attr("value", post_date ? post_date : ""),
469 xs_html_attr("value", post_time ? post_time : ""), 469 xs_html_attr("name", "post_date")),
470 xs_html_attr("step", "1"), 470 xs_html_text(" "),
471 xs_html_attr("name", "post_time")))); 471 xs_html_sctag("input",
472 xs_html_attr("type", "time"),
473 xs_html_attr("value", post_time ? post_time : ""),
474 xs_html_attr("step", "1"),
475 xs_html_attr("name", "post_time"))))));
472 } 476 }
473 477
474 if (edit_id) 478 if (edit_id)