Ignore:
Timestamp:
Feb 18, 2010, 4:51:45 AM (14 years ago)
Author:
gav
Message:

Svn move SupplierType and ManufacturerType controllers and views to detailed and complete detailing.

File:
1 moved

Legend:

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

    r361 r383  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22
    3 class ManufacturerTypeController extends BaseAppAdminController {
    4    
     3@Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager'])
     4class ManufacturerTypeDetailedController extends BaseController {
     5
     6    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    57    def index = { redirect(action:list,params:params) }
    68
     
    810    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
    911
     12    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    1013    def list = {
    1114        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
     
    1316    }
    1417
     18    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_AssetManager', 'ROLE_AssetUser'])
    1519    def show = {
     20
     21        // In the case of an actionSubmit button, rewrite action name from 'index'.
     22        if(params._action_Show)
     23            params.action='show'
     24
    1625        def manufacturerTypeInstance = ManufacturerType.get( params.id )
    1726
     
    4352
    4453    def edit = {
     54
     55        // In the case of an actionSubmit button, rewrite action name from 'index'.
     56        if(params._action_Edit)
     57            params.action='edit'
     58
    4559        def manufacturerTypeInstance = ManufacturerType.get( params.id )
    4660
Note: See TracChangeset for help on using the changeset viewer.