[336] | 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"> |
---|
[369] | 14 | <nav:renderSubItems group="navAlt"/> |
---|
[336] | 15 | </div> |
---|
| 16 | <div class="body"> |
---|
| 17 | <g:render template="/shared/messages" /> |
---|
| 18 | |
---|
| 19 | <filterpane:currentCriteria domainBean="AssetSubItem" |
---|
| 20 | action="search" |
---|
[450] | 21 | dateFormat="EEE, dd-MMM-yyyy" |
---|
[336] | 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 | |
---|
[356] | 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 | |
---|
[467] | 77 | <g:if test="${assetSubItemInstanceList.size() > 0}"> |
---|
| 78 | <div class="list"> |
---|
| 79 | <table> |
---|
| 80 | <thead> |
---|
| 81 | <tr> |
---|
| 82 | |
---|
| 83 | <g:sortableColumn property="id" title="Id" params="${filterParams}" /> |
---|
[336] | 84 | |
---|
[467] | 85 | <g:sortableColumn property="name" title="Name" params="${filterParams}" /> |
---|
| 86 | |
---|
| 87 | <g:sortableColumn property="description" title="Description" params="${filterParams}" /> |
---|
[336] | 88 | |
---|
[467] | 89 | <g:sortableColumn property="isActive" title="Is Active" params="${filterParams}" /> |
---|
[336] | 90 | |
---|
[467] | 91 | <th></th> |
---|
| 92 | |
---|
| 93 | </tr> |
---|
| 94 | </thead> |
---|
| 95 | <tbody> |
---|
| 96 | <g:each in="${assetSubItemInstanceList}" status="i" var="assetSubItemInstance"> |
---|
[498] | 97 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"/> |
---|
[467] | 98 | |
---|
[498] | 99 | <td onclick='window.location = "${request.getContextPath()}/assetSubItemDetailed/show/${assetSubItemInstance.id}"'> |
---|
| 100 | ${fieldValue(bean:assetSubItemInstance, field:'id')} |
---|
| 101 | </td> |
---|
[336] | 102 | |
---|
[498] | 103 | <td onclick='window.location = "${request.getContextPath()}/assetSubItemDetailed/show/${assetSubItemInstance.id}"'> |
---|
| 104 | ${fieldValue(bean:assetSubItemInstance, field:'name')} |
---|
| 105 | </td> |
---|
[336] | 106 | |
---|
[498] | 107 | <td onclick='window.location = "${request.getContextPath()}/assetSubItemDetailed/show/${assetSubItemInstance.id}"'> |
---|
| 108 | ${fieldValue(bean:assetSubItemInstance, field:'description')} |
---|
| 109 | </td> |
---|
[336] | 110 | |
---|
[498] | 111 | <td onclick='window.location = "${request.getContextPath()}/assetSubItemDetailed/show/${assetSubItemInstance.id}"'> |
---|
| 112 | ${fieldValue(bean:assetSubItemInstance, field:'isActive')} |
---|
| 113 | </td> |
---|
[336] | 114 | |
---|
[498] | 115 | <td class="notClickable"> |
---|
[467] | 116 | <g:link action="show" id="${assetSubItemInstance.id}"> |
---|
| 117 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
| 118 | </g:link> |
---|
| 119 | </td> |
---|
| 120 | |
---|
| 121 | </tr> |
---|
| 122 | </g:each> |
---|
| 123 | </tbody> |
---|
| 124 | </table> |
---|
| 125 | </div> |
---|
| 126 | </g:if> |
---|
[336] | 127 | <div class="paginateButtons"> |
---|
| 128 | <g:paginate total="${assetSubItemInstanceTotal}" params="${filterParams}" /> |
---|
| 129 | </div> |
---|
| 130 | |
---|
| 131 | <filterpane:filterPane domainBean="AssetSubItem" |
---|
| 132 | title="Search" |
---|
| 133 | action="search" |
---|
| 134 | class="overlayPane" |
---|
| 135 | excludeProperties="" /> |
---|
| 136 | </div> <!-- end body div --> |
---|
| 137 | </body> |
---|
| 138 | </html> |
---|