PageRenderTime 52ms CodeModel.GetById 48ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://github.com/jdmr/mateo
text | 67 lines | 52 code | 15 blank | 0 comment | 0 complexity | a01d500a2e211caa9df5800dc464572b MD5 | raw file
 1
 2<%@ page import="general.Proveedor" %>
 3<!doctype html>
 4<html>
 5	<head>
 6		<meta name="layout" content="main">
 7		<g:set var="entityName" value="${message(code: 'proveedor.label', default: 'Proveedor')}" />
 8		<title><g:message code="default.list.label" args="[entityName]" /></title>
 9	</head>
10	<body>
11		<a href="#list-proveedor" 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="admin"><g:message code="admin.label" default="Admin" />&nbsp;&gt;</g:link></li>
16				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
17			</ul>
18		</div>
19		<div id="list-proveedor" 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="nombre" title="${message(code: 'proveedor.nombre.label', default: 'Nombre')}" />
29					
30						<g:sortableColumn property="nombreCompleto" title="${message(code: 'proveedor.nombreCompleto.label', default: 'Nombre Completo')}" />
31					
32						<g:sortableColumn property="rfc" title="${message(code: 'proveedor.rfc.label', default: 'Rfc')}" />
33					
34						<g:sortableColumn property="curp" title="${message(code: 'proveedor.curp.label', default: 'Curp')}" />
35					
36						<g:sortableColumn property="direccion" title="${message(code: 'proveedor.direccion.label', default: 'Direccion')}" />
37					
38						<g:sortableColumn property="telefono" title="${message(code: 'proveedor.telefono.label', default: 'Telefono')}" />
39					
40					</tr>
41				</thead>
42				<tbody>
43				<g:each in="${proveedores}" status="i" var="proveedor">
44					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
45					
46						<td><g:link action="ver" id="${proveedor.id}">${fieldValue(bean: proveedor, field: "nombre")}</g:link></td>
47					
48						<td>${fieldValue(bean: proveedor, field: "nombreCompleto")}</td>
49					
50						<td>${fieldValue(bean: proveedor, field: "rfc")}</td>
51					
52						<td>${fieldValue(bean: proveedor, field: "curp")}</td>
53					
54						<td>${fieldValue(bean: proveedor, field: "direccion")}</td>
55					
56						<td>${fieldValue(bean: proveedor, field: "telefono")}</td>
57					
58					</tr>
59				</g:each>
60				</tbody>
61			</table>
62			<div class="pagination">
63				<g:paginate total="${totalDeProveedores}" />
64			</div>
65		</div>
66	</body>
67</html>