| 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'}"> | 
|---|
| 39 |  | 
|---|
| 40 | <td onclick='window.location = "${request.getContextPath()}/addressDetailed/show/${addressInstance.id}"'> | 
|---|
| 41 | ${fieldValue(bean:addressInstance, field:'id')} | 
|---|
| 42 | </td> | 
|---|
| 43 |  | 
|---|
| 44 | <td onclick='window.location = "${request.getContextPath()}/addressDetailed/show/${addressInstance.id}"'> | 
|---|
| 45 | ${fieldValue(bean:addressInstance, field:'street1')} | 
|---|
| 46 | </td> | 
|---|
| 47 |  | 
|---|
| 48 | <td onclick='window.location = "${request.getContextPath()}/addressDetailed/show/${addressInstance.id}"'> | 
|---|
| 49 | ${fieldValue(bean:addressInstance, field:'street2')} | 
|---|
| 50 | </td> | 
|---|
| 51 |  | 
|---|
| 52 | <td onclick='window.location = "${request.getContextPath()}/addressDetailed/show/${addressInstance.id}"'> | 
|---|
| 53 | ${fieldValue(bean:addressInstance, field:'city')} | 
|---|
| 54 | </td> | 
|---|
| 55 |  | 
|---|
| 56 | <td onclick='window.location = "${request.getContextPath()}/addressDetailed/show/${addressInstance.id}"'> | 
|---|
| 57 | ${fieldValue(bean:addressInstance, field:'state')} | 
|---|
| 58 | </td> | 
|---|
| 59 |  | 
|---|
| 60 | <td onclick='window.location = "${request.getContextPath()}/addressDetailed/show/${addressInstance.id}"'> | 
|---|
| 61 | ${fieldValue(bean:addressInstance, field:'postCode')} | 
|---|
| 62 | </td> | 
|---|
| 63 |  | 
|---|
| 64 | <td class="notClickable"> | 
|---|
| 65 | <g:link action="show" id="${addressInstance.id}"> | 
|---|
| 66 | <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> | 
|---|
| 67 | </g:link> | 
|---|
| 68 | </td> | 
|---|
| 69 |  | 
|---|
| 70 | </tr> | 
|---|
| 71 | </g:each> | 
|---|
| 72 | </tbody> | 
|---|
| 73 | </table> | 
|---|
| 74 | </div> | 
|---|
| 75 | <div class="paginateButtons"> | 
|---|
| 76 | <g:paginate total="${addressInstanceTotal}" /> | 
|---|
| 77 | </div> | 
|---|
| 78 | </div> | 
|---|
| 79 | </body> | 
|---|
| 80 | </html> | 
|---|