From f7c06b9a340348d4152f86757624379fce2a12a4 Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Sat, 15 Sep 2007 11:34:32 +0000 Subject: make it possible to set a primary attachment with a simply radio button. U comment attachment browser for now as well. UI needs lots more work but we will probably have to discuss on what we want to have visible and what wethe attachments tab is supposed to do --- templates/edit_storage_list.tpl | 44 ++++++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 20 deletions(-) (limited to 'templates/edit_storage_list.tpl') diff --git a/templates/edit_storage_list.tpl b/templates/edit_storage_list.tpl index 449cc39..96dbb2c 100644 --- a/templates/edit_storage_list.tpl +++ b/templates/edit_storage_list.tpl @@ -4,44 +4,48 @@
{if $attachmentBrowser} - + {else} - + {/if} - - - + + + {foreach from=$gContent->mStorage item=storage key=attachmentId name=atts} - - + {/foreach}
{tr}Your Attachments{/tr}{tr}Your Attachments{/tr}{tr}Items {if $libertyUploader && empty($gContent->mContentId)}That Will Be{/if} Attached Directly to this Content{/tr}{tr}Items {if $libertyUploader && empty($gContent->mContentId)}That Will Be{/if} Attached Directly to this Content{/tr}
{tr}Thumbnail{/tr}{tr}File Properties{/tr}{tr}Inclusion Code{/tr}{tr}Thumbnail{/tr}{tr}Inclusion Code{/tr}{tr}Actions{/tr}
{jspopup href=$storage.source_url title=$storage.title|default:$storage.filename notra=1 img=$storage.thumbnail_url.avatar} +
{$storage.filename} {if $smarty.foreach.atts.first} {formhelp note="click to see large preview"} {/if}
- {tr}Attachment ID{/tr}: {$attachmentId} {if $gContent->mInfo.primary_attachment_id eq $attachmentId}({tr}Primary{/tr}){/if}
- {tr}Filename{/tr}: {$storage.filename}
- {tr}Actions{/tr}: - {if $gBitUser->isAdmin() || ($storage.user_id == $gBitUser->mUserId && $gBitUser->hasPermission('p_liberty_delete_attachments') ) } - {if $attachmentBrowser} - {biticon ipackage="icons" iname="edit-delete" iexplain="delete"} - {elseif $libertyUploader || $gBitSystem->getConfig('liberty_attachment_style') == 'ajax'} - {biticon ipackage="icons" iname="edit-delete" iexplain="delete"} - {else} - {biticon ipackage="icons" iname="edit-delete" iexplain="delete"} - {/if} - {/if} -
+ {$storage.wiki_plugin_link} {if $smarty.foreach.atts.first} {formhelp note="copy this code into your edit window to embed the file into your text"} {/if} + {if $uploadTab} + {if $gBitUser->isAdmin() || ($storage.user_id == $gBitUser->mUserId && $gBitUser->hasPermission('p_liberty_delete_attachments') ) } + {if $attachmentBrowser} + {biticon ipackage="icons" iname="edit-delete" iexplain="delete"} + {elseif $libertyUploader || $gBitSystem->getConfig('liberty_attachment_style') == 'ajax'} + {biticon ipackage="icons" iname="edit-delete" iexplain="delete"} + {else} + {biticon ipackage="icons" iname="edit-delete" iexplain="delete"} + {/if} + {/if} + {else} + {* these radio buttons can not be displayed twice in the same form due to interference in $_REQUEST *} + +
+ {/if} +
-- cgit v1.3