Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e2489a3340
Fetching contributors…

Cannot retrieve contributors at this time

58 lines (46 sloc) 2.738 kb
<%@ page import="org.grails.jquery.validation.ui.Person" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="layout" content="main" />
<g:set var="entityName" value="${message(code: 'person.label', default: 'Person')}" />
<title><g:message code="default.list.label" args="[entityName]" /></title>
</head>
<body>
<div class="nav">
<span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
<span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
</div>
<div class="body">
<h1><g:message code="default.list.label" args="[entityName]" /></h1>
<g:if test="${flash.message}">
<div class="message">${flash.message}</div>
</g:if>
<div class="list">
<table>
<thead>
<tr>
<g:sortableColumn property="id" title="${message(code: 'person.id.label', default: 'Id')}" />
<th><g:message code="person.homeAddress.label" default="Home Address" /></th>
<g:sortableColumn property="name" title="${message(code: 'person.name.label', default: 'Name')}" />
<th><g:message code="person.workAddress.label" default="Work Address" /></th>
</tr>
</thead>
<tbody>
<g:each in="${personInstanceList}" status="i" var="personInstance">
<tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
<td><g:link action="show" id="${personInstance.id}">${fieldValue(bean: personInstance, field: "id")}</g:link></td>
<td>${fieldValue(bean: personInstance, field: "homeAddress")}</td>
<td>${fieldValue(bean: personInstance, field: "name")}</td>
<td>${fieldValue(bean: personInstance, field: "workAddress")}</td>
</tr>
</g:each>
</tbody>
</table>
</div>
<div class="paginateButtons">
<g:paginate total="${personInstanceTotal}" />
</div>
</div>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.