Ignore:
Timestamp:
Jan 14, 2010, 10:51:03 PM (14 years ago)
Author:
gav
Message:

Refactor classes for asset tree refinement.
Regenerate views and controllers to suite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/department/show.gsp

    r178 r268  
    4444                   
    4545                        <tr class="prop">
    46                             <td valign="top" class="name">Cost Code:</td>
    47                            
    48                             <td valign="top" class="value">${fieldValue(bean:departmentInstance, field:'costCode')}</td>
    49                            
    50                         </tr>
    51                    
    52                         <tr class="prop">
    5346                            <td valign="top" class="name">Is Active:</td>
    5447                           
     
    5851                   
    5952                        <tr class="prop">
    60                             <td valign="top" class="name">Persons:</td>
     53                            <td valign="top" class="name">Department Extended Attributes:</td>
    6154                           
    6255                            <td  valign="top" style="text-align:left;" class="value">
    6356                                <ul>
    64                                 <g:each var="p" in="${departmentInstance.persons}">
    65                                     <li><g:link controller="person" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></li>
     57                                <g:each var="d" in="${departmentInstance.departmentExtendedAttributes}">
     58                                    <li><g:link controller="departmentExtendedAttribute" action="show" id="${d.id}">${d?.encodeAsHTML()}</g:link></li>
    6659                                </g:each>
    6760                                </ul>
     
    7164                   
    7265                        <tr class="prop">
    73                             <td valign="top" class="name">System Sections:</td>
     66                            <td valign="top" class="name">Sections:</td>
    7467                           
    7568                            <td  valign="top" style="text-align:left;" class="value">
    7669                                <ul>
    77                                 <g:each var="s" in="${departmentInstance.systemSections}">
    78                                     <li><g:link controller="systemSection" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
     70                                <g:each var="s" in="${departmentInstance.sections}">
     71                                    <li><g:link controller="section" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
    7972                                </g:each>
    8073                                </ul>
Note: See TracChangeset for help on using the changeset viewer.