diff options
| author | default <nobody@localhost> | 2025-04-10 08:40:54 +0200 |
|---|---|---|
| committer | default <nobody@localhost> | 2025-04-10 08:40:54 +0200 |
| commit | cbe25ddb853281aa800befea31e8f6dac0206411 (patch) | |
| tree | 3ecccb69e2da75b55b87d434273ba2e3b4f2b226 | |
| parent | 32b7fa2fcb8d77cab49f0b17af75669139901859 (diff) | |
Hide the scheduled post date and time behind a 'details'.
| -rw-r--r-- | html.c | 28 |
1 files changed, 16 insertions, 12 deletions
@@ -457,18 +457,22 @@ xs_html *html_note(snac *user, const char *summary, if (edit_id == NULL || is_draft || is_scheduled(user, edit_id)) { xs_html_add(form, xs_html_tag("p", - xs_html_text(L("Post date and time (empty, right now; in the future, schedule for later):")), - xs_html_sctag("br", NULL), - xs_html_sctag("input", - xs_html_attr("type", "date"), - xs_html_attr("value", post_date ? post_date : ""), - xs_html_attr("name", "post_date")), - xs_html_text(" "), - xs_html_sctag("input", - xs_html_attr("type", "time"), - xs_html_attr("value", post_time ? post_time : ""), - xs_html_attr("step", "1"), - xs_html_attr("name", "post_time")))); + xs_html_tag("details", + xs_html_tag("summary", + xs_html_text(L("Scheduled post..."))), + xs_html_tag("p", + xs_html_text(L("Post date and time:")), + xs_html_sctag("br", NULL), + xs_html_sctag("input", + xs_html_attr("type", "date"), + xs_html_attr("value", post_date ? post_date : ""), + xs_html_attr("name", "post_date")), + xs_html_text(" "), + xs_html_sctag("input", + xs_html_attr("type", "time"), + xs_html_attr("value", post_time ? post_time : ""), + xs_html_attr("step", "1"), + xs_html_attr("name", "post_time")))))); } if (edit_id) |