PageRenderTime 5ms CodeModel.GetById 2ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://github.com/jdmr/mateo
text | 54 lines | 46 code | 8 blank | 0 comment | 0 complexity | 981dd1a8144bf92ca931cff6c446f041 MD5 | raw file
 1<%@ page import="contabilidad.Auxiliar" %>
 2<!doctype html>
 3<html>
 4	<head>
 5		<meta name="layout" content="main">
 6		<g:set var="entityName" value="${message(code: 'auxiliar.label', default: 'Auxiliar')}" />
 7		<title><g:message code="default.list.label" args="[entityName]" /></title>
 8	</head>
 9	<body>
10		<a href="#list-auxiliar" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
11		<div class="nav" role="navigation">
12			<ul>
13				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/>&nbsp;&gt;</a></li>
14				<li><g:link class="list" controller="contabilidad"><g:message code="contabilidad.label" default="Contabilidad" />&nbsp;&gt;</g:link></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-auxiliar" 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="numero" title="${message(code: 'auxiliar.numero.label', default: 'Numero')}" />
28					
29						<g:sortableColumn property="descripcion" title="${message(code: 'auxiliar.descripcion.label', default: 'Descripcion')}" />
30					
31						<th><g:message code="auxiliar.organizacion.label" default="Organizacion" /></th>
32					
33					</tr>
34				</thead>
35				<tbody>
36				<g:each in="${auxiliares}" status="i" var="auxiliar">
37					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
38					
39						<td><g:link action="ver" id="${auxiliar.id}">${fieldValue(bean: auxiliar, field: "numero")}</g:link></td>
40					
41						<td>${fieldValue(bean: auxiliar, field: "descripcion")}</td>
42					
43						<td>${fieldValue(bean: auxiliar, field: "organizacion")}</td>
44					
45					</tr>
46				</g:each>
47				</tbody>
48			</table>
49			<div class="pagination">
50				<g:paginate total="${totalDeAuxiliares}" />
51			</div>
52		</div>
53	</body>
54</html>