<div class="card card-body">
	<h1>{$title}</h1>

	<label for="previewcat"> Select Category :
		<select id="previewcat" name="previewcat">
			<option class="grouping" value="-1">All</option>
			{foreach from=$catlist item=parentcat}
				<option {if $previewcat==$parentcat.id}selected="selected"{/if} class="grouping"
						value="{$parentcat.id}">{$parentcat.title}</option>
				{foreach $parentcat.categories as $subcat}
					<option {if $previewcat==$subcat.id}selected="selected"{/if} value="{$subcat.id}">
						&nbsp;&nbsp;{$subcat.title}</option>
				{/foreach}
			{/foreach}
		</select>
	</label>

	<br/><br/>

	{if $releaselist}
		{$releaselist->onEachSide(5)->links()}
		<table style="margin-top:10px;" class="data table table-striped responsive-utilities jambo-table">

			<tr>
				<th>preview</th>
				<th>options</th>
			</tr>

			{foreach from=$releaselist item=release}
				<tr class="{cycle values=",alt"}">
					<td title="{$release.name}">
						<img src="{{url("/covers/preview/{$release.guid}_thumb.jpg")}}"/>
						<br/>
						<a href="{{url("/admin/release-edit?id={$release.id}")}}">{$release.searchname|escape:"htmlall"|wordwrap:75:"\n":true}</a>
					</td>
				</tr>
			{/foreach}

		</table>
		<br/>
		{$releaselist->onEachSide(5)->links()}
	{else}
		<p>No results.</p>
	{/if}
</div>
