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

{g->text text="Resized Photos"}

{g->text text="These sizes are alternate resized versions of the original you would like to have available for viewing."}

{if $ItemEditPhoto.editSizes.can.createResizes} {counter start=0 assign=index} {foreach from=$form.resizes item=resize} {g->dimensions formVar="form[resizes][$index]" width=$form.resizes.$index.width height=$form.resizes.$index.height}
{if !empty($form.error.resizes.$index.size.missing)}
{g->text text="You must enter a valid size"}
{/if} {if !empty($form.error.resizes.$index.size.invalid)}
{g->text text="You must enter a number (greater than zero)"}
{/if} {counter} {/foreach} {else} {g->text text="There are no graphics toolkits enabled that support this type of photo, so we cannot create or modify resized versions."} {if $user.isAdmin} {g->text text="site admin"} {/if} {/if}
{* Include our extra ItemEditOptions *} {foreach from=$ItemEdit.options item=option} {include file="gallery:`$option.file`" l10Domain=$option.l10Domain} {/foreach}