PageRenderTime 23ms CodeModel.GetById 19ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://github.com/jdmr/mateo
text | 66 lines | 51 code | 15 blank | 0 comment | 0 complexity | 3475b53747c103b9ebe0418a6c4d2fb0 MD5 | raw file
 1
 2<%@ page import="inventario.FacturaAlmacen" %>
 3<!doctype html>
 4<html>
 5	<head>
 6		<meta name="layout" content="main">
 7		<g:set var="entityName" value="${message(code: 'facturaAlmacen.label', default: 'FacturaAlmacen')}" />
 8		<title><g:message code="default.list.label" args="[entityName]" /></title>
 9	</head>
10	<body>
11		<a href="#list-facturaAlmacen" 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="nueva"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
16			</ul>
17		</div>
18		<div id="list-facturaAlmacen" 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="folio" title="${message(code: 'facturaAlmacen.folio.label', default: 'Folio')}" />
28					
29						<g:sortableColumn property="comentarios" title="${message(code: 'facturaAlmacen.comentarios.label', default: 'Comentarios')}" />
30					
31						<g:sortableColumn property="iva" title="${message(code: 'facturaAlmacen.iva.label', default: 'Iva')}" />
32					
33						<g:sortableColumn property="total" title="${message(code: 'facturaAlmacen.total.label', default: 'Total')}" />
34					
35						<g:sortableColumn property="estatus" title="${message(code: 'facturaAlmacen.estatus.label', default: 'Estatus')}" />
36					
37						<th><g:message code="facturaAlmacen.almacen.label" default="Almacen" /></th>
38					
39					</tr>
40				</thead>
41				<tbody>
42				<g:each in="${facturaAlmacenes}" status="i" var="facturaAlmacen">
43					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
44					
45						<td><g:link action="ver" id="${facturaAlmacen.id}">${fieldValue(bean: facturaAlmacen, field: "folio")}</g:link></td>
46					
47						<td>${fieldValue(bean: facturaAlmacen, field: "comentarios")}</td>
48					
49						<td>${fieldValue(bean: facturaAlmacen, field: "iva")}</td>
50					
51						<td>${fieldValue(bean: facturaAlmacen, field: "total")}</td>
52					
53						<td>${fieldValue(bean: facturaAlmacen, field: "estatus")}</td>
54					
55						<td>${fieldValue(bean: facturaAlmacen, field: "almacen")}</td>
56					
57					</tr>
58				</g:each>
59				</tbody>
60			</table>
61			<div class="pagination">
62				<g:paginate total="${totalDeFacturaAlmacenes}" />
63			</div>
64		</div>
65	</body>
66</html>