source: trunk/grails-app/views/costCodeDetailed/list.gsp @ 633

Last change on this file since 633 was 633, checked in by gav, 14 years ago

Domain change: Add PurchasingGroup?.
Logic and views to suite.

File size: 3.4 KB
Line 
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>CostCode List</title>
8        <nav:resources override="true"/>
9    </head>
10    <body>
11        <div class="nav">
12            <nav:renderSubItems group="navAlt"/>
13        </div>
14        <div class="body">
15            <g:render template="/shared/messages" />
16            <div class="list">
17                <table>
18                    <thead>
19                        <tr>
20                       
21                                <g:sortableColumn property="id" title="Id" />
22                       
23                                <g:sortableColumn property="name" title="Name" />
24                       
25                            <g:sortableColumn property="purchasingGroup" title="Group" />
26                       
27                                <g:sortableColumn property="description" title="Description" />
28                       
29                                <g:sortableColumn property="isActive" title="Is Active" />
30
31                            <th></th>
32                       
33                        </tr>
34                    </thead>
35                    <tbody>
36                    <g:each in="${costCodeInstanceList}" status="i" var="costCodeInstance">
37                        <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"/>
38                       
39                            <td onclick='window.location = "${request.getContextPath()}/costCodeDetailed/show/${costCodeInstance.id}"'>
40                                ${fieldValue(bean:costCodeInstance, field:'id')}
41                            </td>
42                       
43                            <td onclick='window.location = "${request.getContextPath()}/costCodeDetailed/show/${costCodeInstance.id}"'>
44                                ${fieldValue(bean:costCodeInstance, field:'name')}
45                            </td>
46                       
47                            <td onclick='window.location = "${request.getContextPath()}/costCodeDetailed/show/${costCodeInstance.id}"'>
48                                ${fieldValue(bean:costCodeInstance, field:'purchasingGroup')}
49                            </td>
50                       
51                            <td onclick='window.location = "${request.getContextPath()}/costCodeDetailed/show/${costCodeInstance.id}"'>
52                                ${fieldValue(bean:costCodeInstance, field:'description')}
53                            </td>
54                       
55                            <td onclick='window.location = "${request.getContextPath()}/costCodeDetailed/show/${costCodeInstance.id}"'>
56                                ${fieldValue(bean:costCodeInstance, field:'isActive')}
57                            </td>
58
59                            <td class="notClickable">
60                                <g:link action="show" id="${costCodeInstance.id}">
61                                    <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" />
62                                </g:link>
63                            </td>
64                       
65                        </tr>
66                    </g:each>
67                    </tbody>
68                </table>
69            </div>
70            <div class="paginateButtons">
71                <g:paginate total="${costCodeInstanceTotal}" />
72            </div>
73        </div>
74    </body>
75</html>
Note: See TracBrowser for help on using the repository browser.