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