<div class="context-main-bg context-main p-3">
    <legend class="text-center">Redirects</legend>
    <hr>
    {ADMIN_BREADCRUMBS}
	<form action="{ROOT_URL}admin/routes/delete" method="post">
		<table class="table table-striped">
			<thead>
				<tr>
					<th style="width: 5%">ID</th>
					<th style="width: 15%">Nickname</th>
					<th style="width: 15%">Type</th>
					<th style="width: 15%">Path</th>
					<th style="width: 15%">Destination</th>
					<th style="width: 5%">Edit</th>
					<th style="width: 5%">Delete</th>
					<th style="width: 5%">
						<input type="checkbox" onchange="checkAll(this)" name="check.r" value="R_[]">
					</th>
				</tr>
			</thead>
			<tbody>
				{LOOP}
				<tr>
					<td align="center">{ID}</td>
					<td><a href='{ROOT_URL}admin/routes/view/{ID}'>{nickname}</a></td>
					<td>{redirect_type}</td>
					<td>{original_url}</td>
					<td>{forwarded_url}</td>
					<td><a href="{ROOT_URL}admin/routes/edit/{ID}" class="btn btn-sm btn-warning"><i class="fa fa-fw fa-pencil"></i></a></td>
					<td><a href="{ROOT_URL}admin/routes/delete/{ID}" class="btn btn-sm btn-danger"><i class="fa fa-fw fa-trash"></i></a></td>
					<td>
						<input type="checkbox" value="{ID}" name="R_[]">
					</td>
				</tr>
				{/LOOP}
				{ALT}
				<tr>
					<td align="center" colspan="6">
						No results to show.
					</td>
				</tr>
				{/ALT}
			</tbody>
		</table>
		<a href="{ROOT_URL}admin/routes/create" class="btn btn-sm btn-primary">Create</a>
		<button name="submit" value="submit" type="submit" class="btn btn-sm btn-danger"><i class="fa fa-fw fa-trash"></i></button>
	</form>
</div>