1 | |
---|
2 | |
---|
3 | <html> |
---|
4 | <head> |
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
6 | <meta name="layout" content="main" /> |
---|
7 | <title>Address List</title> |
---|
8 | </head> |
---|
9 | <body> |
---|
10 | <div class="nav"> |
---|
11 | <h1>Address List</h1> |
---|
12 | </div> |
---|
13 | <div class="body"> |
---|
14 | <g:render template="/shared/messages" /> |
---|
15 | <div class="list"> |
---|
16 | <table> |
---|
17 | <thead> |
---|
18 | <tr> |
---|
19 | |
---|
20 | <g:sortableColumn property="id" title="Id" /> |
---|
21 | |
---|
22 | <g:sortableColumn property="street1" title="Street1" /> |
---|
23 | |
---|
24 | <g:sortableColumn property="street2" title="Street2" /> |
---|
25 | |
---|
26 | <g:sortableColumn property="city" title="City" /> |
---|
27 | |
---|
28 | <g:sortableColumn property="state" title="State" /> |
---|
29 | |
---|
30 | <g:sortableColumn property="postCode" title="Post Code" /> |
---|
31 | |
---|
32 | <th></th> |
---|
33 | |
---|
34 | </tr> |
---|
35 | </thead> |
---|
36 | <tbody> |
---|
37 | <g:each in="${addressInstanceList}" status="i" var="addressInstance"> |
---|
38 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/addressDetailed/show/${addressInstance.id}"'/> |
---|
39 | |
---|
40 | <td>${fieldValue(bean:addressInstance, field:'id')}</td> |
---|
41 | |
---|
42 | <td>${fieldValue(bean:addressInstance, field:'street1')}</td> |
---|
43 | |
---|
44 | <td>${fieldValue(bean:addressInstance, field:'street2')}</td> |
---|
45 | |
---|
46 | <td>${fieldValue(bean:addressInstance, field:'city')}</td> |
---|
47 | |
---|
48 | <td>${fieldValue(bean:addressInstance, field:'state')}</td> |
---|
49 | |
---|
50 | <td>${fieldValue(bean:addressInstance, field:'postCode')}</td> |
---|
51 | |
---|
52 | <td> |
---|
53 | <g:link action="show" id="${addressInstance.id}"> |
---|
54 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
55 | </g:link> |
---|
56 | </td> |
---|
57 | |
---|
58 | </tr> |
---|
59 | </g:each> |
---|
60 | </tbody> |
---|
61 | </table> |
---|
62 | </div> |
---|
63 | <div class="paginateButtons"> |
---|
64 | <g:paginate total="${addressInstanceTotal}" /> |
---|
65 | </div> |
---|
66 | </div> |
---|
67 | </body> |
---|
68 | </html> |
---|