{include file="lc_album/album_toolbar.tpl"}

{if $images}
	<form action="#" method="post">
		<input class="btn btn-default" type="submit" value="{t}применить{/t}" />
		<input type="hidden" value="{$_user->token|escape}" name="token" />
		<div class="clearfix"></div>
		{foreach $images as $image}
			<div class="img-thumbnail" style="width:100px;height:50px;float:left;"><img style="width:40px" src="{$image->files.small}" alt="{$image->name|escape}" /> <input type="text" size="1" name="sort[{$image->id}]" value="{$image@iteration}" /></div>
		{/foreach}
		<div class="clearfix"></div>
		<input class="btn btn-default" type="submit" value="{t}применить{/t}" />
	</form>
{else}
	<div>{t}Нечего сортировать{/t}</div>
{/if}
