Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <meta name="layout" content="main" />
- <g:set var="entityName" value="${message(code: 'book.label', default: 'Book')}" />
- <title><g:message code="default.list.label" args="[entityName]" /></title>
- </head>
- <body>
- <div class="nav">
- <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
- <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
- </div>
- <div class="body">
- <h1><g:message code="default.list.label" args="[entityName]" /></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="${message(code: 'book.id.label', default: 'Id')}" />
- <g:sortableColumn property="title" title="${message(code: 'book.title.label', default: 'Title')}" />
- <g:sortableColumn property="authors" title="${message(code: 'book.authors.label', default: 'Authors')}" />
- <th><g:message code='book.title.label' default='Tags'/></th>
- </tr>
- </thead>
- <tbody>
- <g:each in="${bookInstanceList}" status="i" var="bookInstance">
- <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
- <td><g:link action="show" id="${bookInstance._id}">${fieldValue(bean: bookInstance, field: "_id")}</g:link></td>
- <td>${fieldValue(bean: bookInstance, field: "title")}</td>
- <td><g:link action="show" id="${bookInstance.authors}">${fieldValue(bean: bookInstance, field: "authors")}</g:link></td>
- <td>${bookInstance.tags}</td>
- </tr>
- </g:each>
- </tbody>
- </table>
- </div>
- <div class="paginateButtons">
- <g:paginate total="${bookInstanceTotal}" />
- </div>
- </div>
- </body>
- </html>
Add Comment
Please, Sign In to add comment