list.gsp
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:2k
源码类别:

PlugIns编程

开发平台:

Java

  1.   
  2. <html>
  3.   <head>
  4.     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  5.     <meta name="layout" content="main" />
  6.     <title><g:message code="authority.list" default="Authority List" /></title>
  7.   </head>
  8.   <body>
  9.     <div class="nav">
  10.       <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}"><g:message code="home" default="Home" /></a></span>
  11.       <span class="menuButton"><g:link  class="create" action="create"><g:message code="authority.new" default="New Authority" /></g:link></span>
  12.     </div>
  13.     <div class="body">
  14.       <h1><g:message code="authority.list" default="Authority List" /></h1>
  15.       <g:if test="${flash.message}">
  16.         <div class="message">
  17.           ${flash.message}
  18.         </div>
  19.       </g:if>
  20.       <div class="list">
  21.       <table>
  22.       
  23.         <thead>
  24.           <tr>
  25.                
  26.             <g:sortableColumn property="id" title="Id" />
  27.                   
  28.             <g:sortableColumn property="authority" title="Authority Name" titleKey="authority.name"/>
  29.                   
  30.             <g:sortableColumn property="description" title="Description" titleKey="authority.description"/>
  31.                   
  32.             <th><g:message code="list.show" default="Show" /></th>
  33.           </tr>
  34.         </thead>
  35.         
  36.         <tbody>
  37.           <g:each in="${authorityList}" status="i" var="it">
  38.             <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
  39.                        
  40.               <td>${it.id?.encodeAsHTML()}</td>
  41.                        
  42.               <td>${it.authority?.substring(5)?.toLowerCase()?.encodeAsHTML()}</td>
  43.                        
  44.               <td>${it.description?.encodeAsHTML()}</td>
  45.                        
  46.               <td class="actionButtons">
  47.                 <span class="actionButton">
  48.                   <g:link action="show" id="${it.id}"><g:message code="list.show" default="Show" /></g:link>
  49.                 </span>
  50.               </td>
  51.             </tr>
  52.           </g:each>
  53.         </tbody>
  54.         
  55.       </table>
  56.       </div>
  57.       <div class="paginateButtons">
  58.         <g:paginate total="${Authority.count()}" />
  59.       </div>
  60.     </div>
  61.   </body>
  62. </html>