diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2008-05-28 18:55:00 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2008-05-28 18:55:00 +0000 |
| commit | 2c2144707aa3bdb85542eb164ab16c590d56e95e (patch) | |
| tree | beaa1484d8f9f53225a7bea0a5722a11d1dde0a8 /templates/mime_view.tpl | |
| parent | 0b7dbf06594e7c45dc1cfc4d7142d15e2a4af50c (diff) | |
| download | liberty-2c2144707aa3bdb85542eb164ab16c590d56e95e.tar.gz liberty-2c2144707aa3bdb85542eb164ab16c590d56e95e.tar.bz2 liberty-2c2144707aa3bdb85542eb164ab16c590d56e95e.zip | |
add front and backend for plugins to insert edit template when viewing an attachment and allowing them to update their own data - view audio liberty plugin as sample.
Diffstat (limited to 'templates/mime_view.tpl')
| -rw-r--r-- | templates/mime_view.tpl | 12 |
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"} |
