Ignore:
Timestamp:
Oct 22, 2009, 8:26:09 PM (15 years ago)
Author:
gav
Message:

Add Department domain class, controller, views and demo data.
Add costCode and department attributes to SystemSection? and regen non-detailed controller and views, adjust detailed views to suite.

File:
1 edited

Legend:

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

    r151 r162  
    3131                   
    3232                        <tr class="prop">
    33                             <td valign="top" class="name">Assets:</td>
     33                            <td valign="top" class="name">Name:</td>
    3434                           
    35                             <td  valign="top" style="text-align:left;" class="value">
    36                                 <ul>
    37                                 <g:each var="a" in="${systemSectionInstance.assets}">
    38                                     <li><g:link controller="assetDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
    39                                 </g:each>
    40                                 </ul>
    41                             </td>
     35                            <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'name')}</td>
    4236                           
    4337                        </tr>
     
    5145                   
    5246                        <tr class="prop">
     47                            <td valign="top" class="name">Cost Code:</td>
     48                           
     49                            <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'costCode')}</td>
     50                           
     51                        </tr>
     52                   
     53                        <tr class="prop">
     54                            <td valign="top" class="name">Department:</td>
     55                           
     56                            <td valign="top" class="value"><g:link controller="department" action="show" id="${systemSectionInstance?.department?.id}">${systemSectionInstance?.department?.encodeAsHTML()}</g:link></td>
     57                           
     58                        </tr>
     59                   
     60                        <tr class="prop">
     61                            <td valign="top" class="name">Site:</td>
     62                           
     63                            <td valign="top" class="value"><g:link controller="site" action="show" id="${systemSectionInstance?.site?.id}">${systemSectionInstance?.site?.encodeAsHTML()}</g:link></td>
     64                           
     65                        </tr>
     66                   
     67                        <tr class="prop">
    5368                            <td valign="top" class="name">Is Active:</td>
    5469                           
    5570                            <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'isActive')}</td>
     71                           
     72                        </tr>
     73                   
     74                        <tr class="prop">
     75                            <td valign="top" class="name">Assets:</td>
     76                           
     77                            <td  valign="top" style="text-align:left;" class="value">
     78                                <ul>
     79                                <g:each var="a" in="${systemSectionInstance.assets}">
     80                                    <li><g:link controller="assetDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
     81                                </g:each>
     82                                </ul>
     83                            </td>
    5684                           
    5785                        </tr>
     
    7098                        </tr>
    7199                   
    72                         <tr class="prop">
    73                             <td valign="top" class="name">Name:</td>
    74                            
    75                             <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'name')}</td>
    76                            
    77                         </tr>
    78                    
    79                         <tr class="prop">
    80                             <td valign="top" class="name">Site:</td>
    81                            
    82                             <td valign="top" class="value"><g:link controller="site" action="show" id="${systemSectionInstance?.site?.id}">${systemSectionInstance?.site?.encodeAsHTML()}</g:link></td>
    83                            
    84                         </tr>
    85                    
    86100                    </tbody>
    87101                </table>
Note: See TracChangeset for help on using the changeset viewer.