list.gsp
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:2k
-
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="layout" content="main" />
- <title><g:message code="authority.list" default="Authority List" /></title>
- </head>
- <body>
- <div class="nav">
- <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}"><g:message code="home" default="Home" /></a></span>
- <span class="menuButton"><g:link class="create" action="create"><g:message code="authority.new" default="New Authority" /></g:link></span>
- </div>
- <div class="body">
- <h1><g:message code="authority.list" default="Authority 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="Authority Name" titleKey="authority.name"/>
-
- <g:sortableColumn property="description" title="Description" titleKey="authority.description"/>
-
- <th><g:message code="list.show" default="Show" /></th>
- </tr>
- </thead>
-
- <tbody>
- <g:each in="${authorityList}" status="i" var="it">
- <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
-
- <td>${it.id?.encodeAsHTML()}</td>
-
- <td>${it.authority?.substring(5)?.toLowerCase()?.encodeAsHTML()}</td>
-
- <td>${it.description?.encodeAsHTML()}</td>
-
- <td class="actionButtons">
- <span class="actionButton">
- <g:link action="show" id="${it.id}"><g:message code="list.show" default="Show" /></g:link>
- </span>
- </td>
- </tr>
- </g:each>
- </tbody>
-
- </table>
- </div>
- <div class="paginateButtons">
- <g:paginate total="${Authority.count()}" />
- </div>
- </div>
- </body>
- </html>