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="user.list" default="Person 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="user.create" default="New Person" /></g:link></span>
- </div>
- <div class="body">
- <h1><g:message code="user.list" default="Person 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" titleKey="id"/>
-
- <g:sortableColumn property="username" title="Login Name" titleKey="user.loginName"/>
-
- <g:sortableColumn property="userRealName" title="Full Name" titleKey="user.fullName"/>
-
- <g:sortableColumn property="enabled" title="Enabled" titleKey="user.enabled"/>
-
- <g:sortableColumn property="description" title="Description" titleKey="user.description"/>
-
- <th></th>
- </tr>
- </thead>
- <tbody>
- <g:each in="${personList}" status="i" var="it">
- <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
-
- <td>${it.id?.encodeAsHTML()}</td>
-
- <td>${it.username?.encodeAsHTML()}</td>
-
- <td>${it.userRealName?.encodeAsHTML()}</td>
-
- <td>${it.enabled?.encodeAsHTML()}</td>
-
- <td>${it.description?.encodeAsHTML()}</td>
-
- <td class="actionButtons">
- <span class="actionButton">
- <g:link action="show" id="${it.id}">Show</g:link>
- </span>
- </td>
- </tr>
- </g:each>
- </tbody>
- </table>
- </div>
- <div class="paginateButtons">
- <g:paginate total="${Person.count()}" />
- </div>
-
- </div>
- </body>
- </html>