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 | Results: ${assetInstanceList.size()} / ${assetInstanceTotal} |
---|
28 | <span class="searchButtons"> |
---|
29 | <filterpane:filterButton text="Search" appliedText="Change Search" /> |
---|
30 | </span> |
---|
31 | </div> |
---|
32 | |
---|
33 | <jsUtil:toggleControl toggleId="options" |
---|
34 | imageId="optionsImg" |
---|
35 | closedImgUrl="${resource(dir:'images/skin',file:'bullet_arrow_right.png')}" |
---|
36 | openImgUrl="${resource(dir:'images/skin',file:'bullet_arrow_down.png')}" |
---|
37 | text="${g.message(code: 'default.options.text')}" |
---|
38 | /> |
---|
39 | |
---|
40 | <div id="options" style="display:none;"> |
---|
41 | <g:form method="post" > |
---|
42 | <g:hiddenField name="params" value="${filterParams}" /> |
---|
43 | <div class="dialog"> |
---|
44 | <table> |
---|
45 | <tbody> |
---|
46 | |
---|
47 | <tr class="prop"> |
---|
48 | <td valign="top" class="name"> |
---|
49 | <label for="max">Results per page:</label> |
---|
50 | </td> |
---|
51 | <td valign="top" class="value"> |
---|
52 | <input type="text" maxlength="4" id="description" name="newMax" value="${params.max}"/> |
---|
53 | |
---|
54 | <span class="buttons"> |
---|
55 | <g:actionSubmit action="setSearchParamsMax" class="go" value="Update" /> |
---|
56 | </span> |
---|
57 | </td> |
---|
58 | </tr> |
---|
59 | |
---|
60 | <tr class="prop"> |
---|
61 | <td valign="top" class="name"> |
---|
62 | <label for="max">Asset Tree:</label> |
---|
63 | </td> |
---|
64 | <td valign="top" class="value"> |
---|
65 | <g:link action="exportAssetTree"> |
---|
66 | Export |
---|
67 | </g:link> |
---|
68 | / |
---|
69 | <g:link action="exportAssetTreeTemplate"> |
---|
70 | Template |
---|
71 | </g:link> |
---|
72 | / |
---|
73 | <g:link action="importAssetTree"> |
---|
74 | Import |
---|
75 | </g:link> |
---|
76 | </td> |
---|
77 | </tr> |
---|
78 | |
---|
79 | </tbody> |
---|
80 | </table> |
---|
81 | </div> |
---|
82 | </g:form> |
---|
83 | <export:formats params="${filterParams}" formats="['csv', 'excel', 'pdf', 'rtf']"/> |
---|
84 | </div> |
---|
85 | |
---|
86 | <br /> |
---|
87 | |
---|
88 | <g:if test="${assetInstanceList.size() > 10}"> |
---|
89 | <g:if test="${assetInstanceTotal > assetInstanceList.size()}"> |
---|
90 | <div class="paginateButtons"> |
---|
91 | <g:paginate total="${assetInstanceTotal}" params="${filterParams}" /> |
---|
92 | </div> |
---|
93 | </g:if> |
---|
94 | </g:if> |
---|
95 | |
---|
96 | <div class="list"> |
---|
97 | <table> |
---|
98 | <thead> |
---|
99 | <tr> |
---|
100 | |
---|
101 | <g:sortableColumn property="id" title="Id" params="${filterParams}" /> |
---|
102 | |
---|
103 | <g:sortableColumn property="name" title="Name" params="${filterParams}" /> |
---|
104 | |
---|
105 | <g:sortableColumn property="description" title="Description" params="${filterParams}" /> |
---|
106 | |
---|
107 | <g:sortableColumn property="isActive" title="Is Active" params="${filterParams}" /> |
---|
108 | |
---|
109 | <g:sortableColumn property="section" title="Section" params="${filterParams}" /> |
---|
110 | |
---|
111 | <th></th> |
---|
112 | |
---|
113 | </tr> |
---|
114 | </thead> |
---|
115 | <tbody> |
---|
116 | <g:each in="${assetInstanceList}" status="i" var="assetInstance"> |
---|
117 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/assetDetailed/show/${assetInstance.id}"'/> |
---|
118 | |
---|
119 | <td>${fieldValue(bean:assetInstance, field:'id')}</td> |
---|
120 | |
---|
121 | <td>${fieldValue(bean:assetInstance, field:'name')}</td> |
---|
122 | |
---|
123 | <td>${fieldValue(bean:assetInstance, field:'description')}</td> |
---|
124 | |
---|
125 | <td>${fieldValue(bean:assetInstance, field:'isActive')}</td> |
---|
126 | |
---|
127 | <td>${fieldValue(bean:assetInstance, field:'section')}</td> |
---|
128 | |
---|
129 | <td> |
---|
130 | <g:link action="show" id="${assetInstance.id}"> |
---|
131 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
132 | </g:link> |
---|
133 | </td> |
---|
134 | |
---|
135 | </tr> |
---|
136 | </g:each> |
---|
137 | </tbody> |
---|
138 | </table> |
---|
139 | </div> |
---|
140 | <div class="paginateButtons"> |
---|
141 | <g:paginate total="${assetInstanceTotal}" params="${filterParams}" /> |
---|
142 | </div> |
---|
143 | |
---|
144 | <filterpane:filterPane domainBean="Asset" |
---|
145 | title="Search" |
---|
146 | action="search" |
---|
147 | class="overlayPane" |
---|
148 | excludeProperties="" |
---|
149 | associatedProperties="section.name" |
---|
150 | filterPropertyValues="${['section.name':[values:Section.list()] ]}" /> |
---|
151 | </div> <!-- end body div --> |
---|
152 | </body> |
---|
153 | </html> |
---|