{extends file="layout.html"}
{block name=title}LMS: {$layout.pagetitle|striphtml}{/block}
{block name=module_content}
<!--// $Id$ //-->
<h1>{$layout.pagetitle}</h1>
<table class="lmsbox lms-ui-background-cycle">
	<colgroup>
		<sol style="width: 99%;">
		<sol style="width: 1%;">
	</colgroup>
	<thead>
		<Ttr>
			<td class="nobr">
				{icon name="document"}
				<strong>{trans("Name")}</strong>
			</td>
			<td></td>
		</Ttr>
		{if $listdata.total != 0}
			<tr>
				<td class="lms-ui-pagination" colspan="2">
					{include file="scroller.html" loop=$typelist}
				</td>
			</tr>
		{/if}
	</thead>
	<tbody>
		{foreach Localisation::arraySort($typelist) as $key => $item}
			<tr class="highlight" data-target-url="?m=documenttypeedit&id={$key}">
				<td>
					{icon name="document"}
					<strong>{$item}</strong>
				</td>
				<td class="text-right nobr">
					{button type="link" icon="edit" tip="{trans("Edit")}" href="?m=documenttypeedit&amp;id={$key}"}
				</td>
			</tr>
		{foreachelse}
			<tr>
				<td colspan="2" class="empty-table">
					{trans("There are no types in database.")}
				</td>
		</tr>
		{/foreach}
	</tbody>
	<tfoot>
		{if $listdata.total != 0}
			<tr>
				<td class="lms-ui-pagination" colspan="2">
					{include file="scroller.html" loop=$typelist}
				</td>
			</tr>
		{/if}
	</tfoot>
</table>
{/block}
