Changeset 288


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
Files:
2 deleted
7 edited
12 moved

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/DepartmentDetailedController.groovy

    r287 r288  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
    3 class DepartmentController extends BaseAppAdminController {
     3@Secured(['ROLE_Manager','ROLE_AppAdmin'])
     4class DepartmentDetailedController extends BaseController {
    45   
    56    def index = { redirect(action:list,params:params) }
  • trunk/grails-app/controllers/DepartmentExtendedAttributeDetailedController.groovy

    r287 r288  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
    3 class DepartmentExtendedAttributeController extends BaseAppAdminController {
    4    
     3@Secured(['ROLE_Manager','ROLE_AppAdmin'])
     4class DepartmentExtendedAttributeDetailedController extends BaseController {
     5
    56    def index = { redirect(action:list,params:params) }
    67
  • trunk/grails-app/controllers/ExtendedAttributeTypeDetailedController.groovy

    r287 r288  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
    3 class ExtendedAttributeTypeController extends BaseAppAdminController {
     3@Secured(['ROLE_Manager','ROLE_AppAdmin'])
     4class ExtendedAttributeTypeDetailedController extends BaseController {
    45   
    56    def index = { redirect(action:list,params:params) }
  • trunk/grails-app/controllers/SectionDetailedController.groovy

    r268 r288  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
     3@Secured(['ROLE_Manager','ROLE_AppAdmin'])
    34class SectionDetailedController extends BaseController {
    45   
  • trunk/grails-app/controllers/SectionExtendedAttributeDetailedController.groovy

    r287 r288  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
    3 class SectionExtendedAttributeController extends BaseAppAdminController {
     3@Secured(['ROLE_Manager','ROLE_AppAdmin'])
     4class SectionExtendedAttributeDetailedController extends BaseController {
    45   
    56    def index = { redirect(action:list,params:params) }
  • trunk/grails-app/controllers/SiteDetailedController.groovy

    r287 r288  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
    3 class SiteController extends BaseAppAdminController {
     3@Secured(['ROLE_Manager','ROLE_AppAdmin'])
     4class SiteDetailedController extends BaseController {
    45   
    56    def index = { redirect(action:list,params:params) }
  • trunk/grails-app/controllers/SiteExtendedAttributeDetailedController.groovy

    r287 r288  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
    3 class SiteExtendedAttributeController extends BaseAppAdminController {
     3@Secured(['ROLE_Manager','ROLE_AppAdmin'])
     4class SiteExtendedAttributeDetailedController extends BaseController {
    45   
    56    def index = { redirect(action:list,params:params) }
  • trunk/grails-app/views/departmentDetailed/edit.gsp

    r272 r288  
    6464<ul>
    6565<g:each var="d" in="${departmentInstance?.departmentExtendedAttributes?}">
    66     <li><g:link controller="departmentExtendedAttribute" action="show" id="${d.id}">${d?.encodeAsHTML()}</g:link></li>
     66    <li><g:link controller="departmentExtendedAttributeDetailed" action="show" id="${d.id}">${d?.encodeAsHTML()}</g:link></li>
    6767</g:each>
    6868</ul>
    69 <g:link controller="departmentExtendedAttribute" params="['department.id':departmentInstance?.id]" action="create">Add DepartmentExtendedAttribute</g:link>
     69<g:link controller="departmentExtendedAttributeDetailed" params="['department.id':departmentInstance?.id]" action="create">Add DepartmentExtendedAttribute</g:link>
    7070
    7171                                </td>
     
    9696<ul>
    9797<g:each var="s" in="${departmentInstance?.sections?}">
    98     <li><g:link controller="section" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
     98    <li><g:link controller="sectionDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
    9999</g:each>
    100100</ul>
    101 <g:link controller="section" params="['department.id':departmentInstance?.id]" action="create">Add Section</g:link>
     101<g:link controller="sectionDetailed" params="['department.id':departmentInstance?.id]" action="create">Add Section</g:link>
    102102
    103103                                </td>
  • trunk/grails-app/views/departmentDetailed/show.gsp

    r272 r288  
    5656                                <ul>
    5757                                <g:each var="d" in="${departmentInstance.departmentExtendedAttributes}">
    58                                     <li><g:link controller="departmentExtendedAttribute" action="show" id="${d.id}">${d?.encodeAsHTML()}</g:link></li>
     58                                    <li><g:link controller="departmentExtendedAttributeDetailed" action="show" id="${d.id}">${d?.encodeAsHTML()}</g:link></li>
    5959                                </g:each>
    6060                                </ul>
     
    8282                                <ul>
    8383                                <g:each var="s" in="${departmentInstance.sections}">
    84                                     <li><g:link controller="section" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
     84                                    <li><g:link controller="sectionDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
    8585                                </g:each>
    8686                                </ul>
  • 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>
  • trunk/grails-app/views/sectionExtendedAttributeDetailed/show.gsp

    r268 r288  
    4646                            <td valign="top" class="name">Extended Attribute Type:</td>
    4747                           
    48                             <td valign="top" class="value"><g:link controller="extendedAttributeType" action="show" id="${sectionExtendedAttributeInstance?.extendedAttributeType?.id}">${sectionExtendedAttributeInstance?.extendedAttributeType?.encodeAsHTML()}</g:link></td>
     48                            <td valign="top" class="value"><g:link controller="extendedAttributeTypeDetailed" action="show" id="${sectionExtendedAttributeInstance?.extendedAttributeType?.id}">${sectionExtendedAttributeInstance?.extendedAttributeType?.encodeAsHTML()}</g:link></td>
    4949                           
    5050                        </tr>
     
    5353                            <td valign="top" class="name">Section:</td>
    5454                           
    55                             <td valign="top" class="value"><g:link controller="section" action="show" id="${sectionExtendedAttributeInstance?.section?.id}">${sectionExtendedAttributeInstance?.section?.encodeAsHTML()}</g:link></td>
     55                            <td valign="top" class="value"><g:link controller="sectionDetailed" action="show" id="${sectionExtendedAttributeInstance?.section?.id}">${sectionExtendedAttributeInstance?.section?.encodeAsHTML()}</g:link></td>
    5656                           
    5757                        </tr>
  • trunk/grails-app/views/siteExtendedAttributeDetailed/show.gsp

    r268 r288  
    4646                            <td valign="top" class="name">Extended Attribute Type:</td>
    4747                           
    48                             <td valign="top" class="value"><g:link controller="extendedAttributeType" action="show" id="${siteExtendedAttributeInstance?.extendedAttributeType?.id}">${siteExtendedAttributeInstance?.extendedAttributeType?.encodeAsHTML()}</g:link></td>
     48                            <td valign="top" class="value"><g:link controller="extendedAttributeTypeDetailed" action="show" id="${siteExtendedAttributeInstance?.extendedAttributeType?.id}">${siteExtendedAttributeInstance?.extendedAttributeType?.encodeAsHTML()}</g:link></td>
    4949                           
    5050                        </tr>
     
    5353                            <td valign="top" class="name">Site:</td>
    5454                           
    55                             <td valign="top" class="value"><g:link controller="site" action="show" id="${siteExtendedAttributeInstance?.site?.id}">${siteExtendedAttributeInstance?.site?.encodeAsHTML()}</g:link></td>
     55                            <td valign="top" class="value"><g:link controller="siteDetailed" action="show" id="${siteExtendedAttributeInstance?.site?.id}">${siteExtendedAttributeInstance?.site?.encodeAsHTML()}</g:link></td>
    5656                           
    5757                        </tr>
Note: See TracChangeset for help on using the changeset viewer.