Changeset 293


Ignore:
Timestamp:
Jan 23, 2010, 11:33:04 AM (10 years ago)
Author:
gav
Message:

Removed unused list views from AssetExtendedAttribute and SubItemExtendedAttribute.

Location:
trunk/grails-app
Files:
1 deleted
5 edited

Legend:

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

    r292 r293  
    22
    33class AssetExtendedAttributeDetailedController extends BaseController {
    4    
    5     def index = { redirect(action:list,params:params) }
     4
     5    def index = { redirect(controller: "assetDetailed", action: "search", params:params) }
    66
    77    // the delete, save and update actions only accept POST requests
    88    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
    9 
    10     def list = {
    11         params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
    12         [ assetExtendedAttributeInstanceList: AssetExtendedAttribute.list( params ), assetExtendedAttributeInstanceTotal: AssetExtendedAttribute.count() ]
    13     }
    149
    1510    def show = {
     
    1813        if(!assetExtendedAttributeInstance) {
    1914            flash.message = "AssetExtendedAttribute not found with id ${params.id}"
    20             redirect(action:list)
     15            redirect(controller: "assetDetailed", action: "search")
    2116        }
    2217        else { return [ assetExtendedAttributeInstance : assetExtendedAttributeInstance ] }
     
    2924                assetExtendedAttributeInstance.delete(flush:true)
    3025                flash.message = "AssetExtendedAttribute ${params.id} deleted"
    31                 redirect(action:list)
     26                redirect(controller: "assetDetailed", action: "search")
    3227            }
    3328            catch(org.springframework.dao.DataIntegrityViolationException e) {
     
    3833        else {
    3934            flash.message = "AssetExtendedAttribute not found with id ${params.id}"
    40             redirect(action:list)
     35            redirect(controller: "assetDetailed", action: "search")
    4136        }
    4237    }
     
    4742        if(!assetExtendedAttributeInstance) {
    4843            flash.message = "AssetExtendedAttribute not found with id ${params.id}"
    49             redirect(action:list)
     44            redirect(controller: "assetDetailed", action: "search")
    5045        }
    5146        else {
     
    7772        else {
    7873            flash.message = "AssetExtendedAttribute not found with id ${params.id}"
    79             redirect(action:list)
     74            redirect(controller: "assetDetailed", action: "search")
    8075        }
    8176    }
  • trunk/grails-app/controllers/AssetSubItemExtendedAttributeDetailedController.groovy

    r274 r293  
    22
    33class AssetSubItemExtendedAttributeDetailedController extends BaseController {
    4    
    5     def index = { redirect(action:list,params:params) }
     4
     5    def index = { redirect(controller: "assetDetailed", action: "search", params:params) }
    66
    77    // the delete, save and update actions only accept POST requests
    88    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
    9 
    10     def list = {
    11         params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
    12         [ assetSubItemExtendedAttributeInstanceList: AssetSubItemExtendedAttribute.list( params ), assetSubItemExtendedAttributeInstanceTotal: AssetSubItemExtendedAttribute.count() ]
    13     }
    149
    1510    def show = {
     
    1813        if(!assetSubItemExtendedAttributeInstance) {
    1914            flash.message = "AssetSubItemExtendedAttribute not found with id ${params.id}"
    20             redirect(action:list)
     15            redirect(controller: "assetDetailed", action: "search")
    2116        }
    2217        else { return [ assetSubItemExtendedAttributeInstance : assetSubItemExtendedAttributeInstance ] }
     
    2924                assetSubItemExtendedAttributeInstance.delete(flush:true)
    3025                flash.message = "AssetSubItemExtendedAttribute ${params.id} deleted"
    31                 redirect(action:list)
     26                redirect(controller: "assetDetailed", action: "search")
    3227            }
    3328            catch(org.springframework.dao.DataIntegrityViolationException e) {
     
    3833        else {
    3934            flash.message = "AssetSubItemExtendedAttribute not found with id ${params.id}"
    40             redirect(action:list)
     35            redirect(controller: "assetDetailed", action: "search")
    4136        }
    4237    }
     
    4742        if(!assetSubItemExtendedAttributeInstance) {
    4843            flash.message = "AssetSubItemExtendedAttribute not found with id ${params.id}"
    49             redirect(action:list)
     44            redirect(controller: "assetDetailed", action: "search")
    5045        }
    5146        else {
     
    7772        else {
    7873            flash.message = "AssetSubItemExtendedAttribute not found with id ${params.id}"
    79             redirect(action:list)
     74            redirect(controller: "assetDetailed", action: "search")
    8075        }
    8176    }
  • trunk/grails-app/views/assetExtendedAttributeDetailed/create.gsp

    r292 r293  
    99    <body>
    1010        <div class="nav">
    11             <span class="menuButton"><g:link class="list" action="list">AssetExtendedAttribute List</g:link></span>
     11            <h1>Create Extended Attribute</h1>
    1212        </div>
    1313        <div class="body">
    14             <h1>Create AssetExtendedAttribute</h1>
    1514            <g:if test="${flash.message}">
    1615            <div class="message">${flash.message}</div>
  • trunk/grails-app/views/assetExtendedAttributeDetailed/edit.gsp

    r292 r293  
    99    <body>
    1010        <div class="nav">
    11             <span class="menuButton"><g:link class="list" action="list">AssetExtendedAttribute List</g:link></span>
    12             <span class="menuButton"><g:link class="create" action="create">New AssetExtendedAttribute</g:link></span>
     11            <h1>Edit Extended Attribute</h1>
    1312        </div>
    1413        <div class="body">
    15             <h1>Edit AssetExtendedAttribute</h1>
    1614            <g:if test="${flash.message}">
    1715            <div class="message">${flash.message}</div>
  • trunk/grails-app/views/assetExtendedAttributeDetailed/show.gsp

    r292 r293  
    99    <body>
    1010        <div class="nav">
    11             <span class="menuButton"><g:link class="list" action="list">AssetExtendedAttribute List</g:link></span>
    12             <span class="menuButton"><g:link class="create" action="create">New AssetExtendedAttribute</g:link></span>
     11            <h1>Show Extended Attribute</h1>
    1312        </div>
    1413        <div class="body">
    15             <h1>Show AssetExtendedAttribute</h1>
    1614            <g:if test="${flash.message}">
    1715            <div class="message">${flash.message}</div>
     
    4644                            <td valign="top" class="name">Asset:</td>
    4745                           
    48                             <td valign="top" class="value"><g:link controller="asset" action="show" id="${assetExtendedAttributeInstance?.asset?.id}">${assetExtendedAttributeInstance?.asset?.encodeAsHTML()}</g:link></td>
     46                            <td valign="top" class="value"><g:link controller="assetDetailed" action="show" id="${assetExtendedAttributeInstance?.asset?.id}">${assetExtendedAttributeInstance?.asset?.encodeAsHTML()}</g:link></td>
    4947                           
    5048                        </tr>
     
    5351                            <td valign="top" class="name">Extended Attribute Type:</td>
    5452                           
    55                             <td valign="top" class="value"><g:link controller="extendedAttributeType" action="show" id="${assetExtendedAttributeInstance?.extendedAttributeType?.id}">${assetExtendedAttributeInstance?.extendedAttributeType?.encodeAsHTML()}</g:link></td>
     53                            <td valign="top" class="value"><g:link controller="extendedAttributeTypeDetailed" action="show" id="${assetExtendedAttributeInstance?.extendedAttributeType?.id}">${assetExtendedAttributeInstance?.extendedAttributeType?.encodeAsHTML()}</g:link></td>
    5654                           
    5755                        </tr>
Note: See TracChangeset for help on using the changeset viewer.