- Timestamp:
- Feb 8, 2010, 4:30:14 AM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/AssetDetailedController.groovy
r325 r326 16 16 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser']) 17 17 def index = { redirect(action:search,params:params) } 18 19 /** 20 * Set session.assetSearchParamsMax 21 */ 22 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser']) 23 def setSearchParamsMax = { 24 def max = 1000 25 if(params.newMax.isInteger()) { 26 def i = params.newMax.toInteger() 27 if(i > 0 && i <= max) 28 session.assetSearchParamsMax = params.newMax 29 if(i > max) 30 session.assetSearchParamsMax = max 31 } 32 forward(action: 'search', params: params) 33 } 18 34 19 35 /** … … 167 183 168 184 response.contentType = ConfigurationHolder.config.grails.mime.types[params.format] 169 response.setHeader("Content-disposition", "attachment; filename= tasks.${params.extension}")185 response.setHeader("Content-disposition", "attachment; filename=assets.${params.extension}") 170 186 List fields = ["section.site", 171 187 "section", -
trunk/grails-app/controllers/TaskDetailedController.groovy
r298 r326 26 26 27 27 @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser']) 28 def set TaskSearchParamsMax = {28 def setSearchParamsMax = { 29 29 def max = 1000 30 30 if(params.newMax.isInteger()) { -
trunk/grails-app/views/assetDetailed/search.gsp
r284 r326 25 25 26 26 <div class="paginateButtons"> 27 Results: ${assetInstanceList.size()} / ${assetInstanceTotal} 27 28 <span class="searchButtons"> 28 29 <filterpane:filterButton text="Search" appliedText="Change Search" /> 29 30 </span> 30 Results:${assetInstanceTotal}31 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 <div class="paginateButtons"> 90 <g:paginate total="${assetInstanceTotal}" params="${filterParams}" /> 91 </div> 92 </g:if> 32 93 33 94 <div class="list"> … … 78 139 <g:paginate total="${assetInstanceTotal}" params="${filterParams}" /> 79 140 </div> 80 <export:formats params="${filterParams}" formats="['csv', 'excel', 'pdf', 'rtf']"/>81 <br />82 Asset Tree:83 <g:link action="exportAssetTree">84 Export85 </g:link>86 /87 <g:link action="exportAssetTreeTemplate">88 Template89 </g:link>90 /91 <g:link action="importAssetTree">92 Import93 </g:link>94 141 95 142 <filterpane:filterPane domainBean="Asset" -
trunk/grails-app/views/taskDetailed/search.gsp
r324 r326 64 64 65 65 <span class="buttons"> 66 <g:actionSubmit action="set TaskSearchParamsMax" class="go" value="Update" />66 <g:actionSubmit action="setSearchParamsMax" class="go" value="Update" /> 67 67 </span> 68 68 </td>
Note: See TracChangeset
for help on using the changeset viewer.