PageRenderTime 391ms CodeModel.GetById 196ms app.highlight 2ms RepoModel.GetById 191ms app.codeStats 0ms

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

http://github.com/jdmr/mateo
text | 69 lines | 54 code | 15 blank | 0 comment | 0 complexity | c9bfdf78b1d606079939a27e13463d64 MD5 | raw file
 1
 2<%@ page import="contabilidad.Poliza" %>
 3<!doctype html>
 4<html>
 5	<head>
 6		<meta name="layout" content="main">
 7		<g:set var="entityName" value="${message(code: 'poliza.label', default: 'Poliza')}" />
 8		<title><g:message code="default.list.label" args="[entityName]" /></title>
 9	</head>
10	<body>
11		<a href="#list-poliza" 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="contabilidad"><g:message code="contabilidad.label" default="Contabilidad" />&nbsp;&gt;</g:link></li>
16				<li><g:link class="create" action="nuevaIngreso"><g:message code="poliza.nueva.ingreso.label" args="[entityName]" /></g:link></li>
17				<li><g:link class="create" action="nuevaEgreso"><g:message code="poliza.nueva.egreso.label" args="[entityName]" /></g:link></li>
18				<li><g:link class="create" action="nuevaDiario"><g:message code="poliza.nueva.diario.label" args="[entityName]" /></g:link></li>
19			</ul>
20		</div>
21		<div id="list-poliza" class="content scaffold-list" role="main">
22			<h1><g:message code="default.list.label" args="[entityName]" /></h1>
23			<g:if test="${flash.message}">
24			<div class="message" role="status">${flash.message}</div>
25			</g:if>
26			<table>
27				<thead>
28					<tr>
29					
30						<g:sortableColumn property="folio" title="${message(code: 'poliza.folio.label', default: 'Folio')}" />
31					
32						<g:sortableColumn property="descripcion" title="${message(code: 'poliza.descripcion.label', default: 'Descripcion')}" />
33					
34						<g:sortableColumn property="estatus" title="${message(code: 'poliza.estatus.label', default: 'Estatus')}" />
35					
36						<g:sortableColumn property="tipo" title="${message(code: 'poliza.tipo.label', default: 'Tipo')}" />
37					
38						<th><g:message code="poliza.libro.label" default="Libro" /></th>
39					
40						<th><g:message code="poliza.ejercicio.label" default="Ejercicio" /></th>
41					
42					</tr>
43				</thead>
44				<tbody>
45				<g:each in="${polizas}" status="i" var="poliza">
46					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
47					
48						<td><g:link action="ver" id="${poliza.id}">${fieldValue(bean: poliza, field: "folio")}</g:link></td>
49					
50						<td>${fieldValue(bean: poliza, field: "descripcion")}</td>
51					
52						<td>${fieldValue(bean: poliza, field: "estatus")}</td>
53					
54						<td>${fieldValue(bean: poliza, field: "tipo")}</td>
55					
56						<td>${fieldValue(bean: poliza, field: "libro")}</td>
57
58						<td>${fieldValue(bean: poliza, field: "ejercicio")}</td>
59					
60					</tr>
61				</g:each>
62				</tbody>
63			</table>
64			<div class="pagination">
65				<g:paginate total="${totalDePolizas}" />
66			</div>
67		</div>
68	</body>
69</html>