- Timestamp:
- Jan 23, 2010, 11:33:04 AM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/AssetExtendedAttributeDetailedController.groovy
r292 r293 2 2 3 3 class AssetExtendedAttributeDetailedController extends BaseController { 4 5 def index = { redirect( action:list,params:params) }4 5 def index = { redirect(controller: "assetDetailed", action: "search", params:params) } 6 6 7 7 // the delete, save and update actions only accept POST requests 8 8 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 }14 9 15 10 def show = { … … 18 13 if(!assetExtendedAttributeInstance) { 19 14 flash.message = "AssetExtendedAttribute not found with id ${params.id}" 20 redirect( action:list)15 redirect(controller: "assetDetailed", action: "search") 21 16 } 22 17 else { return [ assetExtendedAttributeInstance : assetExtendedAttributeInstance ] } … … 29 24 assetExtendedAttributeInstance.delete(flush:true) 30 25 flash.message = "AssetExtendedAttribute ${params.id} deleted" 31 redirect( action:list)26 redirect(controller: "assetDetailed", action: "search") 32 27 } 33 28 catch(org.springframework.dao.DataIntegrityViolationException e) { … … 38 33 else { 39 34 flash.message = "AssetExtendedAttribute not found with id ${params.id}" 40 redirect( action:list)35 redirect(controller: "assetDetailed", action: "search") 41 36 } 42 37 } … … 47 42 if(!assetExtendedAttributeInstance) { 48 43 flash.message = "AssetExtendedAttribute not found with id ${params.id}" 49 redirect( action:list)44 redirect(controller: "assetDetailed", action: "search") 50 45 } 51 46 else { … … 77 72 else { 78 73 flash.message = "AssetExtendedAttribute not found with id ${params.id}" 79 redirect( action:list)74 redirect(controller: "assetDetailed", action: "search") 80 75 } 81 76 } -
trunk/grails-app/controllers/AssetSubItemExtendedAttributeDetailedController.groovy
r274 r293 2 2 3 3 class AssetSubItemExtendedAttributeDetailedController extends BaseController { 4 5 def index = { redirect( action:list,params:params) }4 5 def index = { redirect(controller: "assetDetailed", action: "search", params:params) } 6 6 7 7 // the delete, save and update actions only accept POST requests 8 8 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 }14 9 15 10 def show = { … … 18 13 if(!assetSubItemExtendedAttributeInstance) { 19 14 flash.message = "AssetSubItemExtendedAttribute not found with id ${params.id}" 20 redirect( action:list)15 redirect(controller: "assetDetailed", action: "search") 21 16 } 22 17 else { return [ assetSubItemExtendedAttributeInstance : assetSubItemExtendedAttributeInstance ] } … … 29 24 assetSubItemExtendedAttributeInstance.delete(flush:true) 30 25 flash.message = "AssetSubItemExtendedAttribute ${params.id} deleted" 31 redirect( action:list)26 redirect(controller: "assetDetailed", action: "search") 32 27 } 33 28 catch(org.springframework.dao.DataIntegrityViolationException e) { … … 38 33 else { 39 34 flash.message = "AssetSubItemExtendedAttribute not found with id ${params.id}" 40 redirect( action:list)35 redirect(controller: "assetDetailed", action: "search") 41 36 } 42 37 } … … 47 42 if(!assetSubItemExtendedAttributeInstance) { 48 43 flash.message = "AssetSubItemExtendedAttribute not found with id ${params.id}" 49 redirect( action:list)44 redirect(controller: "assetDetailed", action: "search") 50 45 } 51 46 else { … … 77 72 else { 78 73 flash.message = "AssetSubItemExtendedAttribute not found with id ${params.id}" 79 redirect( action:list)74 redirect(controller: "assetDetailed", action: "search") 80 75 } 81 76 } -
trunk/grails-app/views/assetExtendedAttributeDetailed/create.gsp
r292 r293 9 9 <body> 10 10 <div class="nav"> 11 < span class="menuButton"><g:link class="list" action="list">AssetExtendedAttribute List</g:link></span>11 <h1>Create Extended Attribute</h1> 12 12 </div> 13 13 <div class="body"> 14 <h1>Create AssetExtendedAttribute</h1>15 14 <g:if test="${flash.message}"> 16 15 <div class="message">${flash.message}</div> -
trunk/grails-app/views/assetExtendedAttributeDetailed/edit.gsp
r292 r293 9 9 <body> 10 10 <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> 13 12 </div> 14 13 <div class="body"> 15 <h1>Edit AssetExtendedAttribute</h1>16 14 <g:if test="${flash.message}"> 17 15 <div class="message">${flash.message}</div> -
trunk/grails-app/views/assetExtendedAttributeDetailed/show.gsp
r292 r293 9 9 <body> 10 10 <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> 13 12 </div> 14 13 <div class="body"> 15 <h1>Show AssetExtendedAttribute</h1>16 14 <g:if test="${flash.message}"> 17 15 <div class="message">${flash.message}</div> … … 46 44 <td valign="top" class="name">Asset:</td> 47 45 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> 49 47 50 48 </tr> … … 53 51 <td valign="top" class="name">Extended Attribute Type:</td> 54 52 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> 56 54 57 55 </tr>
Note: See TracChangeset
for help on using the changeset viewer.