source: trunk/grails-app/views/assetDetailed/search.gsp @ 284

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

Move asset copy and create functions into AssetService.
Repair create links in AssetTreeTagLib.

File size: 4.2 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>Asset Search</title>
8        <nav:resources override="true"/>
9        <filterpane:includes />
10        <export:resource />
11    </head>
12    <body>
13        <div class="nav">
14            <nav:renderSubItems group="nav"/>
15        </div>
16        <div class="body">
17            <g:render template="/shared/messages" />
18
19            <filterpane:currentCriteria domainBean="Asset"
20                                    action="search"
21                                    dateFormat="${'EEE, dd-MMM-yyyy'}"
22                                    removeImgDir="images"
23                                    removeImgFile="bullet_delete.png"
24                                    title="Search"/>
25
26            <div class="paginateButtons">
27                <span class="searchButtons">
28                    <filterpane:filterButton text="Search" appliedText="Change Search" />
29                </span>
30                Results:${assetInstanceTotal}
31            </div>
32
33            <div class="list">
34                <table>
35                    <thead>
36                        <tr>
37                       
38                                <g:sortableColumn property="id" title="Id" params="${filterParams}" />
39
40                             <g:sortableColumn property="name" title="Name" params="${filterParams}" />
41                       
42                            <g:sortableColumn property="description" title="Description" params="${filterParams}" />
43
44                            <g:sortableColumn property="isActive" title="Is Active" params="${filterParams}" />
45                       
46                            <g:sortableColumn property="section" title="Section" params="${filterParams}" />
47
48                            <th></th>
49                           
50                        </tr>
51                    </thead>
52                    <tbody>
53                    <g:each in="${assetInstanceList}" status="i" var="assetInstance">
54                        <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/assetDetailed/show/${assetInstance.id}"'/>
55                       
56                            <td>${fieldValue(bean:assetInstance, field:'id')}</td>
57
58                            <td>${fieldValue(bean:assetInstance, field:'name')}</td>                       
59
60                            <td>${fieldValue(bean:assetInstance, field:'description')}</td>
61
62                            <td>${fieldValue(bean:assetInstance, field:'isActive')}</td>
63
64                            <td>${fieldValue(bean:assetInstance, field:'section')}</td>
65
66                            <td>
67                                <g:link action="show" id="${assetInstance.id}">
68                                    <img  src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" />
69                                </g:link>
70                            </td>
71                       
72                        </tr>
73                    </g:each>
74                    </tbody>
75                </table>
76            </div>
77            <div class="paginateButtons">
78                <g:paginate total="${assetInstanceTotal}" params="${filterParams}" />
79            </div>
80            <export:formats  params="${filterParams}" formats="['csv', 'excel', 'pdf', 'rtf']"/>
81            <br />
82            Asset Tree:
83            <g:link action="exportAssetTree">
84                Export
85            </g:link>
86            /
87            <g:link action="exportAssetTreeTemplate">
88                Template
89            </g:link>
90            /
91            <g:link action="importAssetTree">
92                Import
93            </g:link>
94
95            <filterpane:filterPane domainBean="Asset"
96                                    title="Search"
97                                    action="search"
98                                    class="overlayPane"
99                                    excludeProperties=""
100                                    associatedProperties="section.name"
101                                    filterPropertyValues="${['section.name':[values:Section.list()] ]}" />
102        </div> <!-- end body div -->
103    </body>
104</html>
Note: See TracBrowser for help on using the repository browser.