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>AssetSubItem 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="navAlt"/> |
---|
15 | </div> |
---|
16 | <div class="body"> |
---|
17 | <g:render template="/shared/messages" /> |
---|
18 | |
---|
19 | <filterpane:currentCriteria domainBean="AssetSubItem" |
---|
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: ${assetSubItemInstanceList.size()} / ${assetSubItemInstanceTotal} |
---|
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 | </tbody> |
---|
61 | </table> |
---|
62 | </div> |
---|
63 | </g:form> |
---|
64 | <export:formats params="${filterParams}" formats="['csv', 'excel', 'pdf', 'rtf']"/> |
---|
65 | </div> |
---|
66 | |
---|
67 | <br /> |
---|
68 | |
---|
69 | <g:if test="${assetSubItemInstanceList.size() > 10}"> |
---|
70 | <g:if test="${assetSubItemInstanceTotal > assetSubItemInstanceList.size()}"> |
---|
71 | <div class="paginateButtons"> |
---|
72 | <g:paginate total="${assetSubItemInstanceTotal}" params="${filterParams}" /> |
---|
73 | </div> |
---|
74 | </g:if> |
---|
75 | </g:if> |
---|
76 | |
---|
77 | <div class="list"> |
---|
78 | <table> |
---|
79 | <thead> |
---|
80 | <tr> |
---|
81 | |
---|
82 | <g:sortableColumn property="id" title="Id" params="${filterParams}" /> |
---|
83 | |
---|
84 | <g:sortableColumn property="name" title="Name" params="${filterParams}" /> |
---|
85 | |
---|
86 | <g:sortableColumn property="description" title="Description" params="${filterParams}" /> |
---|
87 | |
---|
88 | <g:sortableColumn property="isActive" title="Is Active" params="${filterParams}" /> |
---|
89 | |
---|
90 | <th></th> |
---|
91 | |
---|
92 | </tr> |
---|
93 | </thead> |
---|
94 | <tbody> |
---|
95 | <g:each in="${assetSubItemInstanceList}" status="i" var="assetSubItemInstance"> |
---|
96 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/assetSubItemDetailed/show/${assetSubItemInstance.id}"'/> |
---|
97 | |
---|
98 | <td>${fieldValue(bean:assetSubItemInstance, field:'id')}</td> |
---|
99 | |
---|
100 | <td>${fieldValue(bean:assetSubItemInstance, field:'name')}</td> |
---|
101 | |
---|
102 | <td>${fieldValue(bean:assetSubItemInstance, field:'description')}</td> |
---|
103 | |
---|
104 | <td>${fieldValue(bean:assetSubItemInstance, field:'isActive')}</td> |
---|
105 | |
---|
106 | <td> |
---|
107 | <g:link action="show" id="${assetSubItemInstance.id}"> |
---|
108 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
109 | </g:link> |
---|
110 | </td> |
---|
111 | |
---|
112 | </tr> |
---|
113 | </g:each> |
---|
114 | </tbody> |
---|
115 | </table> |
---|
116 | </div> |
---|
117 | <div class="paginateButtons"> |
---|
118 | <g:paginate total="${assetSubItemInstanceTotal}" params="${filterParams}" /> |
---|
119 | </div> |
---|
120 | |
---|
121 | <filterpane:filterPane domainBean="AssetSubItem" |
---|
122 | title="Search" |
---|
123 | action="search" |
---|
124 | class="overlayPane" |
---|
125 | excludeProperties="" /> |
---|
126 | </div> <!-- end body div --> |
---|
127 | </body> |
---|
128 | </html> |
---|