source: trunk/grails-app/views/addressDetailed/list.gsp @ 836

Last change on this file since 836 was 836, checked in by gav, 13 years ago

Fix early closed table row on clickableOdd/clickableEven list tables.

File size: 3.7 KB
RevLine 
[397]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">
[836]38                        <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}">
[397]39                       
[498]40                            <td onclick='window.location = "${request.getContextPath()}/addressDetailed/show/${addressInstance.id}"'>
41                                ${fieldValue(bean:addressInstance, field:'id')}
42                            </td>
[397]43                       
[498]44                            <td onclick='window.location = "${request.getContextPath()}/addressDetailed/show/${addressInstance.id}"'>
45                                ${fieldValue(bean:addressInstance, field:'street1')}
46                            </td>
[397]47                       
[498]48                            <td onclick='window.location = "${request.getContextPath()}/addressDetailed/show/${addressInstance.id}"'>
49                                ${fieldValue(bean:addressInstance, field:'street2')}
50                            </td>
[397]51                       
[498]52                            <td onclick='window.location = "${request.getContextPath()}/addressDetailed/show/${addressInstance.id}"'>
53                                ${fieldValue(bean:addressInstance, field:'city')}
54                            </td>
[397]55                       
[498]56                            <td onclick='window.location = "${request.getContextPath()}/addressDetailed/show/${addressInstance.id}"'>
57                                ${fieldValue(bean:addressInstance, field:'state')}
58                            </td>
[397]59                       
[498]60                            <td onclick='window.location = "${request.getContextPath()}/addressDetailed/show/${addressInstance.id}"'>
61                                ${fieldValue(bean:addressInstance, field:'postCode')}
62                            </td>
[397]63
[498]64                            <td class="notClickable">
[397]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>
Note: See TracBrowser for help on using the repository browser.