[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"> |
---|
| 97 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/assetSubItemDetailed/show/${assetSubItemInstance.id}"'/> |
---|
| 98 | |
---|
| 99 | <td>${fieldValue(bean:assetSubItemInstance, field:'id')}</td> |
---|
[336] | 100 | |
---|
[467] | 101 | <td>${fieldValue(bean:assetSubItemInstance, field:'name')}</td> |
---|
[336] | 102 | |
---|
[467] | 103 | <td>${fieldValue(bean:assetSubItemInstance, field:'description')}</td> |
---|
[336] | 104 | |
---|
[467] | 105 | <td>${fieldValue(bean:assetSubItemInstance, field:'isActive')}</td> |
---|
[336] | 106 | |
---|
[467] | 107 | <td> |
---|
| 108 | <g:link action="show" id="${assetSubItemInstance.id}"> |
---|
| 109 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
| 110 | </g:link> |
---|
| 111 | </td> |
---|
| 112 | |
---|
| 113 | </tr> |
---|
| 114 | </g:each> |
---|
| 115 | </tbody> |
---|
| 116 | </table> |
---|
| 117 | </div> |
---|
| 118 | </g:if> |
---|
[336] | 119 | <div class="paginateButtons"> |
---|
| 120 | <g:paginate total="${assetSubItemInstanceTotal}" params="${filterParams}" /> |
---|
| 121 | </div> |
---|
| 122 | |
---|
| 123 | <filterpane:filterPane domainBean="AssetSubItem" |
---|
| 124 | title="Search" |
---|
| 125 | action="search" |
---|
| 126 | class="overlayPane" |
---|
| 127 | excludeProperties="" /> |
---|
| 128 | </div> <!-- end body div --> |
---|
| 129 | </body> |
---|
| 130 | </html> |
---|