{block content}
	<div class="span3">
		{include '@menu.latte'}
	</div>

	<div class="span9">
		<div class="box-content">
			<div n:foreach="$flashes as $flash" class="alert alert-{$flash->type}">{$flash->message}</div>

			<table class="table table-striped">
				<thead>
					<tr>
						<th>Id</th>
						<th>Jméno&nbsp;<a n:href='this, orderBy => name, orderWay => asc' class="order"><i class='icon-circle-arrow-up'></i></a>&nbsp;<a n:href='this, orderBy => name, orderWay => desc' class="order"><i class='icon-circle-arrow-down'></i></a></th>
						<th>Login&nbsp;<a n:href='this, orderBy => login, orderWay => asc' class="order"><i class='icon-circle-arrow-up'></i></a>&nbsp;<a n:href='this, orderBy => login, orderWay => desc' class="order"><i class='icon-circle-arrow-down'></i></a></th>
						<th>Role&nbsp;<a n:href='this, orderBy => role, orderWay => asc' class="order"><i class='icon-circle-arrow-up'></i></a>&nbsp;<a n:href='this, orderBy => role, orderWay => desc' class="order"><i class='icon-circle-arrow-down'></i></a></th>
					</tr>
				</thead>

				<tbody>
					<tr n:foreach="$users as $detail">
						<td>{$detail->id}</td>
						<td><a n:href="userDetail, id => $detail->id">{$detail->name|firstUpper}</a></td>
						<td>{$detail->login}</td>
						<td>{$detail->role|firstUpper}</td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
