PageRenderTime 81ms CodeModel.GetById 40ms app.highlight 1ms RepoModel.GetById 39ms app.codeStats 0ms

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

http://github.com/jdmr/mateo
text | 66 lines | 51 code | 15 blank | 0 comment | 0 complexity | f0c148c30993d40f91fdc22283fef2d7 MD5 | raw file
 1
 2<%@ page import="inventario.LoteEntrada" %>
 3<!doctype html>
 4<html>
 5	<head>
 6		<meta name="layout" content="main">
 7		<g:set var="entityName" value="${message(code: 'loteEntrada.label', default: 'LoteEntrada')}" />
 8		<title><g:message code="default.list.label" args="[entityName]" /></title>
 9	</head>
10	<body>
11		<a href="#list-loteEntrada" 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-loteEntrada" 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="cantidad" title="${message(code: 'loteEntrada.cantidad.label', default: 'Cantidad')}" />
28					
29						<g:sortableColumn property="precioUnitario" title="${message(code: 'loteEntrada.precioUnitario.label', default: 'Precio Unitario')}" />
30					
31						<g:sortableColumn property="iva" title="${message(code: 'loteEntrada.iva.label', default: 'Iva')}" />
32					
33						<g:sortableColumn property="dateCreated" title="${message(code: 'loteEntrada.dateCreated.label', default: 'Date Created')}" />
34					
35						<th><g:message code="loteEntrada.entrada.label" default="Entrada" /></th>
36					
37						<g:sortableColumn property="lastUpdated" title="${message(code: 'loteEntrada.lastUpdated.label', default: 'Last Updated')}" />
38					
39					</tr>
40				</thead>
41				<tbody>
42				<g:each in="${loteEntradas}" status="i" var="loteEntrada">
43					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
44					
45						<td><g:link action="ver" id="${loteEntrada.id}">${fieldValue(bean: loteEntrada, field: "cantidad")}</g:link></td>
46					
47						<td>${fieldValue(bean: loteEntrada, field: "precioUnitario")}</td>
48					
49						<td>${fieldValue(bean: loteEntrada, field: "iva")}</td>
50					
51						<td><g:formatDate date="${loteEntrada.dateCreated}" /></td>
52					
53						<td>${fieldValue(bean: loteEntrada, field: "entrada")}</td>
54					
55						<td><g:formatDate date="${loteEntrada.lastUpdated}" /></td>
56					
57					</tr>
58				</g:each>
59				</tbody>
60			</table>
61			<div class="pagination">
62				<g:paginate total="${totalDeLoteEntradas}" />
63			</div>
64		</div>
65	</body>
66</html>