diff options
author | Mario <mario@mariovavti.com> | 2020-12-17 10:04:24 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-12-17 10:04:24 +0000 |
commit | b2e80efe3f42c6329be7356580d62ea3525717b8 (patch) | |
tree | 5ebda5b5e6b33062938d6e5a865ecd64a09c3d1b /view/tpl | |
parent | b4b566318a0e52b6396445ddc21c20c0abcc8ce4 (diff) | |
download | volse-hubzilla-b2e80efe3f42c6329be7356580d62ea3525717b8.tar.gz volse-hubzilla-b2e80efe3f42c6329be7356580d62ea3525717b8.tar.bz2 volse-hubzilla-b2e80efe3f42c6329be7356580d62ea3525717b8.zip |
files_ng: provide bbcode snippets in the info panel
Diffstat (limited to 'view/tpl')
-rw-r--r-- | view/tpl/cloud_directory.tpl | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/view/tpl/cloud_directory.tpl b/view/tpl/cloud_directory.tpl index 8fe31767c..a6993fe97 100644 --- a/view/tpl/cloud_directory.tpl +++ b/view/tpl/cloud_directory.tpl @@ -214,13 +214,19 @@ <div id="cloud-tool-info-{{$item.attach_id}}" class="cloud-tool"> {{if ! $item.collection}} <div class="form-group"> - <label for="attach-code-input-{{$item.attach_id}}">Attachment code</label> - <input type="text" class="form-control" id="attach-code-input-{{$item.attach_id}}" name="attach-code-input-{{$item.attach_id}}" value="[attachment]{{$item.resource}},{{$item.revision}}[/attachment]" onclick="this.select();" /> + <label for="attach-code-input-{{$item.attach_id}}">Attachment BBcode</label> + <input type="text" class="form-control" id="attach-code-input-{{$item.attach_id}}" name="attach-code-input-{{$item.attach_id}}" value="{{$item.attach_bbcode}}" onclick="this.select();" /> </div> + {{if $item.embed_bbcode}} + <div class="form-group"> + <label for="embed-code-input-{{$item.attach_id}}">Embed BBcode</label> + <input type="text" class="form-control" id="embed-code-input-{{$item.attach_id}}" name="embed-code-input-{{$item.attach_id}}" value="{{$item.embed_bbcode}}" onclick="this.select();" /> + </div> + {{/if}} {{/if}} <div class="form-group"> - <label for="link-code-input-{{$item.attach_id}}">Link code</label> - <input type="text" class="form-control" id="link-code-input-{{$item.attach_id}}" name="link-code-input-{{$item.attach_id}}" value="[zrl={{$item.full_path}}]{{$item.full_path}}[/zrl]" onclick="this.select();" /> + <label for="link-code-input-{{$item.attach_id}}">Link BBcode</label> + <input type="text" class="form-control" id="link-code-input-{{$item.attach_id}}" name="link-code-input-{{$item.attach_id}}" value="{{$item.link_bbcode}}" onclick="this.select();" /> </div> <div class="form-group"> <button id="cloud-tool-close-btn-{{$item.attach_id}}" class="btn btn-outline-secondary btn-sm cloud-tool-cancel-btn" type="button" data-id="{{$item.attach_id}}"> |