PageRenderTime 92ms CodeModel.GetById 60ms app.highlight 1ms RepoModel.GetById 29ms app.codeStats 0ms

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

http://github.com/jdmr/mateo
text | 54 lines | 45 code | 9 blank | 0 comment | 0 complexity | b618468478f360ffbfd64d42f386efdf MD5 | raw file
 1
 2<%@ page import="inventario.FolioInventario" %>
 3<!doctype html>
 4<html>
 5	<head>
 6		<meta name="layout" content="main">
 7		<g:set var="entityName" value="${message(code: 'folioInventario.label', default: 'FolioInventario')}" />
 8		<title><g:message code="default.list.label" args="[entityName]" /></title>
 9	</head>
10	<body>
11		<a href="#list-folioInventario" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></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="create" action="nuevo"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
16			</ul>
17		</div>
18		<div id="list-folioInventario" 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					
27						<g:sortableColumn property="nombre" title="${message(code: 'folioInventario.nombre.label', default: 'Nombre')}" />
28					
29						<g:sortableColumn property="valor" title="${message(code: 'folioInventario.valor.label', default: 'Valor')}" />
30					
31						<th><g:message code="folioInventario.almacen.label" default="Almacen" /></th>
32					
33					</tr>
34				</thead>
35				<tbody>
36				<g:each in="${folioInventarios}" status="i" var="folioInventario">
37					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
38					
39						<td><g:link action="ver" id="${folioInventario.id}">${fieldValue(bean: folioInventario, field: "nombre")}</g:link></td>
40					
41						<td>${fieldValue(bean: folioInventario, field: "valor")}</td>
42					
43						<td>${fieldValue(bean: folioInventario, field: "almacen")}</td>
44					
45					</tr>
46				</g:each>
47				</tbody>
48			</table>
49			<div class="pagination">
50				<g:paginate total="${totalDeFolioInventarios}" />
51			</div>
52		</div>
53	</body>
54</html>