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/edit.gsp

    r178 r268  
    4949                            <tr class="prop">
    5050                                <td valign="top" class="name">
    51                                     <label for="costCode">Cost Code:</label>
    52                                 </td>
    53                                 <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'costCode','errors')}">
    54                                     <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:siteInstance,field:'costCode')}"/>
    55                                 </td>
    56                             </tr>
    57                        
    58                             <tr class="prop">
    59                                 <td valign="top" class="name">
    60                                     <label for="inventoryStores">Inventory Stores:</label>
    61                                 </td>
    62                                 <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'inventoryStores','errors')}">
    63                                    
    64 <ul>
    65 <g:each var="i" in="${siteInstance?.inventoryStores?}">
    66     <li><g:link controller="inventoryStore" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>
    67 </g:each>
    68 </ul>
    69 <g:link controller="inventoryStore" params="['site.id':siteInstance?.id]" action="create">Add InventoryStore</g:link>
    70 
    71                                 </td>
    72                             </tr>
    73                        
    74                             <tr class="prop">
    75                                 <td valign="top" class="name">
    7651                                    <label for="isActive">Is Active:</label>
    7752                                </td>
     
    8358                            <tr class="prop">
    8459                                <td valign="top" class="name">
    85                                     <label for="systemSections">System Sections:</label>
     60                                    <label for="sections">Sections:</label>
    8661                                </td>
    87                                 <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'systemSections','errors')}">
     62                                <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'sections','errors')}">
    8863                                   
    8964<ul>
    90 <g:each var="s" in="${siteInstance?.systemSections?}">
    91     <li><g:link controller="systemSection" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
     65<g:each var="s" in="${siteInstance?.sections?}">
     66    <li><g:link controller="section" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
    9267</g:each>
    9368</ul>
    94 <g:link controller="systemSection" params="['site.id':siteInstance?.id]" action="create">Add SystemSection</g:link>
     69<g:link controller="section" params="['site.id':siteInstance?.id]" action="create">Add Section</g:link>
     70
     71                                </td>
     72                            </tr>
     73                       
     74                            <tr class="prop">
     75                                <td valign="top" class="name">
     76                                    <label for="siteExtendedAttributes">Site Extended Attributes:</label>
     77                                </td>
     78                                <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'siteExtendedAttributes','errors')}">
     79                                   
     80<ul>
     81<g:each var="s" in="${siteInstance?.siteExtendedAttributes?}">
     82    <li><g:link controller="siteExtendedAttribute" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
     83</g:each>
     84</ul>
     85<g:link controller="siteExtendedAttribute" params="['site.id':siteInstance?.id]" action="create">Add SiteExtendedAttribute</g:link>
    9586
    9687                                </td>
Note: See TracChangeset for help on using the changeset viewer.