Ignore:
Timestamp:
Jan 22, 2010, 8:52:22 AM (15 years ago)
Author:
gav
Message:

Regenerate and svn move the following to detailed controllers and views: Department, ExtendedAttributeType, Section, Site.
Secured with ROLE_Manager and ROLE_AppAdmin for now.

Location:
trunk/grails-app/views/sectionDetailed
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/sectionDetailed/edit.gsp

    r273 r288  
    6464<ul>
    6565<g:each var="a" in="${sectionInstance?.assets?}">
    66     <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
     66    <li><g:link controller="assetDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
    6767</g:each>
    6868</ul>
    69 <g:link controller="asset" params="['section.id':sectionInstance?.id]" action="create">Add Asset</g:link>
     69<g:link controller="assetDetailed" params="['section.id':sectionInstance?.id]" action="create">Add Asset</g:link>
    7070
    7171                                </td>
     
    8989<ul>
    9090<g:each var="m" in="${sectionInstance?.maintenanceActions?}">
    91     <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
     91    <li><g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
    9292</g:each>
    9393</ul>
    94 <g:link controller="maintenanceAction" params="['section.id':sectionInstance?.id]" action="create">Add MaintenanceAction</g:link>
     94<g:link controller="maintenanceActionDetailed" params="['section.id':sectionInstance?.id]" action="create">Add MaintenanceAction</g:link>
    9595
    9696                                </td>
     
    105105<ul>
    106106<g:each var="s" in="${sectionInstance?.sectionExtendedAttributes?}">
    107     <li><g:link controller="sectionExtendedAttribute" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
     107    <li><g:link controller="sectionExtendedAttributeDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
    108108</g:each>
    109109</ul>
    110 <g:link controller="sectionExtendedAttribute" params="['section.id':sectionInstance?.id]" action="create">Add SectionExtendedAttribute</g:link>
     110<g:link controller="sectionExtendedAttributeDetailed" params="['section.id':sectionInstance?.id]" action="create">Add SectionExtendedAttribute</g:link>
    111111
    112112                                </td>
  • trunk/grails-app/views/sectionDetailed/show.gsp

    r273 r288  
    5656                                <ul>
    5757                                <g:each var="a" in="${sectionInstance.assets}">
    58                                     <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
     58                                    <li><g:link controller="assetDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
    5959                                </g:each>
    6060                                </ul>
     
    6666                            <td valign="top" class="name">Department:</td>
    6767                           
    68                             <td valign="top" class="value"><g:link controller="department" action="show" id="${sectionInstance?.department?.id}">${sectionInstance?.department?.encodeAsHTML()}</g:link></td>
     68                            <td valign="top" class="value"><g:link controller="departmentDetailed" action="show" id="${sectionInstance?.department?.id}">${sectionInstance?.department?.encodeAsHTML()}</g:link></td>
    6969                           
    7070                        </tr>
     
    7676                                <ul>
    7777                                <g:each var="m" in="${sectionInstance.maintenanceActions}">
    78                                     <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
     78                                    <li><g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
    7979                                </g:each>
    8080                                </ul>
     
    8989                                <ul>
    9090                                <g:each var="s" in="${sectionInstance.sectionExtendedAttributes}">
    91                                     <li><g:link controller="sectionExtendedAttribute" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
     91                                    <li><g:link controller="sectionExtendedAttributeDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
    9292                                </g:each>
    9393                                </ul>
     
    9999                            <td valign="top" class="name">Site:</td>
    100100                           
    101                             <td valign="top" class="value"><g:link controller="site" action="show" id="${sectionInstance?.site?.id}">${sectionInstance?.site?.encodeAsHTML()}</g:link></td>
     101                            <td valign="top" class="value"><g:link controller="siteDetailed" action="show" id="${sectionInstance?.site?.id}">${sectionInstance?.site?.encodeAsHTML()}</g:link></td>
    102102                           
    103103                        </tr>
Note: See TracChangeset for help on using the changeset viewer.