summaryrefslogtreecommitdiff
path: root/templates/mime_view.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/mime_view.tpl')
-rw-r--r--templates/mime_view.tpl12
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/mime_view.tpl b/templates/mime_view.tpl
index 0edaf38..c02f65a 100644
--- a/templates/mime_view.tpl
+++ b/templates/mime_view.tpl
@@ -9,6 +9,18 @@
{include file=$view_template preferences=$attachment.preferences}
{/legend}
+ {if ( $gBitUser->isAdmin() || $gBitUser->mUserId() == $attachment.user_id ) && $edit_template}
+ {form legend="Edit File Details"}
+ {formfeedback hash=$feedback}
+ {include file=$edit_template preferences=$attachment.preferences}
+
+ <div class="row submit">
+ <input type="hidden" name="attachment_id" value="{$smarty.request.attachment_id}" />
+ <input type="submit" name="plugin_submit" value="{tr}Update Plugin Data{/tr}" />
+ </div>
+ {/form}
+ {/if}
+
{legend legend="Content this attachment belongs to"}
<div class="row">
{formlabel label="Title"}