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/site/show.gsp

    r178 r268  
    4444                   
    4545                        <tr class="prop">
    46                             <td valign="top" class="name">Cost Code:</td>
     46                            <td valign="top" class="name">Is Active:</td>
    4747                           
    48                             <td valign="top" class="value">${fieldValue(bean:siteInstance, field:'costCode')}</td>
     48                            <td valign="top" class="value">${fieldValue(bean:siteInstance, field:'isActive')}</td>
    4949                           
    5050                        </tr>
    5151                   
    5252                        <tr class="prop">
    53                             <td valign="top" class="name">Inventory Stores:</td>
     53                            <td valign="top" class="name">Sections:</td>
    5454                           
    5555                            <td  valign="top" style="text-align:left;" class="value">
    5656                                <ul>
    57                                 <g:each var="i" in="${siteInstance.inventoryStores}">
    58                                     <li><g:link controller="inventoryStore" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>
     57                                <g:each var="s" in="${siteInstance.sections}">
     58                                    <li><g:link controller="section" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
    5959                                </g:each>
    6060                                </ul>
     
    6464                   
    6565                        <tr class="prop">
    66                             <td valign="top" class="name">Is Active:</td>
    67                            
    68                             <td valign="top" class="value">${fieldValue(bean:siteInstance, field:'isActive')}</td>
    69                            
    70                         </tr>
    71                    
    72                         <tr class="prop">
    73                             <td valign="top" class="name">System Sections:</td>
     66                            <td valign="top" class="name">Site Extended Attributes:</td>
    7467                           
    7568                            <td  valign="top" style="text-align:left;" class="value">
    7669                                <ul>
    77                                 <g:each var="s" in="${siteInstance.systemSections}">
    78                                     <li><g:link controller="systemSection" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
     70                                <g:each var="s" in="${siteInstance.siteExtendedAttributes}">
     71                                    <li><g:link controller="siteExtendedAttribute" 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.