Ignore:
Timestamp:
Jan 15, 2010, 11:37:52 AM (14 years ago)
Author:
gav
Message:

Regenerate asset views and detail views to suite.
Add CsvService, import and copy functions with appropriate messages and gsp's.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/assetDetailed/search.gsp

    r221 r271  
    88        <nav:resources override="true"/>
    99        <filterpane:includes />
     10        <export:resource />
    1011    </head>
    1112    <body>
     
    3940
    4041                             <g:sortableColumn property="name" title="Name" params="${filterParams}" />
    41 
    42                              <g:sortableColumn property="assetType" title="Asset Type" params="${filterParams}" />
    4342                       
    44                                 <g:sortableColumn property="systemSection" title="System Section" params="${filterParams}" />
     43                            <g:sortableColumn property="description" title="Description" params="${filterParams}" />
    4544
    4645                            <g:sortableColumn property="isActive" title="Is Active" params="${filterParams}" />
     46                       
     47                            <g:sortableColumn property="section" title="Section" params="${filterParams}" />
    4748
    4849                            <th></th>
     
    5859                            <td>${fieldValue(bean:assetInstance, field:'name')}</td>                       
    5960
    60                             <td>${fieldValue(bean:assetInstance, field:'assetType')}</td>
    61 
    62                             <td>${fieldValue(bean:assetInstance, field:'systemSection')}</td>
     61                            <td>${fieldValue(bean:assetInstance, field:'description')}</td>
    6362
    6463                            <td>${fieldValue(bean:assetInstance, field:'isActive')}</td>
     64
     65                            <td>${fieldValue(bean:assetInstance, field:'section')}</td>
    6566
    6667                            <td>
     
    7879                <g:paginate total="${assetInstanceTotal}" params="${filterParams}" />
    7980            </div>
     81            <export:formats  params="${filterParams}" formats="['csv', 'excel', 'pdf', 'rtf']"/>
     82            <br />
     83            Asset Tree:
     84            <g:link action="exportAssetTree">
     85                Export
     86            </g:link>
     87            /
     88            <g:link action="exportAssetTreeTemplate">
     89                Template
     90            </g:link>
     91            /
     92            <g:link action="importAssetTree">
     93                Import
     94            </g:link>
    8095
    8196            <filterpane:filterPane domainBean="Asset"
     
    8499                                    class="overlayPane"
    85100                                    excludeProperties=""
    86                                     associatedProperties="systemSection.name, assetType.name"
    87                                     filterPropertyValues="${['systemSection.name':[values:SystemSection.list()],
    88                                                                         'assetType.name':[values:AssetType.list()] ]}" />
     101                                    associatedProperties="section.name"
     102                                    filterPropertyValues="${['section.name':[values:Section.list()] ]}" />
    89103        </div> <!-- end body div -->
    90104    </body>
Note: See TracChangeset for help on using the changeset viewer.