source: trunk/grails-app/views/pictureDetailed/list.gsp @ 182

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

Add support for inventory item Pictures and Images.
Add new PersonService, refactor CreateDataService and TaskService to suite.

File size: 3.2 KB
Line 
1<html>
2    <head>
3        <meta name="layout" content="main" />
4        <title>Picture List</title>
5        <nav:resources override="true"/>
6        <g:render template="/shared/pictureHead" />
7    </head>
8    <body>
9        <div class="nav">
10            <h1>Picture List</h1>
11        </div>
12        <div class="body">
13            <g:render template="/shared/messages" />
14            <div class="list">
15                <table>
16                    <thead>
17                        <tr>
18                            <th>Picture</th>
19                            <g:sortableColumn property="inventoryItem" title="Inventory Item" />
20                            <g:sortableColumn property="dateCreated" title="Date Created" />
21                            <g:sortableColumn property="lastUpdated" title="Last Updated" />
22                            <th></th>
23                        </tr>
24                    </thead>
25                    <tbody>
26                        <g:each in="${list}" status="i" var="picture">
27                            <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}">
28                                <td class='gallery'>
29                                    <wa:pictureLightboxAnchor picture="${picture}"
30                                                                                        size="${Image.Small}"
31                                                                                        lightboxSize="${Image.Large}"
32                                                                                        target="_blank" title="Show Original" />
33                                </td>
34
35                                <td onclick='window.location = "${request.getContextPath()}/pictureDetailed/show/${picture.id}"' >
36                                    <g:link controller="inventoryItemDetailed" action="show" id="${picture.inventoryItem?.id}" title="Show Inventory Item">
37                                        ${picture.inventoryItem?.toString()?.encodeAsHTML()}
38                                    </g:link>
39                                </td>
40
41                                <td onclick='window.location = "${request.getContextPath()}/pictureDetailed/show/${picture.id}"' >
42                                    <g:formatDate format="EEE, dd-MMM-yyyy" date="${picture.dateCreated}"/>
43                                </td>
44
45                                <td onclick='window.location = "${request.getContextPath()}/pictureDetailed/show/${picture.id}"' >
46                                    <g:formatDate format="EEE, dd-MMM-yyyy" date="${picture.lastUpdated}"/>
47                                </td>
48
49                                <td>
50                                    <g:link action="show" id="${picture.id}">
51                                        <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" />
52                                    </g:link>
53                                </td>
54                            </tr>
55                        </g:each>
56                    </tbody>
57                </table>
58            </div>
59            <div class="paginateButtons">
60                <g:paginate total="${paginateCount}" />
61            </div>
62        </div>
63    </body>
64</html>
Note: See TracBrowser for help on using the repository browser.