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