{* * $Revision: 17662 $ * Read this before changing templates! http://codex.gallery2.org/Gallery2:Editing_Templates *}

{g->text text="Edit Captions"} {if ($ItemEditCaptions.numPages > 1) } {g->text text="(page %d of %d)" arg1=$ItemEditCaptions.page arg2=$ItemEditCaptions.numPages} {/if}

{if !empty($status)}
{if $status.errorCount > 0}

{if $status.successCount > 0} {g->text text="There were errors saving some items"} {else} {g->text text="There were errors saving all items"} {/if}

{elseif $status.successCount > 0}

{g->text text="Successfully saved all items"}

{/if}
{/if} {if empty($form.items)}

{g->text text="This album contains no items"}

{else} {foreach name=itemLoop from=$form.items item=item}
{if isset($item.thumbnail)}{strip}
{g->image item=$item image=$item.thumbnail maxSize=150 class="giThumbnail"}
{/strip}{/if}

{g->text text="Title"}

{include file="gallery:modules/core/templates/MarkupBar.tpl" viewL10domain="modules_core" element="title_`$item.id`" firstMarkupBar=$smarty.foreach.itemLoop.first}

{g->text text="Summary"}

{include file="gallery:modules/core/templates/MarkupBar.tpl" viewL10domain="modules_core" element="summary_`$item.id`" firstMarkupBar=false}

{g->text text="Keywords"}

{g->text text="Description"}

{include file="gallery:modules/core/templates/MarkupBar.tpl" viewL10domain="modules_core" element="description_`$item.id`" firstMarkupBar=false} {if isset($status[$item.id].saved)}
{g->text text="Saved successfully."}
{/if} {if isset($status[$item.id].obsolete)}
{g->text text="This item was modified by somebody else at the same time. Your changes were lost."}
{/if} {* We will probably never see this message because the view won't show us items for which we have no permissions *} {if isset($status[$item.id].permissionDenied)}
{g->text text="You do not have permissions to modify this item."}
{/if}
{/foreach}
{if $ItemEditCaptions.canCancel} {else} {/if} {if ($ItemEditCaptions.page > 1)} {/if} {if ($ItemEditCaptions.page < $ItemEditCaptions.numPages)} {/if} {if $ItemEditCaptions.canCancel} {/if}
{/if}