From 00fe7bb1bbe6c1b49f66bc0e0c2330798608ce95 Mon Sep 17 00:00:00 2001 From: "M. Dent" Date: Wed, 27 Jan 2021 11:25:26 +0100 Subject: Custom "headers" in item creation form. --- include/conversation.php | 1 + view/css/conversation.css | 6 ++++-- view/tpl/jot.tpl | 5 +++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/include/conversation.php b/include/conversation.php index 002edef51..08d16a413 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1517,6 +1517,7 @@ function hz_status_editor($a, $x, $popup = false) { '$parent' => ((array_key_exists('parent',$x) && $x['parent']) ? $x['parent'] : 0), '$reset' => $reset, '$is_owner' => ((local_channel() && (local_channel() == $x['profile_uid'])) ? true : false), + '$customjotheaders' => '', '$custommoretoolsdropdown' => '', '$custommoretoolsbuttons' => '', '$customsubmitright' => [] diff --git a/view/css/conversation.css b/view/css/conversation.css index 77e56e200..06da8528c 100644 --- a/view/css/conversation.css +++ b/view/css/conversation.css @@ -18,7 +18,8 @@ #jot-title-wrap, #jot-pagetitle-wrap, -#jot-category-wrap { +#jot-category-wrap, +#jot-customjotheaders-wrap { border-bottom: 1px solid rgba(0, 0, 0, .2); } @@ -28,7 +29,8 @@ } #jot-title-wrap input, -#jot-pagetitle-wrap input { +#jot-pagetitle-wrap input, +#jot-customjotheaders-wrap { padding: 0.5rem; } diff --git a/view/tpl/jot.tpl b/view/tpl/jot.tpl index 36543ccfa..36e71223c 100755 --- a/view/tpl/jot.tpl +++ b/view/tpl/jot.tpl @@ -41,6 +41,11 @@ {{/if}} + {{if $customjotheaders}} +
+ {{$customjotheaders}} +
+ {{/if}}
{{if $is_owner}} -- cgit v1.2.3