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.

Location:
trunk/grails-app/views/site
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/site/create.gsp

    r178 r268  
    4646                            <tr class="prop">
    4747                                <td valign="top" class="name">
    48                                     <label for="costCode">Cost Code:</label>
    49                                 </td>
    50                                 <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'costCode','errors')}">
    51                                     <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:siteInstance,field:'costCode')}"/>
    52                                 </td>
    53                             </tr>
    54                        
    55                             <tr class="prop">
    56                                 <td valign="top" class="name">
    5748                                    <label for="isActive">Is Active:</label>
    5849                                </td>
  • 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>
  • trunk/grails-app/views/site/list.gsp

    r178 r268  
    2727                                <g:sortableColumn property="description" title="Description" />
    2828                       
    29                                 <g:sortableColumn property="costCode" title="Cost Code" />
    30                        
    3129                                <g:sortableColumn property="isActive" title="Is Active" />
    3230                       
     
    4341                            <td>${fieldValue(bean:siteInstance, field:'description')}</td>
    4442                       
    45                             <td>${fieldValue(bean:siteInstance, field:'costCode')}</td>
    46                        
    4743                            <td>${fieldValue(bean:siteInstance, field:'isActive')}</td>
    4844                       
  • 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.