<head>
	<meta name="layout" content="main" />
	<title>${authorityClassName} List</title>
</head>

<body>

	<div class="nav">
		<span class="menuButton"><a class="home" href="\${createLinkTo(dir:'')}">Home</a></span>
		<span class="menuButton"><g:link class="create" action="create">New ${authorityClassName}</g:link></span>
	</div>

	<div class="body">
		<h1>${authorityClassName} List</h1>
		<g:if test="\${flash.message}">
		<div class="message">\${flash.message}</div>
		</g:if>
		<div class="list">
			<table>
			<thead>
				<tr>
					<g:sortableColumn property="id" title="ID" />
					<g:sortableColumn property="authority" title="${authorityClassName} Name" />
					<g:sortableColumn property="description" title="Description" />
					<th>&nbsp;</th>
				</tr>
			</thead>
			<tbody>
			<g:each in="\${authorityList}" status="i" var="authority">
				<tr class="\${(i % 2) == 0 ? 'odd' : 'even'}">
					<td>\${authority.id}</td>
					<td>\${authority.authority?.encodeAsHTML()}</td>
					<td>\${authority.description?.encodeAsHTML()}</td>
					<td class="actionButtons">
						<span class="actionButton">
							<g:link action="show" id="\${authority.id}">Show</g:link>
						</span>
					</td>
				</tr>
			</g:each>
			</tbody>
			</table>
		</div>

		<div class="paginateButtons">
			<g:paginate total="\${${authorityClass}.count()}" />
		</div>
	</div>
</body>
