PageRenderTime 31ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/grails-app/views/tipoProducto/lista.gsp

http://github.com/jdmr/mateo
text | 55 lines | 46 code | 9 blank | 0 comment | 0 complexity | 981dd1a8144bf92ca931cff6c446f041 MD5 | raw file
  1. <%@ page import="inventario.TipoProducto" %>
  2. <!doctype html>
  3. <html>
  4. <head>
  5. <meta name="layout" content="main">
  6. <g:set var="entityName" value="${message(code: 'tipoProducto.label', default: 'TipoProducto')}" />
  7. <title><g:message code="default.list.label" args="[entityName]" /></title>
  8. </head>
  9. <body>
  10. <a href="#list-tipoProducto" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
  11. <div class="nav" role="navigation">
  12. <ul>
  13. <li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/>&nbsp;&gt;</a></li>
  14. <li><g:link class="list" controller="inventario"><g:message code="inventario.label" default="Inventario" />&nbsp;&gt;</g:link></li>
  15. <li><g:link class="create" action="nuevo"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
  16. </ul>
  17. </div>
  18. <div id="list-tipoProducto" class="content scaffold-list" role="main">
  19. <h1><g:message code="default.list.label" args="[entityName]" /></h1>
  20. <g:if test="${flash.message}">
  21. <div class="message" role="status">${flash.message}</div>
  22. </g:if>
  23. <table>
  24. <thead>
  25. <tr>
  26. <g:sortableColumn property="nombre" title="${message(code: 'tipoProducto.nombre.label', default: 'Nombre')}" />
  27. <g:sortableColumn property="descripcion" title="${message(code: 'tipoProducto.descripcion.label', default: 'Descripcion')}" />
  28. <th><g:message code="tipoProducto.almacen.label" default="Almacen" /></th>
  29. </tr>
  30. </thead>
  31. <tbody>
  32. <g:each in="${tipoProductos}" status="i" var="tipoProducto">
  33. <tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
  34. <td><g:link action="ver" id="${tipoProducto.id}">${fieldValue(bean: tipoProducto, field: "nombre")}</g:link></td>
  35. <td>${fieldValue(bean: tipoProducto, field: "descripcion")}</td>
  36. <td>${fieldValue(bean: tipoProducto, field: "almacen")}</td>
  37. </tr>
  38. </g:each>
  39. </tbody>
  40. </table>
  41. <div class="pagination">
  42. <g:paginate total="${totalDeTipoProductos}" />
  43. </div>
  44. </div>
  45. </body>
  46. </html>