source: branches/features/grailsUpgrade/grails-app/views/taskProcedureDetailed/list.gsp @ 886

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

Fix null pointer bug in TaskProcedure list view.
Does not appear affect Grails-1.2.2.

File size: 3.3 KB
RevLine 
[133]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>TaskProcedure List</title>
[147]8        <filterpane:includes />
9        <nav:resources override="true"/>
[133]10    </head>
11    <body>
12        <div class="nav">
[147]13            <nav:renderSubItems group="navAlt"/>
[133]14        </div>
15        <div class="body">
[809]16            <g:render template="/shared/messages" />
[155]17            <filterpane:currentCriteria domainBean="TaskProcedure"
[147]18                                    action="list"
[450]19                                    dateFormat="EEE, dd-MMM-yyyy"
[147]20                                    removeImgDir="images"
21                                    removeImgFile="bullet_delete.png"
22                                    title="Search"/>
[155]23
24            <div class="paginateButtons">
[221]25                <span class="searchButtons">
26                    <filterpane:filterButton text="Search" appliedText="Change Search" />
27                </span>
[467]28                Results: ${taskProcedureInstanceList.size()} / ${taskProcedureInstanceTotal}
[155]29            </div>
30
[147]31
[467]32            <g:if test="${taskProcedureInstanceList.size() > 0}">
33                <div class="list">
34                    <table>
35                        <thead>
36                            <tr>
[798]37
[886]38                                <g:sortableColumn property="id" title="Id" params="${filterParams}" />
[798]39                                <th>Description</th>
40                                <th>Asset</th>
[147]41
[467]42                                <th></th>
[798]43
[467]44                            </tr>
45                        </thead>
46                        <tbody>
47                        <g:each in="${taskProcedureInstanceList}" status="i" var="taskProcedureInstance">
48                            <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/taskProcedureDetailed/show/${taskProcedureInstance.id}"'/>
[798]49
[467]50                                <td>${fieldValue(bean:taskProcedureInstance, field:'id')}</td>
[798]51
52                                <td>${taskProcedureInstance.description.encodeAsHTML()}</td>
53
54                                <td>${taskProcedureInstance.asset?.encodeAsHTML()}</td>
55
[467]56                                <td>
57                                    <g:link action="show" id="${taskProcedureInstance.id}">
58                                        <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" />
59                                    </g:link>
60                                </td>
[798]61
[467]62                            </tr>
63                        </g:each>
64                        </tbody>
65                    </table>
66                </div>
67            </g:if>
68
[133]69            <div class="paginateButtons">
[147]70                <g:paginate total="${taskProcedureInstanceTotal}" params="${filterParams}" />
[133]71            </div>
[147]72
73            <filterpane:filterPane domainBean="TaskProcedure"
74                                    title="Search"
75                                    action="list"
[155]76                                    class="overlayPane"
[798]77                                    additionalProperties="id"
78                                    excludeProperties=""
79                                    associatedProperties="linkedTask.description" />
[133]80        </div>
81    </body>
82</html>
Note: See TracBrowser for help on using the repository browser.