aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorM. Dent <dentm42@gmail.com>2021-01-27 11:25:26 +0100
committerMario <mario@mariovavti.com>2021-01-27 11:25:26 +0100
commit00fe7bb1bbe6c1b49f66bc0e0c2330798608ce95 (patch)
treed96f44819f0f44a58632738a97b83a0ae773d4fa
parentf0ee4c3cef6c148bd397ad6a1e71ce86aa43565a (diff)
downloadvolse-hubzilla-00fe7bb1bbe6c1b49f66bc0e0c2330798608ce95.tar.gz
volse-hubzilla-00fe7bb1bbe6c1b49f66bc0e0c2330798608ce95.tar.bz2
volse-hubzilla-00fe7bb1bbe6c1b49f66bc0e0c2330798608ce95.zip
Custom "headers" in item creation form.
-rw-r--r--include/conversation.php1
-rw-r--r--view/css/conversation.css6
-rwxr-xr-xview/tpl/jot.tpl5
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 @@
<input class="w-100 border-0" name="category" id="jot-category" type="text" placeholder="{{$placeholdercategory}}" value="{{$category}}" data-role="cat-tagsinput">
</div>
{{/if}}
+ {{if $customjotheaders}}
+ <div id="jot-customjotheaders-wrap" class="jothidden">
+ {{$customjotheaders}}
+ </div>
+ {{/if}}
<div id="jot-text-wrap">
<div id="profile-jot-tools" class="btn-group d-none">
{{if $is_owner}}