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

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

http://github.com/jdmr/mateo
text | 59 lines | 48 code | 11 blank | 0 comment | 0 complexity | 1c8af60163c16324d71bad283f7b699a MD5 | raw file
 1
 2<%@ page import="inventario.Almacen" %>
 3<!doctype html>
 4<html>
 5	<head>
 6		<meta name="layout" content="main">
 7		<g:set var="entityName" value="${message(code: 'almacen.label', default: 'Almacen')}" />
 8		<title><g:message code="default.list.label" args="[entityName]" /></title>
 9	</head>
10	<body>
11		<a href="#list-almacen" 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="nuevo"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
17			</ul>
18		</div>
19		<div id="list-almacen" 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="codigo" title="${message(code: 'almacen.codigo.label', default: 'Codigo')}" />
29					
30						<g:sortableColumn property="nombre" title="${message(code: 'almacen.nombre.label', default: 'Nombre')}" />
31					
32<!--						<th><g:message code="almacen.empresa.label" default="Empresa" /></th>-->
33
34                                                <g:sortableColumn property="nombreCompleto" title="${message(code: 'almacen.nombreCompleto.label', default: 'Nombre Completo')}" />
35					
36					</tr>
37				</thead>
38				<tbody>
39				<g:each in="${almacenes}" status="i" var="almacen">
40					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
41					
42						<td><g:link action="ver" id="${almacen.id}">${fieldValue(bean: almacen, field: "codigo")}</g:link></td>
43					
44						<td>${fieldValue(bean: almacen, field: "nombre")}</td>
45					
46<!--						<td>${fieldValue(bean: almacen, field: "empresa")}</td>-->
47
48                                                <td>${fieldValue(bean: almacen, field: "nombreCompleto")}</td>
49					
50					</tr>
51				</g:each>
52				</tbody>
53			</table>
54			<div class="pagination">
55				<g:paginate total="${totalDeAlmacenes}" />
56			</div>
57		</div>
58	</body>
59</html>