Changeset 468 for trunk/grails-app/views
- Timestamp:
- Mar 30, 2010, 10:01:10 PM (15 years ago)
- Location:
- trunk/grails-app/views
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/inventoryItemDetailed/search.gsp
r450 r468 25 25 26 26 <div class="paginateButtons"> 27 <span class="searchButtons"> 28 <a href='' onclick="showElement('searchPane'); return false;">Quick</a> 29 </span> 27 30 Results: ${inventoryItemInstanceList.size()} / ${inventoryItemInstanceTotal} 28 31 <span class="searchButtons"> … … 102 105 </g:if> 103 106 104 <div class="list"> 105 <table> 106 <thead> 107 <tr> 108 109 <th>Picture</th> 110 111 <g:sortableColumn property="name" title="Name" params="${filterParams}" /> 112 113 <g:sortableColumn property="description" title="Description" params="${filterParams}" /> 114 115 <g:sortableColumn property="unitsInStock" title="Units In Stock" params="${filterParams}" /> 116 117 <th>Unit Of Measure</th> 118 119 <th></th> 120 121 </tr> 122 </thead> 123 <tbody> 124 <g:each in="${inventoryItemInstanceList}" status="i" var="inventoryItemInstance"> 125 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" /> 126 127 <td class='gallery'> 128 <g:if test="${inventoryItemInstance.picture}" > 129 <wa:pictureLightboxAnchor picture="${inventoryItemInstance.picture}" 130 size="${Image.Small}" 131 lightboxSize="${Image.Large}" 132 target="_blank" 133 title="Show Original" /> 134 </g:if> 135 </td> 136 137 <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' > 138 ${fieldValue(bean:inventoryItemInstance, field:'name')} 139 </td> 140 141 <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' > 142 ${fieldValue(bean:inventoryItemInstance, field:'description')} 143 </td> 144 145 <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' > 146 ${fieldValue(bean:inventoryItemInstance, field:'unitsInStock')} 147 </td> 148 149 <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' > 150 ${fieldValue(bean:inventoryItemInstance, field:'unitOfMeasure')} 151 </td> 152 153 <td> 154 <g:link action="show" id="${inventoryItemInstance.id}"> 155 <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> 156 </g:link> 157 </td> 158 159 </tr> 160 </g:each> 161 </tbody> 162 </table> 163 </div> 107 <g:if test="${inventoryItemInstanceList.size() > 0}"> 108 <div class="list"> 109 <table> 110 <thead> 111 <tr> 112 113 <th>Picture</th> 114 115 <g:sortableColumn property="name" title="Name" params="${filterParams}" /> 116 117 <g:sortableColumn property="description" title="Description" params="${filterParams}" /> 118 119 <g:sortableColumn property="unitsInStock" title="Units In Stock" params="${filterParams}" /> 120 121 <th>Unit Of Measure</th> 122 123 <th></th> 124 125 </tr> 126 </thead> 127 <tbody> 128 <g:each in="${inventoryItemInstanceList}" status="i" var="inventoryItemInstance"> 129 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" /> 130 131 <td class='gallery'> 132 <g:if test="${inventoryItemInstance.picture}" > 133 <wa:pictureLightboxAnchor picture="${inventoryItemInstance.picture}" 134 size="${Image.Small}" 135 lightboxSize="${Image.Large}" 136 target="_blank" 137 title="Show Original" /> 138 </g:if> 139 </td> 140 141 <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' > 142 ${fieldValue(bean:inventoryItemInstance, field:'name')} 143 </td> 144 145 <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' > 146 ${fieldValue(bean:inventoryItemInstance, field:'description')} 147 </td> 148 149 <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' > 150 ${fieldValue(bean:inventoryItemInstance, field:'unitsInStock')} 151 </td> 152 153 <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' > 154 ${fieldValue(bean:inventoryItemInstance, field:'unitOfMeasure')} 155 </td> 156 157 <td> 158 <g:link action="show" id="${inventoryItemInstance.id}"> 159 <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> 160 </g:link> 161 </td> 162 163 </tr> 164 </g:each> 165 </tbody> 166 </table> 167 </div> 168 </g:if> 164 169 <div class="paginateButtons"> 165 170 <g:paginate total="${inventoryItemInstanceTotal}" params="${filterParams}" /> … … 182 187 ]}"/> 183 188 </div> <!-- end body div --> 189 190 <!-- Start Search Pane --> 191 <div class="overlayPane" id="searchPane" style="display:none;"> 192 <h2>Quick Search</h2> 193 <g:form method="post" id="searchForm" name="searchForm" > 194 <table> 195 <tbody> 196 197 <tr class="prop"> 198 <td valign="top" class="name"> 199 <label>Links:</label> 200 </td> 201 <td valign="top" class="value"> 202 <g:link controller="inventoryItemPurchaseDetailed" 203 action="search"> 204 Purchases 205 </g:link> 206 <br /> 207 </td> 208 </tr> 209 210 </tbody> 211 </table> 212 <div class="buttons"> 213 <span class="button"> 214 <input type="button" value="${g.message(code:'fp.tag.filterPane.button.cancel.text', default:'Cancel')}" onclick="return hideElement('searchPane');" /> 215 </span> 216 </div> 217 </g:form> 218 </div> <!-- end search pane --> 219 184 220 </body> 185 221 </html>
Note: See TracChangeset
for help on using the changeset viewer.