Guest User

Untitled

a guest
May 25th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1.  
  2.  
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6. <meta name="layout" content="main" />
  7. <g:set var="entityName" value="${message(code: 'book.label', default: 'Book')}" />
  8. <title><g:message code="default.list.label" args="[entityName]" /></title>
  9. </head>
  10. <body>
  11. <div class="nav">
  12. <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
  13. <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
  14. </div>
  15. <div class="body">
  16. <h1><g:message code="default.list.label" args="[entityName]" /></h1>
  17. <g:if test="${flash.message}">
  18. <div class="message">${flash.message}</div>
  19. </g:if>
  20. <div class="list">
  21. <table>
  22. <thead>
  23. <tr>
  24.  
  25. <g:sortableColumn property="_id" title="${message(code: 'book.id.label', default: 'Id')}" />
  26.  
  27. <g:sortableColumn property="title" title="${message(code: 'book.title.label', default: 'Title')}" />
  28. <g:sortableColumn property="authors" title="${message(code: 'book.authors.label', default: 'Authors')}" />
  29. <th><g:message code='book.title.label' default='Tags'/></th>
  30.  
  31. </tr>
  32. </thead>
  33. <tbody>
  34. <g:each in="${bookInstanceList}" status="i" var="bookInstance">
  35. <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
  36.  
  37. <td><g:link action="show" id="${bookInstance._id}">${fieldValue(bean: bookInstance, field: "_id")}</g:link></td>
  38.  
  39. <td>${fieldValue(bean: bookInstance, field: "title")}</td>
  40. <td><g:link action="show" id="${bookInstance.authors}">${fieldValue(bean: bookInstance, field: "authors")}</g:link></td>
  41. <td>${bookInstance.tags}</td>
  42.  
  43. </tr>
  44. </g:each>
  45. </tbody>
  46. </table>
  47. </div>
  48. <div class="paginateButtons">
  49. <g:paginate total="${bookInstanceTotal}" />
  50. </div>
  51. </div>
  52. </body>
  53. </html>
Add Comment
Please, Sign In to add comment