PageRenderTime 58ms CodeModel.GetById 23ms RepoModel.GetById 1ms app.codeStats 0ms

/grails-app/views/cliente/list.gsp

http://github.com/jdmr/mateo
text | 67 lines | 52 code | 15 blank | 0 comment | 0 complexity | 560907fdf03b91904d0ba7a09adf0bd1 MD5 | raw file
  1. <%@ page import="general.Cliente" %>
  2. <!doctype html>
  3. <html>
  4. <head>
  5. <meta name="layout" content="main">
  6. <g:set var="entityName" value="${message(code: 'cliente.label', default: 'Cliente')}" />
  7. <title><g:message code="default.list.label" args="[entityName]" /></title>
  8. </head>
  9. <body>
  10. <a href="#list-cliente" 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="admin"><g:message code="admin.label" default="Admin" />&nbsp;&gt;</g:link></li>
  15. <li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
  16. </ul>
  17. </div>
  18. <div id="list-cliente" 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: 'cliente.nombre.label', default: 'Nombre')}" />
  27. <g:sortableColumn property="nombreCompleto" title="${message(code: 'cliente.nombreCompleto.label', default: 'Nombre Completo')}" />
  28. <g:sortableColumn property="rfc" title="${message(code: 'cliente.rfc.label', default: 'Rfc')}" />
  29. <g:sortableColumn property="curp" title="${message(code: 'cliente.curp.label', default: 'Curp')}" />
  30. <g:sortableColumn property="direccion" title="${message(code: 'cliente.direccion.label', default: 'Direccion')}" />
  31. <g:sortableColumn property="telefono" title="${message(code: 'cliente.telefono.label', default: 'Telefono')}" />
  32. </tr>
  33. </thead>
  34. <tbody>
  35. <g:each in="${clienteInstanceList}" status="i" var="clienteInstance">
  36. <tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
  37. <td><g:link action="show" id="${clienteInstance.id}">${fieldValue(bean: clienteInstance, field: "nombre")}</g:link></td>
  38. <td>${fieldValue(bean: clienteInstance, field: "nombreCompleto")}</td>
  39. <td>${fieldValue(bean: clienteInstance, field: "rfc")}</td>
  40. <td>${fieldValue(bean: clienteInstance, field: "curp")}</td>
  41. <td>${fieldValue(bean: clienteInstance, field: "direccion")}</td>
  42. <td>${fieldValue(bean: clienteInstance, field: "telefono")}</td>
  43. </tr>
  44. </g:each>
  45. </tbody>
  46. </table>
  47. <div class="pagination">
  48. <g:paginate total="${clienteInstanceTotal}" />
  49. </div>
  50. </div>
  51. </body>
  52. </html>