PageRenderTime 27ms CodeModel.GetById 25ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

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

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