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

    r178 r268  
    55        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    66        <meta name="layout" content="main" />
    7         <title>Show SystemSection</title>
     7        <title>Show Section</title>
    88    </head>
    99    <body>
    1010        <div class="nav">
    11             <span class="menuButton"><g:link class="list" action="list">SystemSection List</g:link></span>
    12             <span class="menuButton"><g:link class="create" action="create">New SystemSection</g:link></span>
     11            <span class="menuButton"><g:link class="list" action="list">Section List</g:link></span>
     12            <span class="menuButton"><g:link class="create" action="create">New Section</g:link></span>
    1313        </div>
    1414        <div class="body">
    15             <h1>Show SystemSection</h1>
     15            <h1>Show Section</h1>
    1616            <g:if test="${flash.message}">
    1717            <div class="message">${flash.message}</div>
     
    2525                            <td valign="top" class="name">Id:</td>
    2626                           
    27                             <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'id')}</td>
     27                            <td valign="top" class="value">${fieldValue(bean:sectionInstance, field:'id')}</td>
     28                           
     29                        </tr>
     30                   
     31                        <tr class="prop">
     32                            <td valign="top" class="name">Name:</td>
     33                           
     34                            <td valign="top" class="value">${fieldValue(bean:sectionInstance, field:'name')}</td>
     35                           
     36                        </tr>
     37                   
     38                        <tr class="prop">
     39                            <td valign="top" class="name">Description:</td>
     40                           
     41                            <td valign="top" class="value">${fieldValue(bean:sectionInstance, field:'description')}</td>
     42                           
     43                        </tr>
     44                   
     45                        <tr class="prop">
     46                            <td valign="top" class="name">Is Active:</td>
     47                           
     48                            <td valign="top" class="value">${fieldValue(bean:sectionInstance, field:'isActive')}</td>
    2849                           
    2950                        </tr>
     
    3455                            <td  valign="top" style="text-align:left;" class="value">
    3556                                <ul>
    36                                 <g:each var="a" in="${systemSectionInstance.assets}">
     57                                <g:each var="a" in="${sectionInstance.assets}">
    3758                                    <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
    3859                                </g:each>
     
    4364                   
    4465                        <tr class="prop">
    45                             <td valign="top" class="name">Cost Code:</td>
    46                            
    47                             <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'costCode')}</td>
    48                            
    49                         </tr>
    50                    
    51                         <tr class="prop">
    5266                            <td valign="top" class="name">Department:</td>
    5367                           
    54                             <td valign="top" class="value"><g:link controller="department" action="show" id="${systemSectionInstance?.department?.id}">${systemSectionInstance?.department?.encodeAsHTML()}</g:link></td>
    55                            
    56                         </tr>
    57                    
    58                         <tr class="prop">
    59                             <td valign="top" class="name">Description:</td>
    60                            
    61                             <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'description')}</td>
    62                            
    63                         </tr>
    64                    
    65                         <tr class="prop">
    66                             <td valign="top" class="name">Is Active:</td>
    67                            
    68                             <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'isActive')}</td>
     68                            <td valign="top" class="value"><g:link controller="department" action="show" id="${sectionInstance?.department?.id}">${sectionInstance?.department?.encodeAsHTML()}</g:link></td>
    6969                           
    7070                        </tr>
     
    7575                            <td  valign="top" style="text-align:left;" class="value">
    7676                                <ul>
    77                                 <g:each var="m" in="${systemSectionInstance.maintenanceActions}">
     77                                <g:each var="m" in="${sectionInstance.maintenanceActions}">
    7878                                    <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
    7979                                </g:each>
     
    8484                   
    8585                        <tr class="prop">
    86                             <td valign="top" class="name">Name:</td>
     86                            <td valign="top" class="name">Section Extended Attributes:</td>
    8787                           
    88                             <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'name')}</td>
     88                            <td  valign="top" style="text-align:left;" class="value">
     89                                <ul>
     90                                <g:each var="s" in="${sectionInstance.sectionExtendedAttributes}">
     91                                    <li><g:link controller="sectionExtendedAttribute" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
     92                                </g:each>
     93                                </ul>
     94                            </td>
    8995                           
    9096                        </tr>
     
    9399                            <td valign="top" class="name">Site:</td>
    94100                           
    95                             <td valign="top" class="value"><g:link controller="site" action="show" id="${systemSectionInstance?.site?.id}">${systemSectionInstance?.site?.encodeAsHTML()}</g:link></td>
     101                            <td valign="top" class="value"><g:link controller="site" action="show" id="${sectionInstance?.site?.id}">${sectionInstance?.site?.encodeAsHTML()}</g:link></td>
    96102                           
    97103                        </tr>
     
    102108            <div class="buttons">
    103109                <g:form>
    104                     <input type="hidden" name="id" value="${systemSectionInstance?.id}" />
     110                    <input type="hidden" name="id" value="${sectionInstance?.id}" />
    105111                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
    106112                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
Note: See TracChangeset for help on using the changeset viewer.