- Timestamp:
- Jan 14, 2010, 10:51:03 PM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 28 added
- 50 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/BootStrap.groovy
r230 r268 13 13 { 14 14 case "development": 15 createDataService.ensureSystemAndAdminAccess()16 createDataService.createBaseData()17 createDataService.createDemoData()15 //createDataService.ensureSystemAndAdminAccess() 16 //createDataService.createBaseData() 17 //createDataService.createDemoData() 18 18 break 19 19 case "test": -
trunk/grails-app/controllers/AssetSubItemController.groovy
r267 r268 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 class Asset TypeController extends BaseAppAdminController {3 class AssetSubItemController extends BaseAppAdminController { 4 4 5 5 def index = { redirect(action:list,params:params) } … … 10 10 def list = { 11 11 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) 12 [ asset TypeInstanceList: AssetType.list( params ), assetTypeInstanceTotal: AssetType.count() ]12 [ assetSubItemInstanceList: AssetSubItem.list( params ), assetSubItemInstanceTotal: AssetSubItem.count() ] 13 13 } 14 14 15 15 def show = { 16 def asset TypeInstance = AssetType.get( params.id )16 def assetSubItemInstance = AssetSubItem.get( params.id ) 17 17 18 if(!asset TypeInstance) {19 flash.message = "Asset Typenot found with id ${params.id}"18 if(!assetSubItemInstance) { 19 flash.message = "AssetSubItem not found with id ${params.id}" 20 20 redirect(action:list) 21 21 } 22 else { return [ asset TypeInstance : assetTypeInstance ] }22 else { return [ assetSubItemInstance : assetSubItemInstance ] } 23 23 } 24 24 25 25 def delete = { 26 def asset TypeInstance = AssetType.get( params.id )27 if(asset TypeInstance) {26 def assetSubItemInstance = AssetSubItem.get( params.id ) 27 if(assetSubItemInstance) { 28 28 try { 29 asset TypeInstance.delete(flush:true)30 flash.message = "Asset Type${params.id} deleted"29 assetSubItemInstance.delete(flush:true) 30 flash.message = "AssetSubItem ${params.id} deleted" 31 31 redirect(action:list) 32 32 } 33 33 catch(org.springframework.dao.DataIntegrityViolationException e) { 34 flash.message = "Asset Type${params.id} could not be deleted"34 flash.message = "AssetSubItem ${params.id} could not be deleted" 35 35 redirect(action:show,id:params.id) 36 36 } 37 37 } 38 38 else { 39 flash.message = "Asset Typenot found with id ${params.id}"39 flash.message = "AssetSubItem not found with id ${params.id}" 40 40 redirect(action:list) 41 41 } … … 43 43 44 44 def edit = { 45 def asset TypeInstance = AssetType.get( params.id )45 def assetSubItemInstance = AssetSubItem.get( params.id ) 46 46 47 if(!asset TypeInstance) {48 flash.message = "Asset Typenot found with id ${params.id}"47 if(!assetSubItemInstance) { 48 flash.message = "AssetSubItem not found with id ${params.id}" 49 49 redirect(action:list) 50 50 } 51 51 else { 52 return [ asset TypeInstance : assetTypeInstance ]52 return [ assetSubItemInstance : assetSubItemInstance ] 53 53 } 54 54 } 55 55 56 56 def update = { 57 def asset TypeInstance = AssetType.get( params.id )58 if(asset TypeInstance) {57 def assetSubItemInstance = AssetSubItem.get( params.id ) 58 if(assetSubItemInstance) { 59 59 if(params.version) { 60 60 def version = params.version.toLong() 61 if(asset TypeInstance.version > version) {61 if(assetSubItemInstance.version > version) { 62 62 63 asset TypeInstance.errors.rejectValue("version", "assetType.optimistic.locking.failure", "Another user has updated this AssetTypewhile you were editing.")64 render(view:'edit',model:[asset TypeInstance:assetTypeInstance])63 assetSubItemInstance.errors.rejectValue("version", "assetSubItem.optimistic.locking.failure", "Another user has updated this AssetSubItem while you were editing.") 64 render(view:'edit',model:[assetSubItemInstance:assetSubItemInstance]) 65 65 return 66 66 } 67 67 } 68 asset TypeInstance.properties = params69 if(!asset TypeInstance.hasErrors() && assetTypeInstance.save(flush: true)) {70 flash.message = "Asset Type${params.id} updated"71 redirect(action:show,id:asset TypeInstance.id)68 assetSubItemInstance.properties = params 69 if(!assetSubItemInstance.hasErrors() && assetSubItemInstance.save(flush: true)) { 70 flash.message = "AssetSubItem ${params.id} updated" 71 redirect(action:show,id:assetSubItemInstance.id) 72 72 } 73 73 else { 74 render(view:'edit',model:[asset TypeInstance:assetTypeInstance])74 render(view:'edit',model:[assetSubItemInstance:assetSubItemInstance]) 75 75 } 76 76 } 77 77 else { 78 flash.message = "Asset Typenot found with id ${params.id}"78 flash.message = "AssetSubItem not found with id ${params.id}" 79 79 redirect(action:list) 80 80 } … … 82 82 83 83 def create = { 84 def asset TypeInstance = new AssetType()85 asset TypeInstance.properties = params86 return ['asset TypeInstance':assetTypeInstance]84 def assetSubItemInstance = new AssetSubItem() 85 assetSubItemInstance.properties = params 86 return ['assetSubItemInstance':assetSubItemInstance] 87 87 } 88 88 89 89 def save = { 90 def asset TypeInstance = new AssetType(params)91 if(!asset TypeInstance.hasErrors() && assetTypeInstance.save(flush: true)) {92 flash.message = "Asset Type ${assetTypeInstance.id} created"93 redirect(action:show,id:asset TypeInstance.id)90 def assetSubItemInstance = new AssetSubItem(params) 91 if(!assetSubItemInstance.hasErrors() && assetSubItemInstance.save(flush: true)) { 92 flash.message = "AssetSubItem ${assetSubItemInstance.id} created" 93 redirect(action:show,id:assetSubItemInstance.id) 94 94 } 95 95 else { 96 render(view:'create',model:[asset TypeInstance:assetTypeInstance])96 render(view:'create',model:[assetSubItemInstance:assetSubItemInstance]) 97 97 } 98 98 } -
trunk/grails-app/controllers/ExtendedAttributeTypeController.groovy
r267 r268 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 class AssetExtendedAttributeTypeController extends BaseAppAdminController {3 class ExtendedAttributeTypeController extends BaseAppAdminController { 4 4 5 5 def index = { redirect(action:list,params:params) } … … 10 10 def list = { 11 11 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) 12 [ assetExtendedAttributeTypeInstanceList: AssetExtendedAttributeType.list( params ), assetExtendedAttributeTypeInstanceTotal: AssetExtendedAttributeType.count() ]12 [ extendedAttributeTypeInstanceList: ExtendedAttributeType.list( params ), extendedAttributeTypeInstanceTotal: ExtendedAttributeType.count() ] 13 13 } 14 14 15 15 def show = { 16 def assetExtendedAttributeTypeInstance = AssetExtendedAttributeType.get( params.id )16 def extendedAttributeTypeInstance = ExtendedAttributeType.get( params.id ) 17 17 18 if(! assetExtendedAttributeTypeInstance) {19 flash.message = " AssetExtendedAttributeType not found with id ${params.id}"18 if(!extendedAttributeTypeInstance) { 19 flash.message = "ExtendedAttributeType not found with id ${params.id}" 20 20 redirect(action:list) 21 21 } 22 else { return [ assetExtendedAttributeTypeInstance : assetExtendedAttributeTypeInstance ] }22 else { return [ extendedAttributeTypeInstance : extendedAttributeTypeInstance ] } 23 23 } 24 24 25 25 def delete = { 26 def assetExtendedAttributeTypeInstance = AssetExtendedAttributeType.get( params.id )27 if( assetExtendedAttributeTypeInstance) {26 def extendedAttributeTypeInstance = ExtendedAttributeType.get( params.id ) 27 if(extendedAttributeTypeInstance) { 28 28 try { 29 assetExtendedAttributeTypeInstance.delete(flush:true)30 flash.message = " AssetExtendedAttributeType ${params.id} deleted"29 extendedAttributeTypeInstance.delete(flush:true) 30 flash.message = "ExtendedAttributeType ${params.id} deleted" 31 31 redirect(action:list) 32 32 } 33 33 catch(org.springframework.dao.DataIntegrityViolationException e) { 34 flash.message = " AssetExtendedAttributeType ${params.id} could not be deleted"34 flash.message = "ExtendedAttributeType ${params.id} could not be deleted" 35 35 redirect(action:show,id:params.id) 36 36 } 37 37 } 38 38 else { 39 flash.message = " AssetExtendedAttributeType not found with id ${params.id}"39 flash.message = "ExtendedAttributeType not found with id ${params.id}" 40 40 redirect(action:list) 41 41 } … … 43 43 44 44 def edit = { 45 def assetExtendedAttributeTypeInstance = AssetExtendedAttributeType.get( params.id )45 def extendedAttributeTypeInstance = ExtendedAttributeType.get( params.id ) 46 46 47 if(! assetExtendedAttributeTypeInstance) {48 flash.message = " AssetExtendedAttributeType not found with id ${params.id}"47 if(!extendedAttributeTypeInstance) { 48 flash.message = "ExtendedAttributeType not found with id ${params.id}" 49 49 redirect(action:list) 50 50 } 51 51 else { 52 return [ assetExtendedAttributeTypeInstance : assetExtendedAttributeTypeInstance ]52 return [ extendedAttributeTypeInstance : extendedAttributeTypeInstance ] 53 53 } 54 54 } 55 55 56 56 def update = { 57 def assetExtendedAttributeTypeInstance = AssetExtendedAttributeType.get( params.id )58 if( assetExtendedAttributeTypeInstance) {57 def extendedAttributeTypeInstance = ExtendedAttributeType.get( params.id ) 58 if(extendedAttributeTypeInstance) { 59 59 if(params.version) { 60 60 def version = params.version.toLong() 61 if( assetExtendedAttributeTypeInstance.version > version) {61 if(extendedAttributeTypeInstance.version > version) { 62 62 63 assetExtendedAttributeTypeInstance.errors.rejectValue("version", "assetExtendedAttributeType.optimistic.locking.failure", "Another user has updated this AssetExtendedAttributeType while you were editing.")64 render(view:'edit',model:[ assetExtendedAttributeTypeInstance:assetExtendedAttributeTypeInstance])63 extendedAttributeTypeInstance.errors.rejectValue("version", "extendedAttributeType.optimistic.locking.failure", "Another user has updated this ExtendedAttributeType while you were editing.") 64 render(view:'edit',model:[extendedAttributeTypeInstance:extendedAttributeTypeInstance]) 65 65 return 66 66 } 67 67 } 68 assetExtendedAttributeTypeInstance.properties = params69 if(! assetExtendedAttributeTypeInstance.hasErrors() && assetExtendedAttributeTypeInstance.save(flush: true)) {70 flash.message = " AssetExtendedAttributeType ${params.id} updated"71 redirect(action:show,id: assetExtendedAttributeTypeInstance.id)68 extendedAttributeTypeInstance.properties = params 69 if(!extendedAttributeTypeInstance.hasErrors() && extendedAttributeTypeInstance.save(flush: true)) { 70 flash.message = "ExtendedAttributeType ${params.id} updated" 71 redirect(action:show,id:extendedAttributeTypeInstance.id) 72 72 } 73 73 else { 74 render(view:'edit',model:[ assetExtendedAttributeTypeInstance:assetExtendedAttributeTypeInstance])74 render(view:'edit',model:[extendedAttributeTypeInstance:extendedAttributeTypeInstance]) 75 75 } 76 76 } 77 77 else { 78 flash.message = " AssetExtendedAttributeType not found with id ${params.id}"78 flash.message = "ExtendedAttributeType not found with id ${params.id}" 79 79 redirect(action:list) 80 80 } … … 82 82 83 83 def create = { 84 def assetExtendedAttributeTypeInstance = new AssetExtendedAttributeType()85 assetExtendedAttributeTypeInstance.properties = params86 return [' assetExtendedAttributeTypeInstance':assetExtendedAttributeTypeInstance]84 def extendedAttributeTypeInstance = new ExtendedAttributeType() 85 extendedAttributeTypeInstance.properties = params 86 return ['extendedAttributeTypeInstance':extendedAttributeTypeInstance] 87 87 } 88 88 89 89 def save = { 90 def assetExtendedAttributeTypeInstance = new AssetExtendedAttributeType(params)91 if(! assetExtendedAttributeTypeInstance.hasErrors() && assetExtendedAttributeTypeInstance.save(flush: true)) {92 flash.message = " AssetExtendedAttributeType ${assetExtendedAttributeTypeInstance.id} created"93 redirect(action:show,id: assetExtendedAttributeTypeInstance.id)90 def extendedAttributeTypeInstance = new ExtendedAttributeType(params) 91 if(!extendedAttributeTypeInstance.hasErrors() && extendedAttributeTypeInstance.save(flush: true)) { 92 flash.message = "ExtendedAttributeType ${extendedAttributeTypeInstance.id} created" 93 redirect(action:show,id:extendedAttributeTypeInstance.id) 94 94 } 95 95 else { 96 render(view:'create',model:[ assetExtendedAttributeTypeInstance:assetExtendedAttributeTypeInstance])96 render(view:'create',model:[extendedAttributeTypeInstance:extendedAttributeTypeInstance]) 97 97 } 98 98 } -
trunk/grails-app/controllers/SectionController.groovy
r267 r268 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 class S ystemSectionController extends BaseAppAdminController {3 class SectionController extends BaseAppAdminController { 4 4 5 5 def index = { redirect(action:list,params:params) } … … 10 10 def list = { 11 11 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) 12 [ s ystemSectionInstanceList: SystemSection.list( params ), systemSectionInstanceTotal: SystemSection.count() ]12 [ sectionInstanceList: Section.list( params ), sectionInstanceTotal: Section.count() ] 13 13 } 14 14 15 15 def show = { 16 def s ystemSectionInstance = SystemSection.get( params.id )16 def sectionInstance = Section.get( params.id ) 17 17 18 if(!s ystemSectionInstance) {19 flash.message = "S ystemSection not found with id ${params.id}"18 if(!sectionInstance) { 19 flash.message = "Section not found with id ${params.id}" 20 20 redirect(action:list) 21 21 } 22 else { return [ s ystemSectionInstance : systemSectionInstance ] }22 else { return [ sectionInstance : sectionInstance ] } 23 23 } 24 24 25 25 def delete = { 26 def s ystemSectionInstance = SystemSection.get( params.id )27 if(s ystemSectionInstance) {26 def sectionInstance = Section.get( params.id ) 27 if(sectionInstance) { 28 28 try { 29 s ystemSectionInstance.delete(flush:true)30 flash.message = "S ystemSection ${params.id} deleted"29 sectionInstance.delete(flush:true) 30 flash.message = "Section ${params.id} deleted" 31 31 redirect(action:list) 32 32 } 33 33 catch(org.springframework.dao.DataIntegrityViolationException e) { 34 flash.message = "S ystemSection ${params.id} could not be deleted"34 flash.message = "Section ${params.id} could not be deleted" 35 35 redirect(action:show,id:params.id) 36 36 } 37 37 } 38 38 else { 39 flash.message = "S ystemSection not found with id ${params.id}"39 flash.message = "Section not found with id ${params.id}" 40 40 redirect(action:list) 41 41 } … … 43 43 44 44 def edit = { 45 def s ystemSectionInstance = SystemSection.get( params.id )45 def sectionInstance = Section.get( params.id ) 46 46 47 if(!s ystemSectionInstance) {48 flash.message = "S ystemSection not found with id ${params.id}"47 if(!sectionInstance) { 48 flash.message = "Section not found with id ${params.id}" 49 49 redirect(action:list) 50 50 } 51 51 else { 52 return [ s ystemSectionInstance : systemSectionInstance ]52 return [ sectionInstance : sectionInstance ] 53 53 } 54 54 } 55 55 56 56 def update = { 57 def s ystemSectionInstance = SystemSection.get( params.id )58 if(s ystemSectionInstance) {57 def sectionInstance = Section.get( params.id ) 58 if(sectionInstance) { 59 59 if(params.version) { 60 60 def version = params.version.toLong() 61 if(s ystemSectionInstance.version > version) {61 if(sectionInstance.version > version) { 62 62 63 s ystemSectionInstance.errors.rejectValue("version", "systemSection.optimistic.locking.failure", "Another user has updated this SystemSection while you were editing.")64 render(view:'edit',model:[s ystemSectionInstance:systemSectionInstance])63 sectionInstance.errors.rejectValue("version", "section.optimistic.locking.failure", "Another user has updated this Section while you were editing.") 64 render(view:'edit',model:[sectionInstance:sectionInstance]) 65 65 return 66 66 } 67 67 } 68 s ystemSectionInstance.properties = params69 if(!s ystemSectionInstance.hasErrors() && systemSectionInstance.save(flush: true)) {70 flash.message = "S ystemSection ${params.id} updated"71 redirect(action:show,id:s ystemSectionInstance.id)68 sectionInstance.properties = params 69 if(!sectionInstance.hasErrors() && sectionInstance.save(flush: true)) { 70 flash.message = "Section ${params.id} updated" 71 redirect(action:show,id:sectionInstance.id) 72 72 } 73 73 else { 74 render(view:'edit',model:[s ystemSectionInstance:systemSectionInstance])74 render(view:'edit',model:[sectionInstance:sectionInstance]) 75 75 } 76 76 } 77 77 else { 78 flash.message = "S ystemSection not found with id ${params.id}"78 flash.message = "Section not found with id ${params.id}" 79 79 redirect(action:list) 80 80 } … … 82 82 83 83 def create = { 84 def s ystemSectionInstance = new SystemSection()85 s ystemSectionInstance.properties = params86 return ['s ystemSectionInstance':systemSectionInstance]84 def sectionInstance = new Section() 85 sectionInstance.properties = params 86 return ['sectionInstance':sectionInstance] 87 87 } 88 88 89 89 def save = { 90 def s ystemSectionInstance = new SystemSection(params)91 if(!s ystemSectionInstance.hasErrors() && systemSectionInstance.save(flush: true)) {92 flash.message = "S ystemSection ${systemSectionInstance.id} created"93 redirect(action:show,id:s ystemSectionInstance.id)90 def sectionInstance = new Section(params) 91 if(!sectionInstance.hasErrors() && sectionInstance.save(flush: true)) { 92 flash.message = "Section ${sectionInstance.id} created" 93 redirect(action:show,id:sectionInstance.id) 94 94 } 95 95 else { 96 render(view:'create',model:[s ystemSectionInstance:systemSectionInstance])96 render(view:'create',model:[sectionInstance:sectionInstance]) 97 97 } 98 98 } -
trunk/grails-app/controllers/SectionDetailedController.groovy
r267 r268 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 class S ystemSectionDetailedController extends BaseController {3 class SectionDetailedController extends BaseController { 4 4 5 5 def index = { redirect(action:list,params:params) } … … 10 10 def list = { 11 11 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) 12 [ s ystemSectionInstanceList: SystemSection.list( params ), systemSectionInstanceTotal: SystemSection.count() ]12 [ sectionInstanceList: Section.list( params ), sectionInstanceTotal: Section.count() ] 13 13 } 14 14 15 15 def show = { 16 def s ystemSectionInstance = SystemSection.get( params.id )16 def sectionInstance = Section.get( params.id ) 17 17 18 if(!s ystemSectionInstance) {19 flash.message = "S ystemSection not found with id ${params.id}"18 if(!sectionInstance) { 19 flash.message = "Section not found with id ${params.id}" 20 20 redirect(action:list) 21 21 } 22 else { return [ s ystemSectionInstance : systemSectionInstance ] }22 else { return [ sectionInstance : sectionInstance ] } 23 23 } 24 24 25 25 def delete = { 26 def s ystemSectionInstance = SystemSection.get( params.id )27 if(s ystemSectionInstance) {26 def sectionInstance = Section.get( params.id ) 27 if(sectionInstance) { 28 28 try { 29 s ystemSectionInstance.delete(flush:true)30 flash.message = "S ystemSection ${params.id} deleted"29 sectionInstance.delete(flush:true) 30 flash.message = "Section ${params.id} deleted" 31 31 redirect(action:list) 32 32 } 33 33 catch(org.springframework.dao.DataIntegrityViolationException e) { 34 flash.message = "S ystemSection ${params.id} could not be deleted"34 flash.message = "Section ${params.id} could not be deleted" 35 35 redirect(action:show,id:params.id) 36 36 } 37 37 } 38 38 else { 39 flash.message = "S ystemSection not found with id ${params.id}"39 flash.message = "Section not found with id ${params.id}" 40 40 redirect(action:list) 41 41 } … … 43 43 44 44 def edit = { 45 def s ystemSectionInstance = SystemSection.get( params.id )45 def sectionInstance = Section.get( params.id ) 46 46 47 if(!s ystemSectionInstance) {48 flash.message = "S ystemSection not found with id ${params.id}"47 if(!sectionInstance) { 48 flash.message = "Section not found with id ${params.id}" 49 49 redirect(action:list) 50 50 } 51 51 else { 52 return [ s ystemSectionInstance : systemSectionInstance ]52 return [ sectionInstance : sectionInstance ] 53 53 } 54 54 } 55 55 56 56 def update = { 57 def s ystemSectionInstance = SystemSection.get( params.id )58 if(s ystemSectionInstance) {57 def sectionInstance = Section.get( params.id ) 58 if(sectionInstance) { 59 59 if(params.version) { 60 60 def version = params.version.toLong() 61 if(s ystemSectionInstance.version > version) {61 if(sectionInstance.version > version) { 62 62 63 s ystemSectionInstance.errors.rejectValue("version", "systemSection.optimistic.locking.failure", "Another user has updated this SystemSection while you were editing.")64 render(view:'edit',model:[s ystemSectionInstance:systemSectionInstance])63 sectionInstance.errors.rejectValue("version", "section.optimistic.locking.failure", "Another user has updated this Section while you were editing.") 64 render(view:'edit',model:[sectionInstance:sectionInstance]) 65 65 return 66 66 } 67 67 } 68 s ystemSectionInstance.properties = params69 if(!s ystemSectionInstance.hasErrors() && systemSectionInstance.save(flush: true)) {70 flash.message = "S ystemSection ${params.id} updated"71 redirect(action:show,id:s ystemSectionInstance.id)68 sectionInstance.properties = params 69 if(!sectionInstance.hasErrors() && sectionInstance.save(flush: true)) { 70 flash.message = "Section ${params.id} updated" 71 redirect(action:show,id:sectionInstance.id) 72 72 } 73 73 else { 74 render(view:'edit',model:[s ystemSectionInstance:systemSectionInstance])74 render(view:'edit',model:[sectionInstance:sectionInstance]) 75 75 } 76 76 } 77 77 else { 78 flash.message = "S ystemSection not found with id ${params.id}"78 flash.message = "Section not found with id ${params.id}" 79 79 redirect(action:list) 80 80 } … … 82 82 83 83 def create = { 84 def s ystemSectionInstance = new SystemSection()85 s ystemSectionInstance.properties = params86 return ['s ystemSectionInstance':systemSectionInstance]84 def sectionInstance = new Section() 85 sectionInstance.properties = params 86 return ['sectionInstance':sectionInstance] 87 87 } 88 88 89 89 def save = { 90 def s ystemSectionInstance = new SystemSection(params)91 if(!s ystemSectionInstance.hasErrors() && systemSectionInstance.save(flush: true)) {92 flash.message = "S ystemSection ${systemSectionInstance.id} created"93 redirect(action:show,id:s ystemSectionInstance.id)90 def sectionInstance = new Section(params) 91 if(!sectionInstance.hasErrors() && sectionInstance.save(flush: true)) { 92 flash.message = "Section ${sectionInstance.id} created" 93 redirect(action:show,id:sectionInstance.id) 94 94 } 95 95 else { 96 render(view:'create',model:[s ystemSectionInstance:systemSectionInstance])96 render(view:'create',model:[sectionInstance:sectionInstance]) 97 97 } 98 98 } -
trunk/grails-app/domain/Asset.groovy
r180 r268 1 1 class Asset { 2 2 3 SystemSection systemSection 4 AssetType assetType 3 Section section 5 4 6 5 String name 7 6 String description = "" 8 String costCode = ""9 7 boolean isActive = true 10 8 11 static hasMany = [maintenanceActions: MaintenanceAction, 9 static hasMany = [assetSubItems: AssetSubItem, 10 maintenanceActions: MaintenanceAction, 12 11 assetExtendedAttributes: AssetExtendedAttribute] 13 12 14 static belongsTo = [S ystemSection, AssetType]13 static belongsTo = [Section] 15 14 16 15 static constraints = { 17 name(unique:true, blank:false) 16 name(maxSize:50, unique:true, blank:false) 17 description(maxSize:100) 18 isActive() 19 section() 18 20 } 19 21 -
trunk/grails-app/domain/AssetExtendedAttribute.groovy
r124 r268 1 1 class AssetExtendedAttribute { 2 2 3 ExtendedAttributeType extendedAttributeType 3 4 Asset asset 4 AssetExtendedAttributeType assetExtendedAttributeType5 5 6 6 String value … … 11 11 static belongsTo = [Asset] 12 12 13 // static constraints = { 14 // 15 // } 13 static constraints = { 14 value(maxSize:100) 15 isActive() 16 } 16 17 17 18 String toString() { 18 "${ assetExtendedAttributeType.name}: ${this.value}"19 "${extendedAttributeType.name}: ${this.value}" 19 20 } 20 21 } -
trunk/grails-app/domain/AssetSubItem.groovy
r267 r268 1 class AssetType { 1 class AssetSubItem { 2 3 Asset asset 4 AssetSubItem parentItem 2 5 3 6 String name 4 7 String description = "" 5 String costCode = ""6 8 boolean isActive = true 7 9 8 static hasMany = [ assets: Asset,9 assemblies: Assembly,10 maintenanceActions: MaintenanceAction]10 static hasMany = [subItems: AssetSubItem, 11 maintenanceActions: MaintenanceAction, 12 assetSubItemExtendedAttributes: AssetSubItemExtendedAttribute] 11 13 12 // static belongsTo = []14 static belongsTo = [Asset, AssetSubItem] 13 15 14 // static constraints = { 15 // 16 // } 16 static constraints = { 17 name(maxSize:50, blank:false) 18 description(maxSize:100) 19 isActive() 20 asset(nullable:true) 21 parentItem(nullable:true) 22 } 17 23 18 24 String toString() { -
trunk/grails-app/domain/Department.groovy
r164 r268 3 3 String name 4 4 String description = "" 5 String costCode = ""6 5 boolean isActive = true 7 6 8 static hasMany = [systemSections: SystemSection, persons: Person] 7 static hasMany = [sections: Section, 8 departmentExtendedAttributes: DepartmentExtendedAttribute, 9 persons: Person] 9 10 10 11 // static belongsTo = [] 11 12 12 13 static constraints = { 13 name() 14 description() 15 costCode() 14 name(maxSize:50, unique:true, blank:false) 15 description(maxSize:100) 16 16 isActive() 17 17 } -
trunk/grails-app/domain/ExtendedAttributeType.groovy
r267 r268 1 class AssetExtendedAttributeType {1 class ExtendedAttributeType { 2 2 3 3 String name … … 5 5 boolean isActive = true 6 6 7 static hasMany = [assetExtendedAttributes: AssetExtendedAttribute]7 // static hasMany = [] 8 8 9 9 // static belongsTo = [] 10 10 11 // static constraints = { 12 // 13 // } 11 static constraints = { 12 name(maxSize:50,unique:true,blank:false) 13 description(maxSize:100) 14 isActive() 15 } 14 16 15 17 String toString() { -
trunk/grails-app/domain/MaintenanceAction.groovy
r146 r268 3 3 TaskProcedure taskProcedure 4 4 MaintenancePolicy maintenancePolicy 5 S ystemSection systemSection5 Section section 6 6 Asset asset 7 AssetType assetType 8 Assembly assembly 9 SubAssembly subAssembly 10 ComponentItem componentItem 7 AssetSubItem assetSubItem 11 8 12 9 String description … … 20 17 21 18 static constraints = { 19 section(nullable:true) 20 asset(nullable:true) 21 assetSubItem(nullable:true) 22 22 maintenancePolicy(nullable:true) 23 systemSection(nullable:true)24 asset(nullable:true)25 assetType(nullable:true)26 assembly(nullable:true)27 subAssembly(nullable:true)28 componentItem(nullable:true)29 23 procedureStepNumber(nullable:true) 24 description() 25 reasoning() 26 isActive() 30 27 } 31 28 -
trunk/grails-app/domain/MaintenancePolicy.groovy
r122 r268 5 5 boolean isActive = true 6 6 7 static hasMany = [maintenanceActions: MaintenanceAction]7 // static hasMany = [maintenanceActions: MaintenanceAction] 8 8 9 9 // static belongsTo = [] 10 10 11 // static constraints = { 12 // } 11 static constraints = { 12 name(maxSize:50, unique:true, blank:false) 13 description(maxSize:100) 14 isActive() 15 } 13 16 14 17 String toString() { -
trunk/grails-app/domain/Section.groovy
r262 r268 1 class S ystemSection {1 class Section { 2 2 3 3 Site site … … 6 6 String name 7 7 String description = "" 8 String costCode = ""9 8 boolean isActive = true 10 9 11 static hasMany = [assets: Asset, maintenanceActions: MaintenanceAction] 10 static hasMany = [assets: Asset, 11 maintenanceActions: MaintenanceAction, 12 sectionExtendedAttributes: SectionExtendedAttribute] 12 13 13 14 static belongsTo = [Site] 14 15 15 // static constraints = { 16 // 17 // } 16 static constraints = { 17 name(maxSize:50, unique:true, blank:false) 18 description(maxSize:100) 19 isActive() 20 } 18 21 19 22 String toString() { -
trunk/grails-app/domain/Site.groovy
r163 r268 3 3 String name 4 4 String description = "" 5 String costCode = ""6 5 Boolean isActive = true 7 6 8 static hasMany = [inventoryStores: InventoryStore, systemSections: SystemSection] 7 // static hasMany = [inventoryStores: InventoryStore, systemSections: SystemSection] 8 static hasMany = [sections: Section, 9 siteExtendedAttributes: SiteExtendedAttribute] 9 10 10 11 // static belongsTo = [] 11 12 12 13 static constraints = { 13 name(maxSize:50, unique:true,blank:false)14 name(maxSize:50, unique:true, blank:false) 14 15 description(maxSize:100) 16 isActive() 15 17 } 16 18 -
trunk/grails-app/services/CreateDataService.groovy
r266 r268 60 60 createBaseSupplierType() 61 61 createBaseManufacturerType() 62 createBaseExtenededAttributeTypes() 62 63 63 64 // Tasks … … 76 77 77 78 // Assets 78 createBaseAssetExtenededAttributeTypes()79 79 80 80 // Record that data has been created. … … 128 128 createDemoTaskProcedure() 129 129 createDemoMaintenanceActions() 130 createDemoSystemSections() 131 createDemoAssetTypes() 132 createDemoAssemblies() 133 createDemoSubAssemblies() 134 createDemoComponentItems() 130 createDemoSections() 131 createDemoAssetSubItems() 135 132 createDemoAssets() 136 133 createDemoAssetExtenedAttributes() … … 993 990 } 994 991 995 def createDemoS ystemSections() {996 997 //S ystemSection998 def s ystemSectionInstance999 1000 //S ystemSection #11001 s ystemSectionInstance = new SystemSection(name: "Press Section",992 def createDemoSections() { 993 994 //Section 995 def sectionInstance 996 997 //Section #1 998 sectionInstance = new Section(name: "Press Section", 1002 999 site: Site.get(1), 1003 1000 department: Department.get(1)) 1004 saveAndTest(s ystemSectionInstance)1005 1006 //S ystemSection #21007 s ystemSectionInstance = new SystemSection(name: "RO System",1001 saveAndTest(sectionInstance) 1002 1003 //Section #2 1004 sectionInstance = new Section(name: "RO System", 1008 1005 site: Site.get(2), 1009 1006 department: Department.get(2)) 1010 saveAndTest(s ystemSectionInstance)1011 1012 //S ystemSection #31013 s ystemSectionInstance = new SystemSection(name: "Auxilliray Section",1007 saveAndTest(sectionInstance) 1008 1009 //Section #3 1010 sectionInstance = new Section(name: "Auxilliray Section", 1014 1011 site: Site.get(1), 1015 1012 department: Department.get(1)) 1016 saveAndTest(systemSectionInstance) 1017 } 1018 1019 def createDemoAssetTypes() { 1020 1021 //AssetType 1022 def assetTypeInstance 1023 1024 //AssetType #1 1025 assetTypeInstance = new AssetType(name: "Print Unit") 1026 saveAndTest(assetTypeInstance) 1027 1028 //AssetType #2 1029 assetTypeInstance = new AssetType(name: "Reactor Tower") 1030 saveAndTest(assetTypeInstance) 1031 } 1032 1033 def createDemoAssemblies() { 1034 1035 //Assembly 1036 def assemblyInstance 1037 1038 //Assembly #1 1039 assemblyInstance = new Assembly(name: "Print Couple", 1040 assetType: AssetType.get(1)) 1041 saveAndTest(assemblyInstance) 1042 // assemblyInstance.addToMaintenanceActions(MaintenanceAction.get(1)) 1043 1044 //Assembly #2 1045 assemblyInstance = new Assembly(name: "Agitator", 1046 assetType: AssetType.get(2)) 1047 saveAndTest(assemblyInstance) 1048 } 1049 1050 def createDemoSubAssemblies() { 1051 1052 //SubAssembly 1053 def subAssemblyInstance 1054 1055 //SubAssembly #1 1056 subAssemblyInstance = new SubAssembly(name: "Cylinder", 1057 assembly: Assembly.get(1)) 1058 saveAndTest(subAssemblyInstance) 1059 1060 //SubAssembly #2 1061 subAssemblyInstance = new SubAssembly(name: "Gearmotor", 1062 assembly: Assembly.get(2)) 1063 saveAndTest(subAssemblyInstance) 1064 } 1065 1066 def createDemoComponentItems() { 1067 1068 //ComponentItem 1069 def componentItemInstance 1070 1071 //ComponentItem #1 1072 componentItemInstance = new ComponentItem(name: "Bearing", 1073 subAssembly: SubAssembly.get(1)) 1074 saveAndTest(componentItemInstance) 1075 1076 //ComponentItem #2 1077 componentItemInstance = new ComponentItem(name: "Drive shaft oil seal", 1078 subAssembly: SubAssembly.get(2)) 1079 saveAndTest(componentItemInstance) 1013 saveAndTest(sectionInstance) 1014 } 1015 1016 def createDemoAssetSubItems() { 1017 1018 // //AssetSubItem 1019 // def assetSubItemInstance 1020 // 1021 // //AssetSubItem #1 1022 // assetSubItemInstance = new AssetSubItem(name: "Print Unit") 1023 // saveAndTest(assetSubItemInstance) 1024 // 1025 // //AssetSubItem #2 1026 // assetSubItemInstance = new AssetSubItem(name: "Reactor Tower") 1027 // saveAndTest(assetSubItemInstance) 1080 1028 } 1081 1029 1082 1030 def createDemoAssets() { 1083 1031 1084 //Asset 1085 def assetInstance 1086 1087 //Asset #1 1088 assetInstance = new Asset(name: "Print Unit 22", 1089 assetType: AssetType.get(1), 1090 systemSection: SystemSection.get(1)) 1091 saveAndTest(assetInstance) 1092 // assetInstance.addToMaintenanceActions(MaintenanceAction.get(1)) 1093 1094 //Asset #2 1095 assetInstance = new Asset(name: "Print Unit 21", 1096 assetType: AssetType.get(1), 1097 systemSection: SystemSection.get(1)) 1098 saveAndTest(assetInstance) 1099 1100 //Asset #3 1101 assetInstance = new Asset(name: "Print Unit 23", 1102 assetType: AssetType.get(1), 1103 systemSection: SystemSection.get(1)) 1104 saveAndTest(assetInstance) 1105 1106 //Asset #4 1107 assetInstance = new Asset(name: "RO 1", 1108 assetType: AssetType.get(2), 1109 systemSection: SystemSection.get(2)) 1110 saveAndTest(assetInstance) 1111 } 1112 1113 def createBaseAssetExtenededAttributeTypes() { 1114 1115 //AssetExtendedAttributeType 1116 def assetExtendedAttributeInstanceType 1117 1118 //AssetExtendedAttributeType #1 1119 assetExtendedAttributeInstanceType = new AssetExtendedAttributeType(name: "Model Number") 1120 saveAndTest(assetExtendedAttributeInstanceType) 1121 1122 //AssetExtendedAttributeType #2 1123 assetExtendedAttributeInstanceType = new AssetExtendedAttributeType(name: "Purchase Cost") 1124 saveAndTest(assetExtendedAttributeInstanceType) 1125 1126 //AssetExtendedAttributeType #3 1127 assetExtendedAttributeInstanceType = new AssetExtendedAttributeType(name: "Serial Number") 1128 saveAndTest(assetExtendedAttributeInstanceType) 1129 1130 //AssetExtendedAttributeType #4 1131 assetExtendedAttributeInstanceType = new AssetExtendedAttributeType(name: "Manufactured Date") 1132 saveAndTest(assetExtendedAttributeInstanceType) 1133 1134 //AssetExtendedAttributeType #5 1135 assetExtendedAttributeInstanceType = new AssetExtendedAttributeType(name: "Location Description") 1136 saveAndTest(assetExtendedAttributeInstanceType) 1032 // //Asset 1033 // def assetInstance 1034 // 1035 // //Asset #1 1036 // assetInstance = new Asset(name: "Print Unit 22", 1037 // section: Section.get(1)) 1038 // saveAndTest(assetInstance) 1039 // // assetInstance.addToMaintenanceActions(MaintenanceAction.get(1)) 1040 // 1041 // //Asset #2 1042 // assetInstance = new Asset(name: "Print Unit 21", 1043 // assetSubItem: AssetSubItem.get(1), 1044 // section: Section.get(1)) 1045 // saveAndTest(assetInstance) 1046 // 1047 // //Asset #3 1048 // assetInstance = new Asset(name: "Print Unit 23", 1049 // assetSubItem: AssetSubItem.get(1), 1050 // section: Section.get(1)) 1051 // saveAndTest(assetInstance) 1052 // 1053 // //Asset #4 1054 // assetInstance = new Asset(name: "RO 1", 1055 // assetSubItem: AssetSubItem.get(2), 1056 // section: Section.get(2)) 1057 // saveAndTest(assetInstance) 1058 } 1059 1060 def createBaseExtenededAttributeTypes() { 1061 1062 //ExtendedAttributeType 1063 def extendedAttributeTypeInstance 1064 1065 //ExtendedAttributeType #1 1066 extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Model Number") 1067 saveAndTest(extendedAttributeTypeInstance) 1068 1069 //ExtendedAttributeType #2 1070 extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Purchase Cost") 1071 saveAndTest(extendedAttributeTypeInstance) 1072 1073 //ExtendedAttributeType #3 1074 extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Serial Number") 1075 saveAndTest(extendedAttributeTypeInstance) 1076 1077 //ExtendedAttributeType #4 1078 extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Manufactured Date") 1079 saveAndTest(extendedAttributeTypeInstance) 1080 1081 //ExtendedAttributeType #5 1082 extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Location Description") 1083 saveAndTest(extendedAttributeTypeInstance) 1084 1085 //ExtendedAttributeType #6 1086 extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Cost Centre") 1087 saveAndTest(extendedAttributeTypeInstance) 1088 1089 //ExtendedAttributeType #7 1090 extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Cost Code") 1091 saveAndTest(extendedAttributeTypeInstance) 1092 1093 //ExtendedAttributeType #8 1094 extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Manufacturer's Number") 1095 saveAndTest(extendedAttributeTypeInstance) 1096 1097 //ExtendedAttributeType #9 1098 extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Inventory Number") 1099 saveAndTest(extendedAttributeTypeInstance) 1137 1100 } 1138 1101 1139 1102 def createDemoAssetExtenedAttributes() { 1140 1103 1141 //AssetExtendedAttribute1142 def assetExtendedAttributeInstance1143 1144 //AssetExtendedAttribute #11145 assetExtendedAttributeInstance = new AssetExtendedAttribute(value: "PU Mark 2",1146 asset: Asset.get(1),1147 assetExtendedAttributeType: AssetExtendedAttributeType.get(1))1148 saveAndTest(assetExtendedAttributeInstance)1149 1150 //AssetExtendedAttribute #21151 assetExtendedAttributeInstance = new AssetExtendedAttribute(value: "On the far side of Tank 5",1152 asset: Asset.get(1),1153 assetExtendedAttributeType: AssetExtendedAttributeType.get(5))1154 saveAndTest(assetExtendedAttributeInstance)1104 // //AssetExtendedAttribute 1105 // def assetExtendedAttributeInstance 1106 // 1107 // //AssetExtendedAttribute #1 1108 // assetExtendedAttributeInstance = new AssetExtendedAttribute(value: "PU Mark 2", 1109 // asset: Asset.get(1), 1110 // assetExtendedAttributeType: ExtendedAttributeType.get(1)) 1111 // saveAndTest(assetExtendedAttributeInstance) 1112 // 1113 // //AssetExtendedAttribute #2 1114 // assetExtendedAttributeInstance = new AssetExtendedAttribute(value: "On the far side of Tank 5", 1115 // asset: Asset.get(1), 1116 // assetExtendedAttributeType: ExtendedAttributeType.get(5)) 1117 // saveAndTest(assetExtendedAttributeInstance) 1155 1118 } 1156 1119 -
trunk/grails-app/views/asset/create.gsp
r178 r268 31 31 </td> 32 32 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'name','errors')}"> 33 <input type="text" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/> 34 </td> 35 </tr> 36 37 <tr class="prop"> 38 <td valign="top" class="name"> 39 <label for="assetType">Asset Type:</label> 40 </td> 41 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetType','errors')}"> 42 <g:select optionKey="id" from="${AssetType.list()}" name="assetType.id" value="${assetInstance?.assetType?.id}" ></g:select> 43 </td> 44 </tr> 45 46 <tr class="prop"> 47 <td valign="top" class="name"> 48 <label for="costCode">Cost Code:</label> 49 </td> 50 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'costCode','errors')}"> 51 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:assetInstance,field:'costCode')}"/> 33 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/> 52 34 </td> 53 35 </tr> … … 58 40 </td> 59 41 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'description','errors')}"> 60 <input type="text" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/>42 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/> 61 43 </td> 62 44 </tr> … … 73 55 <tr class="prop"> 74 56 <td valign="top" class="name"> 75 <label for="s ystemSection">SystemSection:</label>57 <label for="section">Section:</label> 76 58 </td> 77 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'s ystemSection','errors')}">78 <g:select optionKey="id" from="${S ystemSection.list()}" name="systemSection.id" value="${assetInstance?.systemSection?.id}" ></g:select>59 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'section','errors')}"> 60 <g:select optionKey="id" from="${Section.list()}" name="section.id" value="${assetInstance?.section?.id}" ></g:select> 79 61 </td> 80 62 </tr> -
trunk/grails-app/views/asset/edit.gsp
r178 r268 34 34 </td> 35 35 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'name','errors')}"> 36 <input type="text" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/> 36 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/> 37 </td> 38 </tr> 39 40 <tr class="prop"> 41 <td valign="top" class="name"> 42 <label for="description">Description:</label> 43 </td> 44 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'description','errors')}"> 45 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/> 46 </td> 47 </tr> 48 49 <tr class="prop"> 50 <td valign="top" class="name"> 51 <label for="isActive">Is Active:</label> 52 </td> 53 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'isActive','errors')}"> 54 <g:checkBox name="isActive" value="${assetInstance?.isActive}" ></g:checkBox> 55 </td> 56 </tr> 57 58 <tr class="prop"> 59 <td valign="top" class="name"> 60 <label for="section">Section:</label> 61 </td> 62 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'section','errors')}"> 63 <g:select optionKey="id" from="${Section.list()}" name="section.id" value="${assetInstance?.section?.id}" ></g:select> 37 64 </td> 38 65 </tr> … … 56 83 <tr class="prop"> 57 84 <td valign="top" class="name"> 58 <label for="asset Type">Asset Type:</label>85 <label for="assetSubItem">Asset Sub Item:</label> 59 86 </td> 60 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetType','errors')}"> 61 <g:select optionKey="id" from="${AssetType.list()}" name="assetType.id" value="${assetInstance?.assetType?.id}" ></g:select> 62 </td> 63 </tr> 64 65 <tr class="prop"> 66 <td valign="top" class="name"> 67 <label for="costCode">Cost Code:</label> 68 </td> 69 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'costCode','errors')}"> 70 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:assetInstance,field:'costCode')}"/> 71 </td> 72 </tr> 73 74 <tr class="prop"> 75 <td valign="top" class="name"> 76 <label for="description">Description:</label> 77 </td> 78 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'description','errors')}"> 79 <input type="text" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/> 80 </td> 81 </tr> 82 83 <tr class="prop"> 84 <td valign="top" class="name"> 85 <label for="isActive">Is Active:</label> 86 </td> 87 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'isActive','errors')}"> 88 <g:checkBox name="isActive" value="${assetInstance?.isActive}" ></g:checkBox> 87 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetSubItem','errors')}"> 88 89 <ul> 90 <g:each var="a" in="${assetInstance?.assetSubItem?}"> 91 <li><g:link controller="assetSubItem" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 92 </g:each> 93 </ul> 94 <g:link controller="assetSubItem" params="['asset.id':assetInstance?.id]" action="create">Add AssetSubItem</g:link> 95 89 96 </td> 90 97 </tr> … … 106 113 </tr> 107 114 108 <tr class="prop">109 <td valign="top" class="name">110 <label for="systemSection">System Section:</label>111 </td>112 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'systemSection','errors')}">113 <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetInstance?.systemSection?.id}" ></g:select>114 </td>115 </tr>116 117 115 </tbody> 118 116 </table> -
trunk/grails-app/views/asset/list.gsp
r178 r268 25 25 <g:sortableColumn property="name" title="Name" /> 26 26 27 <th>Asset Type</th>28 29 <g:sortableColumn property="costCode" title="Cost Code" />30 31 27 <g:sortableColumn property="description" title="Description" /> 32 28 33 29 <g:sortableColumn property="isActive" title="Is Active" /> 34 30 31 <th>Section</th> 32 35 33 </tr> 36 34 </thead> … … 43 41 <td>${fieldValue(bean:assetInstance, field:'name')}</td> 44 42 45 <td>${fieldValue(bean:assetInstance, field:'assetType')}</td>46 47 <td>${fieldValue(bean:assetInstance, field:'costCode')}</td>48 49 43 <td>${fieldValue(bean:assetInstance, field:'description')}</td> 50 44 51 45 <td>${fieldValue(bean:assetInstance, field:'isActive')}</td> 46 47 <td>${fieldValue(bean:assetInstance, field:'section')}</td> 52 48 53 49 </tr> -
trunk/grails-app/views/asset/show.gsp
r178 r268 37 37 38 38 <tr class="prop"> 39 <td valign="top" class="name">Description:</td> 40 41 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'description')}</td> 42 43 </tr> 44 45 <tr class="prop"> 46 <td valign="top" class="name">Is Active:</td> 47 48 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'isActive')}</td> 49 50 </tr> 51 52 <tr class="prop"> 53 <td valign="top" class="name">Section:</td> 54 55 <td valign="top" class="value"><g:link controller="section" action="show" id="${assetInstance?.section?.id}">${assetInstance?.section?.encodeAsHTML()}</g:link></td> 56 57 </tr> 58 59 <tr class="prop"> 39 60 <td valign="top" class="name">Asset Extended Attributes:</td> 40 61 … … 50 71 51 72 <tr class="prop"> 52 <td valign="top" class="name">Asset Type:</td>73 <td valign="top" class="name">Asset Sub Item:</td> 53 74 54 <td valign="top" class="value"><g:link controller="assetType" action="show" id="${assetInstance?.assetType?.id}">${assetInstance?.assetType?.encodeAsHTML()}</g:link></td> 55 56 </tr> 57 58 <tr class="prop"> 59 <td valign="top" class="name">Cost Code:</td> 60 61 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'costCode')}</td> 62 63 </tr> 64 65 <tr class="prop"> 66 <td valign="top" class="name">Description:</td> 67 68 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'description')}</td> 69 70 </tr> 71 72 <tr class="prop"> 73 <td valign="top" class="name">Is Active:</td> 74 75 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'isActive')}</td> 75 <td valign="top" style="text-align:left;" class="value"> 76 <ul> 77 <g:each var="a" in="${assetInstance.assetSubItem}"> 78 <li><g:link controller="assetSubItem" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 79 </g:each> 80 </ul> 81 </td> 76 82 77 83 </tr> … … 90 96 </tr> 91 97 92 <tr class="prop">93 <td valign="top" class="name">System Section:</td>94 95 <td valign="top" class="value"><g:link controller="systemSection" action="show" id="${assetInstance?.systemSection?.id}">${assetInstance?.systemSection?.encodeAsHTML()}</g:link></td>96 97 </tr>98 99 98 </tbody> 100 99 </table> -
trunk/grails-app/views/assetExtendedAttribute/create.gsp
r178 r268 28 28 <tr class="prop"> 29 29 <td valign="top" class="name"> 30 <label for=" asset">Asset:</label>30 <label for="value">Value:</label> 31 31 </td> 32 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset','errors')}"> 33 <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetExtendedAttributeInstance?.asset?.id}" ></g:select> 34 </td> 35 </tr> 36 37 <tr class="prop"> 38 <td valign="top" class="name"> 39 <label for="assetExtendedAttributeType">Asset Extended Attribute Type:</label> 40 </td> 41 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'assetExtendedAttributeType','errors')}"> 42 <g:select optionKey="id" from="${AssetExtendedAttributeType.list()}" name="assetExtendedAttributeType.id" value="${assetExtendedAttributeInstance?.assetExtendedAttributeType?.id}" ></g:select> 32 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'value','errors')}"> 33 <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:assetExtendedAttributeInstance,field:'value')}"/> 43 34 </td> 44 35 </tr> … … 55 46 <tr class="prop"> 56 47 <td valign="top" class="name"> 57 <label for=" value">Value:</label>48 <label for="asset">Asset:</label> 58 49 </td> 59 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'value','errors')}"> 60 <input type="text" id="value" name="value" value="${fieldValue(bean:assetExtendedAttributeInstance,field:'value')}"/> 50 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset','errors')}"> 51 <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetExtendedAttributeInstance?.asset?.id}" ></g:select> 52 </td> 53 </tr> 54 55 <tr class="prop"> 56 <td valign="top" class="name"> 57 <label for="extendedAttributeType">Extended Attribute Type:</label> 58 </td> 59 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'extendedAttributeType','errors')}"> 60 <g:select optionKey="id" from="${ExtendedAttributeType.list()}" name="extendedAttributeType.id" value="${assetExtendedAttributeInstance?.extendedAttributeType?.id}" ></g:select> 61 61 </td> 62 62 </tr> -
trunk/grails-app/views/assetExtendedAttribute/edit.gsp
r178 r268 31 31 <tr class="prop"> 32 32 <td valign="top" class="name"> 33 <label for=" asset">Asset:</label>33 <label for="value">Value:</label> 34 34 </td> 35 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset','errors')}"> 36 <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetExtendedAttributeInstance?.asset?.id}" ></g:select> 37 </td> 38 </tr> 39 40 <tr class="prop"> 41 <td valign="top" class="name"> 42 <label for="assetExtendedAttributeType">Asset Extended Attribute Type:</label> 43 </td> 44 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'assetExtendedAttributeType','errors')}"> 45 <g:select optionKey="id" from="${AssetExtendedAttributeType.list()}" name="assetExtendedAttributeType.id" value="${assetExtendedAttributeInstance?.assetExtendedAttributeType?.id}" ></g:select> 35 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'value','errors')}"> 36 <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:assetExtendedAttributeInstance,field:'value')}"/> 46 37 </td> 47 38 </tr> … … 58 49 <tr class="prop"> 59 50 <td valign="top" class="name"> 60 <label for=" value">Value:</label>51 <label for="asset">Asset:</label> 61 52 </td> 62 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'value','errors')}"> 63 <input type="text" id="value" name="value" value="${fieldValue(bean:assetExtendedAttributeInstance,field:'value')}"/> 53 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset','errors')}"> 54 <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetExtendedAttributeInstance?.asset?.id}" ></g:select> 55 </td> 56 </tr> 57 58 <tr class="prop"> 59 <td valign="top" class="name"> 60 <label for="extendedAttributeType">Extended Attribute Type:</label> 61 </td> 62 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'extendedAttributeType','errors')}"> 63 <g:select optionKey="id" from="${ExtendedAttributeType.list()}" name="extendedAttributeType.id" value="${assetExtendedAttributeInstance?.extendedAttributeType?.id}" ></g:select> 64 64 </td> 65 65 </tr> -
trunk/grails-app/views/assetExtendedAttribute/list.gsp
r178 r268 23 23 <g:sortableColumn property="id" title="Id" /> 24 24 25 <g:sortableColumn property="value" title="Value" /> 26 27 <g:sortableColumn property="isActive" title="Is Active" /> 28 25 29 <th>Asset</th> 26 30 27 <th> AssetExtended Attribute Type</th>31 <th>Extended Attribute Type</th> 28 32 29 <g:sortableColumn property="isActive" title="Is Active" />30 31 <g:sortableColumn property="value" title="Value" />32 33 33 </tr> 34 34 </thead> … … 39 39 <td><g:link action="show" id="${assetExtendedAttributeInstance.id}">${fieldValue(bean:assetExtendedAttributeInstance, field:'id')}</g:link></td> 40 40 41 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'asset')}</td> 42 43 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'assetExtendedAttributeType')}</td> 41 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'value')}</td> 44 42 45 43 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'isActive')}</td> 46 44 47 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'value')}</td> 45 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'asset')}</td> 46 47 <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'extendedAttributeType')}</td> 48 48 49 49 </tr> -
trunk/grails-app/views/assetExtendedAttribute/show.gsp
r178 r268 30 30 31 31 <tr class="prop"> 32 <td valign="top" class="name"> Asset:</td>32 <td valign="top" class="name">Value:</td> 33 33 34 <td valign="top" class="value"><g:link controller="asset" action="show" id="${assetExtendedAttributeInstance?.asset?.id}">${assetExtendedAttributeInstance?.asset?.encodeAsHTML()}</g:link></td> 35 36 </tr> 37 38 <tr class="prop"> 39 <td valign="top" class="name">Asset Extended Attribute Type:</td> 40 41 <td valign="top" class="value"><g:link controller="assetExtendedAttributeType" action="show" id="${assetExtendedAttributeInstance?.assetExtendedAttributeType?.id}">${assetExtendedAttributeInstance?.assetExtendedAttributeType?.encodeAsHTML()}</g:link></td> 34 <td valign="top" class="value">${fieldValue(bean:assetExtendedAttributeInstance, field:'value')}</td> 42 35 43 36 </tr> … … 51 44 52 45 <tr class="prop"> 53 <td valign="top" class="name"> Value:</td>46 <td valign="top" class="name">Asset:</td> 54 47 55 <td valign="top" class="value">${fieldValue(bean:assetExtendedAttributeInstance, field:'value')}</td> 48 <td valign="top" class="value"><g:link controller="asset" action="show" id="${assetExtendedAttributeInstance?.asset?.id}">${assetExtendedAttributeInstance?.asset?.encodeAsHTML()}</g:link></td> 49 50 </tr> 51 52 <tr class="prop"> 53 <td valign="top" class="name">Extended Attribute Type:</td> 54 55 <td valign="top" class="value"><g:link controller="extendedAttributeType" action="show" id="${assetExtendedAttributeInstance?.extendedAttributeType?.id}">${assetExtendedAttributeInstance?.extendedAttributeType?.encodeAsHTML()}</g:link></td> 56 56 57 57 </tr> -
trunk/grails-app/views/assetSubItem/create.gsp
r178 r268 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Create Asset Type</title>7 <title>Create AssetSubItem</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><g:link class="list" action="list">Asset TypeList</g:link></span>11 <span class="menuButton"><g:link class="list" action="list">AssetSubItem List</g:link></span> 12 12 </div> 13 13 <div class="body"> 14 <h1>Create Asset Type</h1>14 <h1>Create AssetSubItem</h1> 15 15 <g:if test="${flash.message}"> 16 16 <div class="message">${flash.message}</div> 17 17 </g:if> 18 <g:hasErrors bean="${asset TypeInstance}">18 <g:hasErrors bean="${assetSubItemInstance}"> 19 19 <div class="errors"> 20 <g:renderErrors bean="${asset TypeInstance}" as="list" />20 <g:renderErrors bean="${assetSubItemInstance}" as="list" /> 21 21 </div> 22 22 </g:hasErrors> … … 28 28 <tr class="prop"> 29 29 <td valign="top" class="name"> 30 <label for=" costCode">Cost Code:</label>30 <label for="name">Name:</label> 31 31 </td> 32 <td valign="top" class="value ${hasErrors(bean:asset TypeInstance,field:'costCode','errors')}">33 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:assetTypeInstance,field:'costCode')}"/>32 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'name','errors')}"> 33 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetSubItemInstance,field:'name')}"/> 34 34 </td> 35 35 </tr> … … 39 39 <label for="description">Description:</label> 40 40 </td> 41 <td valign="top" class="value ${hasErrors(bean:asset TypeInstance,field:'description','errors')}">42 <input type="text" id="description" name="description" value="${fieldValue(bean:assetTypeInstance,field:'description')}"/>41 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'description','errors')}"> 42 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:assetSubItemInstance,field:'description')}"/> 43 43 </td> 44 44 </tr> … … 48 48 <label for="isActive">Is Active:</label> 49 49 </td> 50 <td valign="top" class="value ${hasErrors(bean:asset TypeInstance,field:'isActive','errors')}">51 <g:checkBox name="isActive" value="${asset TypeInstance?.isActive}" ></g:checkBox>50 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'isActive','errors')}"> 51 <g:checkBox name="isActive" value="${assetSubItemInstance?.isActive}" ></g:checkBox> 52 52 </td> 53 53 </tr> … … 55 55 <tr class="prop"> 56 56 <td valign="top" class="name"> 57 <label for=" name">Name:</label>57 <label for="asset">Asset:</label> 58 58 </td> 59 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'name','errors')}"> 60 <input type="text" id="name" name="name" value="${fieldValue(bean:assetTypeInstance,field:'name')}"/> 59 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'asset','errors')}"> 60 <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetSubItemInstance?.asset?.id}" noSelection="['null':'']"></g:select> 61 </td> 62 </tr> 63 64 <tr class="prop"> 65 <td valign="top" class="name"> 66 <label for="parentItem">Parent Item:</label> 67 </td> 68 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'parentItem','errors')}"> 69 <g:select optionKey="id" from="${AssetSubItem.list()}" name="parentItem.id" value="${assetSubItemInstance?.parentItem?.id}" noSelection="['null':'']"></g:select> 61 70 </td> 62 71 </tr> -
trunk/grails-app/views/assetSubItem/edit.gsp
r178 r268 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Edit Asset Type</title>7 <title>Edit AssetSubItem</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><g:link class="list" action="list">Asset TypeList</g:link></span>12 <span class="menuButton"><g:link class="create" action="create">New Asset Type</g:link></span>11 <span class="menuButton"><g:link class="list" action="list">AssetSubItem List</g:link></span> 12 <span class="menuButton"><g:link class="create" action="create">New AssetSubItem</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1>Edit Asset Type</h1>15 <h1>Edit AssetSubItem</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> 18 18 </g:if> 19 <g:hasErrors bean="${asset TypeInstance}">19 <g:hasErrors bean="${assetSubItemInstance}"> 20 20 <div class="errors"> 21 <g:renderErrors bean="${asset TypeInstance}" as="list" />21 <g:renderErrors bean="${assetSubItemInstance}" as="list" /> 22 22 </div> 23 23 </g:hasErrors> 24 24 <g:form method="post" > 25 <input type="hidden" name="id" value="${asset TypeInstance?.id}" />26 <input type="hidden" name="version" value="${asset TypeInstance?.version}" />25 <input type="hidden" name="id" value="${assetSubItemInstance?.id}" /> 26 <input type="hidden" name="version" value="${assetSubItemInstance?.version}" /> 27 27 <div class="dialog"> 28 28 <table> … … 31 31 <tr class="prop"> 32 32 <td valign="top" class="name"> 33 <label for=" assemblies">Assemblies:</label>33 <label for="name">Name:</label> 34 34 </td> 35 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'assemblies','errors')}"> 36 37 <ul> 38 <g:each var="a" in="${assetTypeInstance?.assemblies?}"> 39 <li><g:link controller="assembly" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 40 </g:each> 41 </ul> 42 <g:link controller="assembly" params="['assetType.id':assetTypeInstance?.id]" action="create">Add Assembly</g:link> 43 44 </td> 45 </tr> 46 47 <tr class="prop"> 48 <td valign="top" class="name"> 49 <label for="assets">Assets:</label> 50 </td> 51 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'assets','errors')}"> 52 53 <ul> 54 <g:each var="a" in="${assetTypeInstance?.assets?}"> 55 <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 56 </g:each> 57 </ul> 58 <g:link controller="asset" params="['assetType.id':assetTypeInstance?.id]" action="create">Add Asset</g:link> 59 60 </td> 61 </tr> 62 63 <tr class="prop"> 64 <td valign="top" class="name"> 65 <label for="costCode">Cost Code:</label> 66 </td> 67 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'costCode','errors')}"> 68 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:assetTypeInstance,field:'costCode')}"/> 35 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'name','errors')}"> 36 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetSubItemInstance,field:'name')}"/> 69 37 </td> 70 38 </tr> … … 74 42 <label for="description">Description:</label> 75 43 </td> 76 <td valign="top" class="value ${hasErrors(bean:asset TypeInstance,field:'description','errors')}">77 <input type="text" id="description" name="description" value="${fieldValue(bean:assetTypeInstance,field:'description')}"/>44 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'description','errors')}"> 45 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:assetSubItemInstance,field:'description')}"/> 78 46 </td> 79 47 </tr> … … 83 51 <label for="isActive">Is Active:</label> 84 52 </td> 85 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'isActive','errors')}"> 86 <g:checkBox name="isActive" value="${assetTypeInstance?.isActive}" ></g:checkBox> 53 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'isActive','errors')}"> 54 <g:checkBox name="isActive" value="${assetSubItemInstance?.isActive}" ></g:checkBox> 55 </td> 56 </tr> 57 58 <tr class="prop"> 59 <td valign="top" class="name"> 60 <label for="asset">Asset:</label> 61 </td> 62 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'asset','errors')}"> 63 <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetSubItemInstance?.asset?.id}" noSelection="['null':'']"></g:select> 64 </td> 65 </tr> 66 67 <tr class="prop"> 68 <td valign="top" class="name"> 69 <label for="parentItem">Parent Item:</label> 70 </td> 71 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'parentItem','errors')}"> 72 <g:select optionKey="id" from="${AssetSubItem.list()}" name="parentItem.id" value="${assetSubItemInstance?.parentItem?.id}" noSelection="['null':'']"></g:select> 73 </td> 74 </tr> 75 76 <tr class="prop"> 77 <td valign="top" class="name"> 78 <label for="assetSubItemExtendedAttributes">Asset Sub Item Extended Attributes:</label> 79 </td> 80 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'assetSubItemExtendedAttributes','errors')}"> 81 82 <ul> 83 <g:each var="a" in="${assetSubItemInstance?.assetSubItemExtendedAttributes?}"> 84 <li><g:link controller="assetSubItemExtendedAttribute" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 85 </g:each> 86 </ul> 87 <g:link controller="assetSubItemExtendedAttribute" params="['assetSubItem.id':assetSubItemInstance?.id]" action="create">Add AssetSubItemExtendedAttribute</g:link> 88 87 89 </td> 88 90 </tr> … … 92 94 <label for="maintenanceActions">Maintenance Actions:</label> 93 95 </td> 94 <td valign="top" class="value ${hasErrors(bean:asset TypeInstance,field:'maintenanceActions','errors')}">96 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'maintenanceActions','errors')}"> 95 97 96 98 <ul> 97 <g:each var="m" in="${asset TypeInstance?.maintenanceActions?}">99 <g:each var="m" in="${assetSubItemInstance?.maintenanceActions?}"> 98 100 <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 99 101 </g:each> 100 102 </ul> 101 <g:link controller="maintenanceAction" params="['asset Type.id':assetTypeInstance?.id]" action="create">Add MaintenanceAction</g:link>103 <g:link controller="maintenanceAction" params="['assetSubItem.id':assetSubItemInstance?.id]" action="create">Add MaintenanceAction</g:link> 102 104 103 105 </td> … … 106 108 <tr class="prop"> 107 109 <td valign="top" class="name"> 108 <label for=" name">Name:</label>110 <label for="subItems">Sub Items:</label> 109 111 </td> 110 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'name','errors')}"> 111 <input type="text" id="name" name="name" value="${fieldValue(bean:assetTypeInstance,field:'name')}"/> 112 <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'subItems','errors')}"> 113 114 <ul> 115 <g:each var="s" in="${assetSubItemInstance?.subItems?}"> 116 <li><g:link controller="assetSubItem" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 117 </g:each> 118 </ul> 119 <g:link controller="assetSubItem" params="['assetSubItem.id':assetSubItemInstance?.id]" action="create">Add AssetSubItem</g:link> 120 112 121 </td> 113 122 </tr> -
trunk/grails-app/views/assetSubItem/list.gsp
r178 r268 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Asset TypeList</title>7 <title>AssetSubItem List</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><g:link class="create" action="create">New Asset Type</g:link></span>11 <span class="menuButton"><g:link class="create" action="create">New AssetSubItem</g:link></span> 12 12 </div> 13 13 <div class="body"> 14 <h1>Asset TypeList</h1>14 <h1>AssetSubItem List</h1> 15 15 <g:if test="${flash.message}"> 16 16 <div class="message">${flash.message}</div> … … 23 23 <g:sortableColumn property="id" title="Id" /> 24 24 25 <g:sortableColumn property=" costCode" title="Cost Code" />25 <g:sortableColumn property="name" title="Name" /> 26 26 27 27 <g:sortableColumn property="description" title="Description" /> … … 29 29 <g:sortableColumn property="isActive" title="Is Active" /> 30 30 31 <g:sortableColumn property="name" title="Name" /> 32 31 <th>Asset</th> 32 33 <th>Parent Item</th> 34 33 35 </tr> 34 36 </thead> 35 37 <tbody> 36 <g:each in="${asset TypeInstanceList}" status="i" var="assetTypeInstance">38 <g:each in="${assetSubItemInstanceList}" status="i" var="assetSubItemInstance"> 37 39 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 38 40 39 <td><g:link action="show" id="${asset TypeInstance.id}">${fieldValue(bean:assetTypeInstance, field:'id')}</g:link></td>41 <td><g:link action="show" id="${assetSubItemInstance.id}">${fieldValue(bean:assetSubItemInstance, field:'id')}</g:link></td> 40 42 41 <td>${fieldValue(bean:asset TypeInstance, field:'costCode')}</td>43 <td>${fieldValue(bean:assetSubItemInstance, field:'name')}</td> 42 44 43 <td>${fieldValue(bean:asset TypeInstance, field:'description')}</td>45 <td>${fieldValue(bean:assetSubItemInstance, field:'description')}</td> 44 46 45 <td>${fieldValue(bean:asset TypeInstance, field:'isActive')}</td>47 <td>${fieldValue(bean:assetSubItemInstance, field:'isActive')}</td> 46 48 47 <td>${fieldValue(bean:assetTypeInstance, field:'name')}</td> 49 <td>${fieldValue(bean:assetSubItemInstance, field:'asset')}</td> 50 51 <td>${fieldValue(bean:assetSubItemInstance, field:'parentItem')}</td> 48 52 49 53 </tr> … … 53 57 </div> 54 58 <div class="paginateButtons"> 55 <g:paginate total="${asset TypeInstanceTotal}" />59 <g:paginate total="${assetSubItemInstanceTotal}" /> 56 60 </div> 57 61 </div> -
trunk/grails-app/views/assetSubItem/show.gsp
r178 r268 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Show Asset Type</title>7 <title>Show AssetSubItem</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><g:link class="list" action="list">Asset TypeList</g:link></span>12 <span class="menuButton"><g:link class="create" action="create">New Asset Type</g:link></span>11 <span class="menuButton"><g:link class="list" action="list">AssetSubItem List</g:link></span> 12 <span class="menuButton"><g:link class="create" action="create">New AssetSubItem</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1>Show Asset Type</h1>15 <h1>Show AssetSubItem</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> … … 25 25 <td valign="top" class="name">Id:</td> 26 26 27 <td valign="top" class="value">${fieldValue(bean:asset TypeInstance, field:'id')}</td>27 <td valign="top" class="value">${fieldValue(bean:assetSubItemInstance, field:'id')}</td> 28 28 29 29 </tr> 30 30 31 31 <tr class="prop"> 32 <td valign="top" class="name"> Assemblies:</td>32 <td valign="top" class="name">Name:</td> 33 33 34 <td valign="top" style="text-align:left;" class="value"> 35 <ul> 36 <g:each var="a" in="${assetTypeInstance.assemblies}"> 37 <li><g:link controller="assembly" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 38 </g:each> 39 </ul> 40 </td> 41 42 </tr> 43 44 <tr class="prop"> 45 <td valign="top" class="name">Assets:</td> 46 47 <td valign="top" style="text-align:left;" class="value"> 48 <ul> 49 <g:each var="a" in="${assetTypeInstance.assets}"> 50 <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 51 </g:each> 52 </ul> 53 </td> 54 55 </tr> 56 57 <tr class="prop"> 58 <td valign="top" class="name">Cost Code:</td> 59 60 <td valign="top" class="value">${fieldValue(bean:assetTypeInstance, field:'costCode')}</td> 34 <td valign="top" class="value">${fieldValue(bean:assetSubItemInstance, field:'name')}</td> 61 35 62 36 </tr> … … 65 39 <td valign="top" class="name">Description:</td> 66 40 67 <td valign="top" class="value">${fieldValue(bean:asset TypeInstance, field:'description')}</td>41 <td valign="top" class="value">${fieldValue(bean:assetSubItemInstance, field:'description')}</td> 68 42 69 43 </tr> … … 72 46 <td valign="top" class="name">Is Active:</td> 73 47 74 <td valign="top" class="value">${fieldValue(bean:assetTypeInstance, field:'isActive')}</td> 48 <td valign="top" class="value">${fieldValue(bean:assetSubItemInstance, field:'isActive')}</td> 49 50 </tr> 51 52 <tr class="prop"> 53 <td valign="top" class="name">Asset:</td> 54 55 <td valign="top" class="value"><g:link controller="asset" action="show" id="${assetSubItemInstance?.asset?.id}">${assetSubItemInstance?.asset?.encodeAsHTML()}</g:link></td> 56 57 </tr> 58 59 <tr class="prop"> 60 <td valign="top" class="name">Parent Item:</td> 61 62 <td valign="top" class="value"><g:link controller="assetSubItem" action="show" id="${assetSubItemInstance?.parentItem?.id}">${assetSubItemInstance?.parentItem?.encodeAsHTML()}</g:link></td> 63 64 </tr> 65 66 <tr class="prop"> 67 <td valign="top" class="name">Asset Sub Item Extended Attributes:</td> 68 69 <td valign="top" style="text-align:left;" class="value"> 70 <ul> 71 <g:each var="a" in="${assetSubItemInstance.assetSubItemExtendedAttributes}"> 72 <li><g:link controller="assetSubItemExtendedAttribute" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 73 </g:each> 74 </ul> 75 </td> 75 76 76 77 </tr> … … 81 82 <td valign="top" style="text-align:left;" class="value"> 82 83 <ul> 83 <g:each var="m" in="${asset TypeInstance.maintenanceActions}">84 <g:each var="m" in="${assetSubItemInstance.maintenanceActions}"> 84 85 <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 85 86 </g:each> … … 90 91 91 92 <tr class="prop"> 92 <td valign="top" class="name"> Name:</td>93 <td valign="top" class="name">Sub Items:</td> 93 94 94 <td valign="top" class="value">${fieldValue(bean:assetTypeInstance, field:'name')}</td> 95 <td valign="top" style="text-align:left;" class="value"> 96 <ul> 97 <g:each var="s" in="${assetSubItemInstance.subItems}"> 98 <li><g:link controller="assetSubItem" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 99 </g:each> 100 </ul> 101 </td> 95 102 96 103 </tr> … … 101 108 <div class="buttons"> 102 109 <g:form> 103 <input type="hidden" name="id" value="${asset TypeInstance?.id}" />110 <input type="hidden" name="id" value="${assetSubItemInstance?.id}" /> 104 111 <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> 105 112 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> -
trunk/grails-app/views/department/create.gsp
r178 r268 31 31 </td> 32 32 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'name','errors')}"> 33 <input type="text" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/>33 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/> 34 34 </td> 35 35 </tr> … … 40 40 </td> 41 41 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'description','errors')}"> 42 <input type="text" id="description" name="description" value="${fieldValue(bean:departmentInstance,field:'description')}"/> 43 </td> 44 </tr> 45 46 <tr class="prop"> 47 <td valign="top" class="name"> 48 <label for="costCode">Cost Code:</label> 49 </td> 50 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'costCode','errors')}"> 51 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:departmentInstance,field:'costCode')}"/> 42 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:departmentInstance,field:'description')}"/> 52 43 </td> 53 44 </tr> -
trunk/grails-app/views/department/edit.gsp
r178 r268 34 34 </td> 35 35 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'name','errors')}"> 36 <input type="text" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/>36 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/> 37 37 </td> 38 38 </tr> … … 43 43 </td> 44 44 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'description','errors')}"> 45 <input type="text" id="description" name="description" value="${fieldValue(bean:departmentInstance,field:'description')}"/> 46 </td> 47 </tr> 48 49 <tr class="prop"> 50 <td valign="top" class="name"> 51 <label for="costCode">Cost Code:</label> 52 </td> 53 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'costCode','errors')}"> 54 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:departmentInstance,field:'costCode')}"/> 45 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:departmentInstance,field:'description')}"/> 55 46 </td> 56 47 </tr> … … 67 58 <tr class="prop"> 68 59 <td valign="top" class="name"> 69 <label for=" persons">Persons:</label>60 <label for="departmentExtendedAttributes">Department Extended Attributes:</label> 70 61 </td> 71 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:' persons','errors')}">62 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'departmentExtendedAttributes','errors')}"> 72 63 73 64 <ul> 74 <g:each var=" p" in="${departmentInstance?.persons?}">75 <li><g:link controller=" person" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></li>65 <g:each var="d" in="${departmentInstance?.departmentExtendedAttributes?}"> 66 <li><g:link controller="departmentExtendedAttribute" action="show" id="${d.id}">${d?.encodeAsHTML()}</g:link></li> 76 67 </g:each> 77 68 </ul> 78 <g:link controller=" person" params="['department.id':departmentInstance?.id]" action="create">Add Person</g:link>69 <g:link controller="departmentExtendedAttribute" params="['department.id':departmentInstance?.id]" action="create">Add DepartmentExtendedAttribute</g:link> 79 70 80 71 </td> … … 83 74 <tr class="prop"> 84 75 <td valign="top" class="name"> 85 <label for="s ystemSections">SystemSections:</label>76 <label for="sections">Sections:</label> 86 77 </td> 87 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'s ystemSections','errors')}">78 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'sections','errors')}"> 88 79 89 80 <ul> 90 <g:each var="s" in="${departmentInstance?.s ystemSections?}">91 <li><g:link controller="s ystemSection" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>81 <g:each var="s" in="${departmentInstance?.sections?}"> 82 <li><g:link controller="section" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 92 83 </g:each> 93 84 </ul> 94 <g:link controller="s ystemSection" params="['department.id':departmentInstance?.id]" action="create">Add SystemSection</g:link>85 <g:link controller="section" params="['department.id':departmentInstance?.id]" action="create">Add Section</g:link> 95 86 96 87 </td> -
trunk/grails-app/views/department/list.gsp
r178 r268 27 27 <g:sortableColumn property="description" title="Description" /> 28 28 29 <g:sortableColumn property="costCode" title="Cost Code" />30 31 29 <g:sortableColumn property="isActive" title="Is Active" /> 32 30 … … 43 41 <td>${fieldValue(bean:departmentInstance, field:'description')}</td> 44 42 45 <td>${fieldValue(bean:departmentInstance, field:'costCode')}</td>46 47 43 <td>${fieldValue(bean:departmentInstance, field:'isActive')}</td> 48 44 -
trunk/grails-app/views/department/show.gsp
r178 r268 44 44 45 45 <tr class="prop"> 46 <td valign="top" class="name">Cost Code:</td>47 48 <td valign="top" class="value">${fieldValue(bean:departmentInstance, field:'costCode')}</td>49 50 </tr>51 52 <tr class="prop">53 46 <td valign="top" class="name">Is Active:</td> 54 47 … … 58 51 59 52 <tr class="prop"> 60 <td valign="top" class="name"> Persons:</td>53 <td valign="top" class="name">Department Extended Attributes:</td> 61 54 62 55 <td valign="top" style="text-align:left;" class="value"> 63 56 <ul> 64 <g:each var=" p" in="${departmentInstance.persons}">65 <li><g:link controller=" person" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></li>57 <g:each var="d" in="${departmentInstance.departmentExtendedAttributes}"> 58 <li><g:link controller="departmentExtendedAttribute" action="show" id="${d.id}">${d?.encodeAsHTML()}</g:link></li> 66 59 </g:each> 67 60 </ul> … … 71 64 72 65 <tr class="prop"> 73 <td valign="top" class="name">S ystem Sections:</td>66 <td valign="top" class="name">Sections:</td> 74 67 75 68 <td valign="top" style="text-align:left;" class="value"> 76 69 <ul> 77 <g:each var="s" in="${departmentInstance.s ystemSections}">78 <li><g:link controller="s ystemSection" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>70 <g:each var="s" in="${departmentInstance.sections}"> 71 <li><g:link controller="section" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 79 72 </g:each> 80 73 </ul> -
trunk/grails-app/views/extendedAttributeType/create.gsp
r178 r268 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Create AssetExtendedAttributeType</title>7 <title>Create ExtendedAttributeType</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><g:link class="list" action="list"> AssetExtendedAttributeType List</g:link></span>11 <span class="menuButton"><g:link class="list" action="list">ExtendedAttributeType List</g:link></span> 12 12 </div> 13 13 <div class="body"> 14 <h1>Create AssetExtendedAttributeType</h1>14 <h1>Create ExtendedAttributeType</h1> 15 15 <g:if test="${flash.message}"> 16 16 <div class="message">${flash.message}</div> 17 17 </g:if> 18 <g:hasErrors bean="${ assetExtendedAttributeTypeInstance}">18 <g:hasErrors bean="${extendedAttributeTypeInstance}"> 19 19 <div class="errors"> 20 <g:renderErrors bean="${ assetExtendedAttributeTypeInstance}" as="list" />20 <g:renderErrors bean="${extendedAttributeTypeInstance}" as="list" /> 21 21 </div> 22 22 </g:hasErrors> … … 28 28 <tr class="prop"> 29 29 <td valign="top" class="name"> 30 <label for="name">Name:</label> 31 </td> 32 <td valign="top" class="value ${hasErrors(bean:extendedAttributeTypeInstance,field:'name','errors')}"> 33 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:extendedAttributeTypeInstance,field:'name')}"/> 34 </td> 35 </tr> 36 37 <tr class="prop"> 38 <td valign="top" class="name"> 30 39 <label for="description">Description:</label> 31 40 </td> 32 <td valign="top" class="value ${hasErrors(bean: assetExtendedAttributeTypeInstance,field:'description','errors')}">33 <input type="text" id="description" name="description" value="${fieldValue(bean:assetExtendedAttributeTypeInstance,field:'description')}"/>41 <td valign="top" class="value ${hasErrors(bean:extendedAttributeTypeInstance,field:'description','errors')}"> 42 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:extendedAttributeTypeInstance,field:'description')}"/> 34 43 </td> 35 44 </tr> … … 39 48 <label for="isActive">Is Active:</label> 40 49 </td> 41 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeTypeInstance,field:'isActive','errors')}"> 42 <g:checkBox name="isActive" value="${assetExtendedAttributeTypeInstance?.isActive}" ></g:checkBox> 43 </td> 44 </tr> 45 46 <tr class="prop"> 47 <td valign="top" class="name"> 48 <label for="name">Name:</label> 49 </td> 50 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeTypeInstance,field:'name','errors')}"> 51 <input type="text" id="name" name="name" value="${fieldValue(bean:assetExtendedAttributeTypeInstance,field:'name')}"/> 50 <td valign="top" class="value ${hasErrors(bean:extendedAttributeTypeInstance,field:'isActive','errors')}"> 51 <g:checkBox name="isActive" value="${extendedAttributeTypeInstance?.isActive}" ></g:checkBox> 52 52 </td> 53 53 </tr> -
trunk/grails-app/views/extendedAttributeType/edit.gsp
r178 r268 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Edit AssetExtendedAttributeType</title>7 <title>Edit ExtendedAttributeType</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><g:link class="list" action="list"> AssetExtendedAttributeType List</g:link></span>12 <span class="menuButton"><g:link class="create" action="create">New AssetExtendedAttributeType</g:link></span>11 <span class="menuButton"><g:link class="list" action="list">ExtendedAttributeType List</g:link></span> 12 <span class="menuButton"><g:link class="create" action="create">New ExtendedAttributeType</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1>Edit AssetExtendedAttributeType</h1>15 <h1>Edit ExtendedAttributeType</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> 18 18 </g:if> 19 <g:hasErrors bean="${ assetExtendedAttributeTypeInstance}">19 <g:hasErrors bean="${extendedAttributeTypeInstance}"> 20 20 <div class="errors"> 21 <g:renderErrors bean="${ assetExtendedAttributeTypeInstance}" as="list" />21 <g:renderErrors bean="${extendedAttributeTypeInstance}" as="list" /> 22 22 </div> 23 23 </g:hasErrors> 24 24 <g:form method="post" > 25 <input type="hidden" name="id" value="${ assetExtendedAttributeTypeInstance?.id}" />26 <input type="hidden" name="version" value="${ assetExtendedAttributeTypeInstance?.version}" />25 <input type="hidden" name="id" value="${extendedAttributeTypeInstance?.id}" /> 26 <input type="hidden" name="version" value="${extendedAttributeTypeInstance?.version}" /> 27 27 <div class="dialog"> 28 28 <table> … … 31 31 <tr class="prop"> 32 32 <td valign="top" class="name"> 33 <label for=" assetExtendedAttributes">Asset Extended Attributes:</label>33 <label for="name">Name:</label> 34 34 </td> 35 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeTypeInstance,field:'assetExtendedAttributes','errors')}"> 36 37 <ul> 38 <g:each var="a" in="${assetExtendedAttributeTypeInstance?.assetExtendedAttributes?}"> 39 <li><g:link controller="assetExtendedAttribute" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 40 </g:each> 41 </ul> 42 <g:link controller="assetExtendedAttribute" params="['assetExtendedAttributeType.id':assetExtendedAttributeTypeInstance?.id]" action="create">Add AssetExtendedAttribute</g:link> 43 35 <td valign="top" class="value ${hasErrors(bean:extendedAttributeTypeInstance,field:'name','errors')}"> 36 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:extendedAttributeTypeInstance,field:'name')}"/> 44 37 </td> 45 38 </tr> … … 49 42 <label for="description">Description:</label> 50 43 </td> 51 <td valign="top" class="value ${hasErrors(bean: assetExtendedAttributeTypeInstance,field:'description','errors')}">52 <input type="text" id="description" name="description" value="${fieldValue(bean:assetExtendedAttributeTypeInstance,field:'description')}"/>44 <td valign="top" class="value ${hasErrors(bean:extendedAttributeTypeInstance,field:'description','errors')}"> 45 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:extendedAttributeTypeInstance,field:'description')}"/> 53 46 </td> 54 47 </tr> … … 58 51 <label for="isActive">Is Active:</label> 59 52 </td> 60 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeTypeInstance,field:'isActive','errors')}"> 61 <g:checkBox name="isActive" value="${assetExtendedAttributeTypeInstance?.isActive}" ></g:checkBox> 62 </td> 63 </tr> 64 65 <tr class="prop"> 66 <td valign="top" class="name"> 67 <label for="name">Name:</label> 68 </td> 69 <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeTypeInstance,field:'name','errors')}"> 70 <input type="text" id="name" name="name" value="${fieldValue(bean:assetExtendedAttributeTypeInstance,field:'name')}"/> 53 <td valign="top" class="value ${hasErrors(bean:extendedAttributeTypeInstance,field:'isActive','errors')}"> 54 <g:checkBox name="isActive" value="${extendedAttributeTypeInstance?.isActive}" ></g:checkBox> 71 55 </td> 72 56 </tr> -
trunk/grails-app/views/extendedAttributeType/list.gsp
r178 r268 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title> AssetExtendedAttributeType List</title>7 <title>ExtendedAttributeType List</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><g:link class="create" action="create">New AssetExtendedAttributeType</g:link></span>11 <span class="menuButton"><g:link class="create" action="create">New ExtendedAttributeType</g:link></span> 12 12 </div> 13 13 <div class="body"> 14 <h1> AssetExtendedAttributeType List</h1>14 <h1>ExtendedAttributeType List</h1> 15 15 <g:if test="${flash.message}"> 16 16 <div class="message">${flash.message}</div> … … 23 23 <g:sortableColumn property="id" title="Id" /> 24 24 25 <g:sortableColumn property="name" title="Name" /> 26 25 27 <g:sortableColumn property="description" title="Description" /> 26 28 27 29 <g:sortableColumn property="isActive" title="Is Active" /> 28 30 29 <g:sortableColumn property="name" title="Name" />30 31 31 </tr> 32 32 </thead> 33 33 <tbody> 34 <g:each in="${ assetExtendedAttributeTypeInstanceList}" status="i" var="assetExtendedAttributeTypeInstance">34 <g:each in="${extendedAttributeTypeInstanceList}" status="i" var="extendedAttributeTypeInstance"> 35 35 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 36 36 37 <td><g:link action="show" id="${ assetExtendedAttributeTypeInstance.id}">${fieldValue(bean:assetExtendedAttributeTypeInstance, field:'id')}</g:link></td>37 <td><g:link action="show" id="${extendedAttributeTypeInstance.id}">${fieldValue(bean:extendedAttributeTypeInstance, field:'id')}</g:link></td> 38 38 39 <td>${fieldValue(bean: assetExtendedAttributeTypeInstance, field:'description')}</td>39 <td>${fieldValue(bean:extendedAttributeTypeInstance, field:'name')}</td> 40 40 41 <td>${fieldValue(bean: assetExtendedAttributeTypeInstance, field:'isActive')}</td>41 <td>${fieldValue(bean:extendedAttributeTypeInstance, field:'description')}</td> 42 42 43 <td>${fieldValue(bean: assetExtendedAttributeTypeInstance, field:'name')}</td>43 <td>${fieldValue(bean:extendedAttributeTypeInstance, field:'isActive')}</td> 44 44 45 45 </tr> … … 49 49 </div> 50 50 <div class="paginateButtons"> 51 <g:paginate total="${ assetExtendedAttributeTypeInstanceTotal}" />51 <g:paginate total="${extendedAttributeTypeInstanceTotal}" /> 52 52 </div> 53 53 </div> -
trunk/grails-app/views/extendedAttributeType/show.gsp
r178 r268 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Show AssetExtendedAttributeType</title>7 <title>Show ExtendedAttributeType</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><g:link class="list" action="list"> AssetExtendedAttributeType List</g:link></span>12 <span class="menuButton"><g:link class="create" action="create">New AssetExtendedAttributeType</g:link></span>11 <span class="menuButton"><g:link class="list" action="list">ExtendedAttributeType List</g:link></span> 12 <span class="menuButton"><g:link class="create" action="create">New ExtendedAttributeType</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1>Show AssetExtendedAttributeType</h1>15 <h1>Show ExtendedAttributeType</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> … … 25 25 <td valign="top" class="name">Id:</td> 26 26 27 <td valign="top" class="value">${fieldValue(bean: assetExtendedAttributeTypeInstance, field:'id')}</td>27 <td valign="top" class="value">${fieldValue(bean:extendedAttributeTypeInstance, field:'id')}</td> 28 28 29 29 </tr> 30 30 31 31 <tr class="prop"> 32 <td valign="top" class="name"> Asset Extended Attributes:</td>32 <td valign="top" class="name">Name:</td> 33 33 34 <td valign="top" style="text-align:left;" class="value"> 35 <ul> 36 <g:each var="a" in="${assetExtendedAttributeTypeInstance.assetExtendedAttributes}"> 37 <li><g:link controller="assetExtendedAttribute" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 38 </g:each> 39 </ul> 40 </td> 34 <td valign="top" class="value">${fieldValue(bean:extendedAttributeTypeInstance, field:'name')}</td> 41 35 42 36 </tr> … … 45 39 <td valign="top" class="name">Description:</td> 46 40 47 <td valign="top" class="value">${fieldValue(bean: assetExtendedAttributeTypeInstance, field:'description')}</td>41 <td valign="top" class="value">${fieldValue(bean:extendedAttributeTypeInstance, field:'description')}</td> 48 42 49 43 </tr> … … 52 46 <td valign="top" class="name">Is Active:</td> 53 47 54 <td valign="top" class="value">${fieldValue(bean:assetExtendedAttributeTypeInstance, field:'isActive')}</td> 55 56 </tr> 57 58 <tr class="prop"> 59 <td valign="top" class="name">Name:</td> 60 61 <td valign="top" class="value">${fieldValue(bean:assetExtendedAttributeTypeInstance, field:'name')}</td> 48 <td valign="top" class="value">${fieldValue(bean:extendedAttributeTypeInstance, field:'isActive')}</td> 62 49 63 50 </tr> … … 68 55 <div class="buttons"> 69 56 <g:form> 70 <input type="hidden" name="id" value="${ assetExtendedAttributeTypeInstance?.id}" />57 <input type="hidden" name="id" value="${extendedAttributeTypeInstance?.id}" /> 71 58 <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> 72 59 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> -
trunk/grails-app/views/maintenanceAction/create.gsp
r178 r268 28 28 <tr class="prop"> 29 29 <td valign="top" class="name"> 30 <label for=" maintenancePolicy">Maintenance Policy:</label>30 <label for="section">Section:</label> 31 31 </td> 32 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenancePolicy','errors')}"> 33 <g:select optionKey="id" from="${MaintenancePolicy.list()}" name="maintenancePolicy.id" value="${maintenanceActionInstance?.maintenancePolicy?.id}" noSelection="['null':'']"></g:select> 34 </td> 35 </tr> 36 37 <tr class="prop"> 38 <td valign="top" class="name"> 39 <label for="systemSection">System Section:</label> 40 </td> 41 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'systemSection','errors')}"> 42 <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${maintenanceActionInstance?.systemSection?.id}" noSelection="['null':'']"></g:select> 32 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'section','errors')}"> 33 <g:select optionKey="id" from="${Section.list()}" name="section.id" value="${maintenanceActionInstance?.section?.id}" noSelection="['null':'']"></g:select> 43 34 </td> 44 35 </tr> … … 55 46 <tr class="prop"> 56 47 <td valign="top" class="name"> 57 <label for="asset Type">Asset Type:</label>48 <label for="assetSubItem">Asset Sub Item:</label> 58 49 </td> 59 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'asset Type','errors')}">60 <g:select optionKey="id" from="${Asset Type.list()}" name="assetType.id" value="${maintenanceActionInstance?.assetType?.id}" noSelection="['null':'']"></g:select>50 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'assetSubItem','errors')}"> 51 <g:select optionKey="id" from="${AssetSubItem.list()}" name="assetSubItem.id" value="${maintenanceActionInstance?.assetSubItem?.id}" noSelection="['null':'']"></g:select> 61 52 </td> 62 53 </tr> … … 64 55 <tr class="prop"> 65 56 <td valign="top" class="name"> 66 <label for=" assembly">Assembly:</label>57 <label for="maintenancePolicy">Maintenance Policy:</label> 67 58 </td> 68 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'assembly','errors')}"> 69 <g:select optionKey="id" from="${Assembly.list()}" name="assembly.id" value="${maintenanceActionInstance?.assembly?.id}" noSelection="['null':'']"></g:select> 70 </td> 71 </tr> 72 73 <tr class="prop"> 74 <td valign="top" class="name"> 75 <label for="subAssembly">Sub Assembly:</label> 76 </td> 77 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'subAssembly','errors')}"> 78 <g:select optionKey="id" from="${SubAssembly.list()}" name="subAssembly.id" value="${maintenanceActionInstance?.subAssembly?.id}" noSelection="['null':'']"></g:select> 79 </td> 80 </tr> 81 82 <tr class="prop"> 83 <td valign="top" class="name"> 84 <label for="componentItem">Component Item:</label> 85 </td> 86 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'componentItem','errors')}"> 87 <g:select optionKey="id" from="${ComponentItem.list()}" name="componentItem.id" value="${maintenanceActionInstance?.componentItem?.id}" noSelection="['null':'']"></g:select> 59 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenancePolicy','errors')}"> 60 <g:select optionKey="id" from="${MaintenancePolicy.list()}" name="maintenancePolicy.id" value="${maintenanceActionInstance?.maintenancePolicy?.id}" noSelection="['null':'']"></g:select> 88 61 </td> 89 62 </tr> … … 109 82 <tr class="prop"> 110 83 <td valign="top" class="name"> 111 <label for=" isActive">Is Active:</label>84 <label for="reasoning">Reasoning:</label> 112 85 </td> 113 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:' isActive','errors')}">114 < g:checkBox name="isActive" value="${maintenanceActionInstance?.isActive}" ></g:checkBox>86 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'reasoning','errors')}"> 87 <input type="text" id="reasoning" name="reasoning" value="${fieldValue(bean:maintenanceActionInstance,field:'reasoning')}"/> 115 88 </td> 116 89 </tr> … … 118 91 <tr class="prop"> 119 92 <td valign="top" class="name"> 120 <label for=" reasoning">Reasoning:</label>93 <label for="isActive">Is Active:</label> 121 94 </td> 122 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:' reasoning','errors')}">123 < input type="text" id="reasoning" name="reasoning" value="${fieldValue(bean:maintenanceActionInstance,field:'reasoning')}"/>95 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'isActive','errors')}"> 96 <g:checkBox name="isActive" value="${maintenanceActionInstance?.isActive}" ></g:checkBox> 124 97 </td> 125 98 </tr> -
trunk/grails-app/views/maintenanceAction/edit.gsp
r178 r268 31 31 <tr class="prop"> 32 32 <td valign="top" class="name"> 33 <label for=" maintenancePolicy">Maintenance Policy:</label>33 <label for="section">Section:</label> 34 34 </td> 35 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenancePolicy','errors')}"> 36 <g:select optionKey="id" from="${MaintenancePolicy.list()}" name="maintenancePolicy.id" value="${maintenanceActionInstance?.maintenancePolicy?.id}" noSelection="['null':'']"></g:select> 37 </td> 38 </tr> 39 40 <tr class="prop"> 41 <td valign="top" class="name"> 42 <label for="systemSection">System Section:</label> 43 </td> 44 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'systemSection','errors')}"> 45 <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${maintenanceActionInstance?.systemSection?.id}" noSelection="['null':'']"></g:select> 35 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'section','errors')}"> 36 <g:select optionKey="id" from="${Section.list()}" name="section.id" value="${maintenanceActionInstance?.section?.id}" noSelection="['null':'']"></g:select> 46 37 </td> 47 38 </tr> … … 58 49 <tr class="prop"> 59 50 <td valign="top" class="name"> 60 <label for="asset Type">Asset Type:</label>51 <label for="assetSubItem">Asset Sub Item:</label> 61 52 </td> 62 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'asset Type','errors')}">63 <g:select optionKey="id" from="${Asset Type.list()}" name="assetType.id" value="${maintenanceActionInstance?.assetType?.id}" noSelection="['null':'']"></g:select>53 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'assetSubItem','errors')}"> 54 <g:select optionKey="id" from="${AssetSubItem.list()}" name="assetSubItem.id" value="${maintenanceActionInstance?.assetSubItem?.id}" noSelection="['null':'']"></g:select> 64 55 </td> 65 56 </tr> … … 67 58 <tr class="prop"> 68 59 <td valign="top" class="name"> 69 <label for=" assembly">Assembly:</label>60 <label for="maintenancePolicy">Maintenance Policy:</label> 70 61 </td> 71 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'assembly','errors')}"> 72 <g:select optionKey="id" from="${Assembly.list()}" name="assembly.id" value="${maintenanceActionInstance?.assembly?.id}" noSelection="['null':'']"></g:select> 73 </td> 74 </tr> 75 76 <tr class="prop"> 77 <td valign="top" class="name"> 78 <label for="subAssembly">Sub Assembly:</label> 79 </td> 80 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'subAssembly','errors')}"> 81 <g:select optionKey="id" from="${SubAssembly.list()}" name="subAssembly.id" value="${maintenanceActionInstance?.subAssembly?.id}" noSelection="['null':'']"></g:select> 82 </td> 83 </tr> 84 85 <tr class="prop"> 86 <td valign="top" class="name"> 87 <label for="componentItem">Component Item:</label> 88 </td> 89 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'componentItem','errors')}"> 90 <g:select optionKey="id" from="${ComponentItem.list()}" name="componentItem.id" value="${maintenanceActionInstance?.componentItem?.id}" noSelection="['null':'']"></g:select> 62 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenancePolicy','errors')}"> 63 <g:select optionKey="id" from="${MaintenancePolicy.list()}" name="maintenancePolicy.id" value="${maintenanceActionInstance?.maintenancePolicy?.id}" noSelection="['null':'']"></g:select> 91 64 </td> 92 65 </tr> … … 112 85 <tr class="prop"> 113 86 <td valign="top" class="name"> 114 <label for=" isActive">Is Active:</label>87 <label for="reasoning">Reasoning:</label> 115 88 </td> 116 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:' isActive','errors')}">117 < g:checkBox name="isActive" value="${maintenanceActionInstance?.isActive}" ></g:checkBox>89 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'reasoning','errors')}"> 90 <input type="text" id="reasoning" name="reasoning" value="${fieldValue(bean:maintenanceActionInstance,field:'reasoning')}"/> 118 91 </td> 119 92 </tr> … … 121 94 <tr class="prop"> 122 95 <td valign="top" class="name"> 123 <label for=" reasoning">Reasoning:</label>96 <label for="isActive">Is Active:</label> 124 97 </td> 125 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:' reasoning','errors')}">126 < input type="text" id="reasoning" name="reasoning" value="${fieldValue(bean:maintenanceActionInstance,field:'reasoning')}"/>98 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'isActive','errors')}"> 99 <g:checkBox name="isActive" value="${maintenanceActionInstance?.isActive}" ></g:checkBox> 127 100 </td> 128 101 </tr> -
trunk/grails-app/views/maintenanceAction/list.gsp
r178 r268 23 23 <g:sortableColumn property="id" title="Id" /> 24 24 25 <th>Maintenance Policy</th> 26 27 <th>System Section</th> 25 <th>Section</th> 28 26 29 27 <th>Asset</th> 30 28 31 <th>Asset Type</th>29 <th>Asset Sub Item</th> 32 30 33 <th> Assembly</th>31 <th>Maintenance Policy</th> 34 32 33 <g:sortableColumn property="procedureStepNumber" title="Procedure Step Number" /> 34 35 35 </tr> 36 36 </thead> … … 41 41 <td><g:link action="show" id="${maintenanceActionInstance.id}">${fieldValue(bean:maintenanceActionInstance, field:'id')}</g:link></td> 42 42 43 <td>${fieldValue(bean:maintenanceActionInstance, field:'maintenancePolicy')}</td> 44 45 <td>${fieldValue(bean:maintenanceActionInstance, field:'systemSection')}</td> 43 <td>${fieldValue(bean:maintenanceActionInstance, field:'section')}</td> 46 44 47 45 <td>${fieldValue(bean:maintenanceActionInstance, field:'asset')}</td> 48 46 49 <td>${fieldValue(bean:maintenanceActionInstance, field:'asset Type')}</td>47 <td>${fieldValue(bean:maintenanceActionInstance, field:'assetSubItem')}</td> 50 48 51 <td>${fieldValue(bean:maintenanceActionInstance, field:'assembly')}</td> 49 <td>${fieldValue(bean:maintenanceActionInstance, field:'maintenancePolicy')}</td> 50 51 <td>${fieldValue(bean:maintenanceActionInstance, field:'procedureStepNumber')}</td> 52 52 53 53 </tr> -
trunk/grails-app/views/maintenanceAction/show.gsp
r178 r268 30 30 31 31 <tr class="prop"> 32 <td valign="top" class="name"> Maintenance Policy:</td>32 <td valign="top" class="name">Section:</td> 33 33 34 <td valign="top" class="value"><g:link controller="maintenancePolicy" action="show" id="${maintenanceActionInstance?.maintenancePolicy?.id}">${maintenanceActionInstance?.maintenancePolicy?.encodeAsHTML()}</g:link></td> 35 36 </tr> 37 38 <tr class="prop"> 39 <td valign="top" class="name">System Section:</td> 40 41 <td valign="top" class="value"><g:link controller="systemSection" action="show" id="${maintenanceActionInstance?.systemSection?.id}">${maintenanceActionInstance?.systemSection?.encodeAsHTML()}</g:link></td> 34 <td valign="top" class="value"><g:link controller="section" action="show" id="${maintenanceActionInstance?.section?.id}">${maintenanceActionInstance?.section?.encodeAsHTML()}</g:link></td> 42 35 43 36 </tr> … … 51 44 52 45 <tr class="prop"> 53 <td valign="top" class="name">Asset Type:</td>46 <td valign="top" class="name">Asset Sub Item:</td> 54 47 55 <td valign="top" class="value"><g:link controller="asset Type" action="show" id="${maintenanceActionInstance?.assetType?.id}">${maintenanceActionInstance?.assetType?.encodeAsHTML()}</g:link></td>48 <td valign="top" class="value"><g:link controller="assetSubItem" action="show" id="${maintenanceActionInstance?.assetSubItem?.id}">${maintenanceActionInstance?.assetSubItem?.encodeAsHTML()}</g:link></td> 56 49 57 50 </tr> 58 51 59 52 <tr class="prop"> 60 <td valign="top" class="name"> Assembly:</td>53 <td valign="top" class="name">Maintenance Policy:</td> 61 54 62 <td valign="top" class="value"><g:link controller="assembly" action="show" id="${maintenanceActionInstance?.assembly?.id}">${maintenanceActionInstance?.assembly?.encodeAsHTML()}</g:link></td> 63 64 </tr> 65 66 <tr class="prop"> 67 <td valign="top" class="name">Sub Assembly:</td> 68 69 <td valign="top" class="value"><g:link controller="subAssembly" action="show" id="${maintenanceActionInstance?.subAssembly?.id}">${maintenanceActionInstance?.subAssembly?.encodeAsHTML()}</g:link></td> 70 71 </tr> 72 73 <tr class="prop"> 74 <td valign="top" class="name">Component Item:</td> 75 76 <td valign="top" class="value"><g:link controller="componentItem" action="show" id="${maintenanceActionInstance?.componentItem?.id}">${maintenanceActionInstance?.componentItem?.encodeAsHTML()}</g:link></td> 55 <td valign="top" class="value"><g:link controller="maintenancePolicy" action="show" id="${maintenanceActionInstance?.maintenancePolicy?.id}">${maintenanceActionInstance?.maintenancePolicy?.encodeAsHTML()}</g:link></td> 77 56 78 57 </tr> … … 93 72 94 73 <tr class="prop"> 95 <td valign="top" class="name"> Is Active:</td>74 <td valign="top" class="name">Reasoning:</td> 96 75 97 <td valign="top" class="value">${fieldValue(bean:maintenanceActionInstance, field:' isActive')}</td>76 <td valign="top" class="value">${fieldValue(bean:maintenanceActionInstance, field:'reasoning')}</td> 98 77 99 78 </tr> 100 79 101 80 <tr class="prop"> 102 <td valign="top" class="name"> Reasoning:</td>81 <td valign="top" class="name">Is Active:</td> 103 82 104 <td valign="top" class="value">${fieldValue(bean:maintenanceActionInstance, field:' reasoning')}</td>83 <td valign="top" class="value">${fieldValue(bean:maintenanceActionInstance, field:'isActive')}</td> 105 84 106 85 </tr> -
trunk/grails-app/views/maintenancePolicy/create.gsp
r178 r268 28 28 <tr class="prop"> 29 29 <td valign="top" class="name"> 30 <label for="name">Name:</label> 31 </td> 32 <td valign="top" class="value ${hasErrors(bean:maintenancePolicyInstance,field:'name','errors')}"> 33 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:maintenancePolicyInstance,field:'name')}"/> 34 </td> 35 </tr> 36 37 <tr class="prop"> 38 <td valign="top" class="name"> 30 39 <label for="description">Description:</label> 31 40 </td> 32 41 <td valign="top" class="value ${hasErrors(bean:maintenancePolicyInstance,field:'description','errors')}"> 33 <input type="text" id="description" name="description" value="${fieldValue(bean:maintenancePolicyInstance,field:'description')}"/>42 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:maintenancePolicyInstance,field:'description')}"/> 34 43 </td> 35 44 </tr> … … 41 50 <td valign="top" class="value ${hasErrors(bean:maintenancePolicyInstance,field:'isActive','errors')}"> 42 51 <g:checkBox name="isActive" value="${maintenancePolicyInstance?.isActive}" ></g:checkBox> 43 </td>44 </tr>45 46 <tr class="prop">47 <td valign="top" class="name">48 <label for="name">Name:</label>49 </td>50 <td valign="top" class="value ${hasErrors(bean:maintenancePolicyInstance,field:'name','errors')}">51 <input type="text" id="name" name="name" value="${fieldValue(bean:maintenancePolicyInstance,field:'name')}"/>52 52 </td> 53 53 </tr> -
trunk/grails-app/views/maintenancePolicy/edit.gsp
r178 r268 31 31 <tr class="prop"> 32 32 <td valign="top" class="name"> 33 <label for="name">Name:</label> 34 </td> 35 <td valign="top" class="value ${hasErrors(bean:maintenancePolicyInstance,field:'name','errors')}"> 36 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:maintenancePolicyInstance,field:'name')}"/> 37 </td> 38 </tr> 39 40 <tr class="prop"> 41 <td valign="top" class="name"> 33 42 <label for="description">Description:</label> 34 43 </td> 35 44 <td valign="top" class="value ${hasErrors(bean:maintenancePolicyInstance,field:'description','errors')}"> 36 <input type="text" id="description" name="description" value="${fieldValue(bean:maintenancePolicyInstance,field:'description')}"/>45 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:maintenancePolicyInstance,field:'description')}"/> 37 46 </td> 38 47 </tr> … … 63 72 </tr> 64 73 65 <tr class="prop">66 <td valign="top" class="name">67 <label for="name">Name:</label>68 </td>69 <td valign="top" class="value ${hasErrors(bean:maintenancePolicyInstance,field:'name','errors')}">70 <input type="text" id="name" name="name" value="${fieldValue(bean:maintenancePolicyInstance,field:'name')}"/>71 </td>72 </tr>73 74 74 </tbody> 75 75 </table> -
trunk/grails-app/views/maintenancePolicy/list.gsp
r178 r268 23 23 <g:sortableColumn property="id" title="Id" /> 24 24 25 <g:sortableColumn property="name" title="Name" /> 26 25 27 <g:sortableColumn property="description" title="Description" /> 26 28 27 29 <g:sortableColumn property="isActive" title="Is Active" /> 28 29 <g:sortableColumn property="name" title="Name" />30 30 31 31 </tr> … … 37 37 <td><g:link action="show" id="${maintenancePolicyInstance.id}">${fieldValue(bean:maintenancePolicyInstance, field:'id')}</g:link></td> 38 38 39 <td>${fieldValue(bean:maintenancePolicyInstance, field:'name')}</td> 40 39 41 <td>${fieldValue(bean:maintenancePolicyInstance, field:'description')}</td> 40 42 41 43 <td>${fieldValue(bean:maintenancePolicyInstance, field:'isActive')}</td> 42 43 <td>${fieldValue(bean:maintenancePolicyInstance, field:'name')}</td>44 44 45 45 </tr> -
trunk/grails-app/views/maintenancePolicy/show.gsp
r178 r268 30 30 31 31 <tr class="prop"> 32 <td valign="top" class="name">Name:</td> 33 34 <td valign="top" class="value">${fieldValue(bean:maintenancePolicyInstance, field:'name')}</td> 35 36 </tr> 37 38 <tr class="prop"> 32 39 <td valign="top" class="name">Description:</td> 33 40 … … 56 63 </tr> 57 64 58 <tr class="prop">59 <td valign="top" class="name">Name:</td>60 61 <td valign="top" class="value">${fieldValue(bean:maintenancePolicyInstance, field:'name')}</td>62 63 </tr>64 65 65 </tbody> 66 66 </table> -
trunk/grails-app/views/section/create.gsp
r178 r268 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Create S ystemSection</title>7 <title>Create Section</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><g:link class="list" action="list">S ystemSection List</g:link></span>11 <span class="menuButton"><g:link class="list" action="list">Section List</g:link></span> 12 12 </div> 13 13 <div class="body"> 14 <h1>Create S ystemSection</h1>14 <h1>Create Section</h1> 15 15 <g:if test="${flash.message}"> 16 16 <div class="message">${flash.message}</div> 17 17 </g:if> 18 <g:hasErrors bean="${s ystemSectionInstance}">18 <g:hasErrors bean="${sectionInstance}"> 19 19 <div class="errors"> 20 <g:renderErrors bean="${s ystemSectionInstance}" as="list" />20 <g:renderErrors bean="${sectionInstance}" as="list" /> 21 21 </div> 22 22 </g:hasErrors> … … 28 28 <tr class="prop"> 29 29 <td valign="top" class="name"> 30 <label for=" costCode">Cost Code:</label>30 <label for="name">Name:</label> 31 31 </td> 32 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'costCode','errors')}"> 33 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:systemSectionInstance,field:'costCode')}"/> 32 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'name','errors')}"> 33 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:sectionInstance,field:'name')}"/> 34 </td> 35 </tr> 36 37 <tr class="prop"> 38 <td valign="top" class="name"> 39 <label for="description">Description:</label> 40 </td> 41 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'description','errors')}"> 42 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:sectionInstance,field:'description')}"/> 43 </td> 44 </tr> 45 46 <tr class="prop"> 47 <td valign="top" class="name"> 48 <label for="isActive">Is Active:</label> 49 </td> 50 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'isActive','errors')}"> 51 <g:checkBox name="isActive" value="${sectionInstance?.isActive}" ></g:checkBox> 34 52 </td> 35 53 </tr> … … 39 57 <label for="department">Department:</label> 40 58 </td> 41 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'department','errors')}"> 42 <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${systemSectionInstance?.department?.id}" ></g:select> 43 </td> 44 </tr> 45 46 <tr class="prop"> 47 <td valign="top" class="name"> 48 <label for="description">Description:</label> 49 </td> 50 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'description','errors')}"> 51 <input type="text" id="description" name="description" value="${fieldValue(bean:systemSectionInstance,field:'description')}"/> 52 </td> 53 </tr> 54 55 <tr class="prop"> 56 <td valign="top" class="name"> 57 <label for="isActive">Is Active:</label> 58 </td> 59 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'isActive','errors')}"> 60 <g:checkBox name="isActive" value="${systemSectionInstance?.isActive}" ></g:checkBox> 61 </td> 62 </tr> 63 64 <tr class="prop"> 65 <td valign="top" class="name"> 66 <label for="name">Name:</label> 67 </td> 68 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'name','errors')}"> 69 <input type="text" id="name" name="name" value="${fieldValue(bean:systemSectionInstance,field:'name')}"/> 59 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'department','errors')}"> 60 <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${sectionInstance?.department?.id}" ></g:select> 70 61 </td> 71 62 </tr> … … 75 66 <label for="site">Site:</label> 76 67 </td> 77 <td valign="top" class="value ${hasErrors(bean:s ystemSectionInstance,field:'site','errors')}">78 <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${s ystemSectionInstance?.site?.id}" ></g:select>68 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'site','errors')}"> 69 <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${sectionInstance?.site?.id}" ></g:select> 79 70 </td> 80 71 </tr> -
trunk/grails-app/views/section/edit.gsp
r178 r268 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Edit S ystemSection</title>7 <title>Edit Section</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><g:link class="list" action="list">S ystemSection List</g:link></span>12 <span class="menuButton"><g:link class="create" action="create">New S ystemSection</g:link></span>11 <span class="menuButton"><g:link class="list" action="list">Section List</g:link></span> 12 <span class="menuButton"><g:link class="create" action="create">New Section</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1>Edit S ystemSection</h1>15 <h1>Edit Section</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> 18 18 </g:if> 19 <g:hasErrors bean="${s ystemSectionInstance}">19 <g:hasErrors bean="${sectionInstance}"> 20 20 <div class="errors"> 21 <g:renderErrors bean="${s ystemSectionInstance}" as="list" />21 <g:renderErrors bean="${sectionInstance}" as="list" /> 22 22 </div> 23 23 </g:hasErrors> 24 24 <g:form method="post" > 25 <input type="hidden" name="id" value="${s ystemSectionInstance?.id}" />26 <input type="hidden" name="version" value="${s ystemSectionInstance?.version}" />25 <input type="hidden" name="id" value="${sectionInstance?.id}" /> 26 <input type="hidden" name="version" value="${sectionInstance?.version}" /> 27 27 <div class="dialog"> 28 28 <table> … … 31 31 <tr class="prop"> 32 32 <td valign="top" class="name"> 33 <label for=" assets">Assets:</label>33 <label for="name">Name:</label> 34 34 </td> 35 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'assets','errors')}"> 36 37 <ul> 38 <g:each var="a" in="${systemSectionInstance?.assets?}"> 39 <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 40 </g:each> 41 </ul> 42 <g:link controller="asset" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add Asset</g:link> 43 35 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'name','errors')}"> 36 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:sectionInstance,field:'name')}"/> 44 37 </td> 45 38 </tr> … … 47 40 <tr class="prop"> 48 41 <td valign="top" class="name"> 49 <label for=" costCode">Cost Code:</label>42 <label for="description">Description:</label> 50 43 </td> 51 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'costCode','errors')}"> 52 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:systemSectionInstance,field:'costCode')}"/> 44 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'description','errors')}"> 45 <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:sectionInstance,field:'description')}"/> 46 </td> 47 </tr> 48 49 <tr class="prop"> 50 <td valign="top" class="name"> 51 <label for="isActive">Is Active:</label> 52 </td> 53 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'isActive','errors')}"> 54 <g:checkBox name="isActive" value="${sectionInstance?.isActive}" ></g:checkBox> 55 </td> 56 </tr> 57 58 <tr class="prop"> 59 <td valign="top" class="name"> 60 <label for="assets">Assets:</label> 61 </td> 62 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'assets','errors')}"> 63 64 <ul> 65 <g:each var="a" in="${sectionInstance?.assets?}"> 66 <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 67 </g:each> 68 </ul> 69 <g:link controller="asset" params="['section.id':sectionInstance?.id]" action="create">Add Asset</g:link> 70 53 71 </td> 54 72 </tr> … … 58 76 <label for="department">Department:</label> 59 77 </td> 60 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'department','errors')}"> 61 <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${systemSectionInstance?.department?.id}" ></g:select> 62 </td> 63 </tr> 64 65 <tr class="prop"> 66 <td valign="top" class="name"> 67 <label for="description">Description:</label> 68 </td> 69 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'description','errors')}"> 70 <input type="text" id="description" name="description" value="${fieldValue(bean:systemSectionInstance,field:'description')}"/> 71 </td> 72 </tr> 73 74 <tr class="prop"> 75 <td valign="top" class="name"> 76 <label for="isActive">Is Active:</label> 77 </td> 78 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'isActive','errors')}"> 79 <g:checkBox name="isActive" value="${systemSectionInstance?.isActive}" ></g:checkBox> 78 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'department','errors')}"> 79 <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${sectionInstance?.department?.id}" ></g:select> 80 80 </td> 81 81 </tr> … … 85 85 <label for="maintenanceActions">Maintenance Actions:</label> 86 86 </td> 87 <td valign="top" class="value ${hasErrors(bean:s ystemSectionInstance,field:'maintenanceActions','errors')}">87 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'maintenanceActions','errors')}"> 88 88 89 89 <ul> 90 <g:each var="m" in="${s ystemSectionInstance?.maintenanceActions?}">90 <g:each var="m" in="${sectionInstance?.maintenanceActions?}"> 91 91 <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 92 92 </g:each> 93 93 </ul> 94 <g:link controller="maintenanceAction" params="['s ystemSection.id':systemSectionInstance?.id]" action="create">Add MaintenanceAction</g:link>94 <g:link controller="maintenanceAction" params="['section.id':sectionInstance?.id]" action="create">Add MaintenanceAction</g:link> 95 95 96 96 </td> … … 99 99 <tr class="prop"> 100 100 <td valign="top" class="name"> 101 <label for=" name">Name:</label>101 <label for="sectionExtendedAttributes">Section Extended Attributes:</label> 102 102 </td> 103 <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'name','errors')}"> 104 <input type="text" id="name" name="name" value="${fieldValue(bean:systemSectionInstance,field:'name')}"/> 103 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'sectionExtendedAttributes','errors')}"> 104 105 <ul> 106 <g:each var="s" in="${sectionInstance?.sectionExtendedAttributes?}"> 107 <li><g:link controller="sectionExtendedAttribute" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 108 </g:each> 109 </ul> 110 <g:link controller="sectionExtendedAttribute" params="['section.id':sectionInstance?.id]" action="create">Add SectionExtendedAttribute</g:link> 111 105 112 </td> 106 113 </tr> … … 110 117 <label for="site">Site:</label> 111 118 </td> 112 <td valign="top" class="value ${hasErrors(bean:s ystemSectionInstance,field:'site','errors')}">113 <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${s ystemSectionInstance?.site?.id}" ></g:select>119 <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'site','errors')}"> 120 <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${sectionInstance?.site?.id}" ></g:select> 114 121 </td> 115 122 </tr> -
trunk/grails-app/views/section/list.gsp
r178 r268 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>S ystemSection List</title>7 <title>Section List</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><g:link class="create" action="create">New S ystemSection</g:link></span>11 <span class="menuButton"><g:link class="create" action="create">New Section</g:link></span> 12 12 </div> 13 13 <div class="body"> 14 <h1>S ystemSection List</h1>14 <h1>Section List</h1> 15 15 <g:if test="${flash.message}"> 16 16 <div class="message">${flash.message}</div> … … 23 23 <g:sortableColumn property="id" title="Id" /> 24 24 25 <g:sortableColumn property=" costCode" title="Cost Code" />25 <g:sortableColumn property="name" title="Name" /> 26 26 27 <th>Department</th>28 29 27 <g:sortableColumn property="description" title="Description" /> 30 28 31 29 <g:sortableColumn property="isActive" title="Is Active" /> 32 30 33 <g:sortableColumn property="name" title="Name" /> 34 31 <th>Department</th> 32 33 <th>Site</th> 34 35 35 </tr> 36 36 </thead> 37 37 <tbody> 38 <g:each in="${s ystemSectionInstanceList}" status="i" var="systemSectionInstance">38 <g:each in="${sectionInstanceList}" status="i" var="sectionInstance"> 39 39 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 40 40 41 <td><g:link action="show" id="${s ystemSectionInstance.id}">${fieldValue(bean:systemSectionInstance, field:'id')}</g:link></td>41 <td><g:link action="show" id="${sectionInstance.id}">${fieldValue(bean:sectionInstance, field:'id')}</g:link></td> 42 42 43 <td>${fieldValue(bean:s ystemSectionInstance, field:'costCode')}</td>43 <td>${fieldValue(bean:sectionInstance, field:'name')}</td> 44 44 45 <td>${fieldValue(bean:s ystemSectionInstance, field:'department')}</td>45 <td>${fieldValue(bean:sectionInstance, field:'description')}</td> 46 46 47 <td>${fieldValue(bean:s ystemSectionInstance, field:'description')}</td>47 <td>${fieldValue(bean:sectionInstance, field:'isActive')}</td> 48 48 49 <td>${fieldValue(bean:s ystemSectionInstance, field:'isActive')}</td>49 <td>${fieldValue(bean:sectionInstance, field:'department')}</td> 50 50 51 <td>${fieldValue(bean:s ystemSectionInstance, field:'name')}</td>51 <td>${fieldValue(bean:sectionInstance, field:'site')}</td> 52 52 53 53 </tr> … … 57 57 </div> 58 58 <div class="paginateButtons"> 59 <g:paginate total="${s ystemSectionInstanceTotal}" />59 <g:paginate total="${sectionInstanceTotal}" /> 60 60 </div> 61 61 </div> -
trunk/grails-app/views/section/show.gsp
r178 r268 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Show S ystemSection</title>7 <title>Show Section</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 <span class="menuButton"><g:link class="list" action="list">S ystemSection List</g:link></span>12 <span class="menuButton"><g:link class="create" action="create">New S ystemSection</g:link></span>11 <span class="menuButton"><g:link class="list" action="list">Section List</g:link></span> 12 <span class="menuButton"><g:link class="create" action="create">New Section</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1>Show S ystemSection</h1>15 <h1>Show Section</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> … … 25 25 <td valign="top" class="name">Id:</td> 26 26 27 <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'id')}</td> 27 <td valign="top" class="value">${fieldValue(bean:sectionInstance, field:'id')}</td> 28 29 </tr> 30 31 <tr class="prop"> 32 <td valign="top" class="name">Name:</td> 33 34 <td valign="top" class="value">${fieldValue(bean:sectionInstance, field:'name')}</td> 35 36 </tr> 37 38 <tr class="prop"> 39 <td valign="top" class="name">Description:</td> 40 41 <td valign="top" class="value">${fieldValue(bean:sectionInstance, field:'description')}</td> 42 43 </tr> 44 45 <tr class="prop"> 46 <td valign="top" class="name">Is Active:</td> 47 48 <td valign="top" class="value">${fieldValue(bean:sectionInstance, field:'isActive')}</td> 28 49 29 50 </tr> … … 34 55 <td valign="top" style="text-align:left;" class="value"> 35 56 <ul> 36 <g:each var="a" in="${s ystemSectionInstance.assets}">57 <g:each var="a" in="${sectionInstance.assets}"> 37 58 <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 38 59 </g:each> … … 43 64 44 65 <tr class="prop"> 45 <td valign="top" class="name">Cost Code:</td>46 47 <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'costCode')}</td>48 49 </tr>50 51 <tr class="prop">52 66 <td valign="top" class="name">Department:</td> 53 67 54 <td valign="top" class="value"><g:link controller="department" action="show" id="${systemSectionInstance?.department?.id}">${systemSectionInstance?.department?.encodeAsHTML()}</g:link></td> 55 56 </tr> 57 58 <tr class="prop"> 59 <td valign="top" class="name">Description:</td> 60 61 <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'description')}</td> 62 63 </tr> 64 65 <tr class="prop"> 66 <td valign="top" class="name">Is Active:</td> 67 68 <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'isActive')}</td> 68 <td valign="top" class="value"><g:link controller="department" action="show" id="${sectionInstance?.department?.id}">${sectionInstance?.department?.encodeAsHTML()}</g:link></td> 69 69 70 70 </tr> … … 75 75 <td valign="top" style="text-align:left;" class="value"> 76 76 <ul> 77 <g:each var="m" in="${s ystemSectionInstance.maintenanceActions}">77 <g:each var="m" in="${sectionInstance.maintenanceActions}"> 78 78 <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 79 79 </g:each> … … 84 84 85 85 <tr class="prop"> 86 <td valign="top" class="name"> Name:</td>86 <td valign="top" class="name">Section Extended Attributes:</td> 87 87 88 <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'name')}</td> 88 <td valign="top" style="text-align:left;" class="value"> 89 <ul> 90 <g:each var="s" in="${sectionInstance.sectionExtendedAttributes}"> 91 <li><g:link controller="sectionExtendedAttribute" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 92 </g:each> 93 </ul> 94 </td> 89 95 90 96 </tr> … … 93 99 <td valign="top" class="name">Site:</td> 94 100 95 <td valign="top" class="value"><g:link controller="site" action="show" id="${s ystemSectionInstance?.site?.id}">${systemSectionInstance?.site?.encodeAsHTML()}</g:link></td>101 <td valign="top" class="value"><g:link controller="site" action="show" id="${sectionInstance?.site?.id}">${sectionInstance?.site?.encodeAsHTML()}</g:link></td> 96 102 97 103 </tr> … … 102 108 <div class="buttons"> 103 109 <g:form> 104 <input type="hidden" name="id" value="${s ystemSectionInstance?.id}" />110 <input type="hidden" name="id" value="${sectionInstance?.id}" /> 105 111 <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> 106 112 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> -
trunk/grails-app/views/site/create.gsp
r178 r268 46 46 <tr class="prop"> 47 47 <td valign="top" class="name"> 48 <label for="costCode">Cost Code:</label>49 </td>50 <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'costCode','errors')}">51 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:siteInstance,field:'costCode')}"/>52 </td>53 </tr>54 55 <tr class="prop">56 <td valign="top" class="name">57 48 <label for="isActive">Is Active:</label> 58 49 </td> -
trunk/grails-app/views/site/edit.gsp
r178 r268 49 49 <tr class="prop"> 50 50 <td valign="top" class="name"> 51 <label for="costCode">Cost Code:</label>52 </td>53 <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'costCode','errors')}">54 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:siteInstance,field:'costCode')}"/>55 </td>56 </tr>57 58 <tr class="prop">59 <td valign="top" class="name">60 <label for="inventoryStores">Inventory Stores:</label>61 </td>62 <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'inventoryStores','errors')}">63 64 <ul>65 <g:each var="i" in="${siteInstance?.inventoryStores?}">66 <li><g:link controller="inventoryStore" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>67 </g:each>68 </ul>69 <g:link controller="inventoryStore" params="['site.id':siteInstance?.id]" action="create">Add InventoryStore</g:link>70 71 </td>72 </tr>73 74 <tr class="prop">75 <td valign="top" class="name">76 51 <label for="isActive">Is Active:</label> 77 52 </td> … … 83 58 <tr class="prop"> 84 59 <td valign="top" class="name"> 85 <label for="s ystemSections">SystemSections:</label>60 <label for="sections">Sections:</label> 86 61 </td> 87 <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'s ystemSections','errors')}">62 <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'sections','errors')}"> 88 63 89 64 <ul> 90 <g:each var="s" in="${siteInstance?.s ystemSections?}">91 <li><g:link controller="s ystemSection" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>65 <g:each var="s" in="${siteInstance?.sections?}"> 66 <li><g:link controller="section" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 92 67 </g:each> 93 68 </ul> 94 <g:link controller="systemSection" params="['site.id':siteInstance?.id]" action="create">Add SystemSection</g:link> 69 <g:link controller="section" params="['site.id':siteInstance?.id]" action="create">Add Section</g:link> 70 71 </td> 72 </tr> 73 74 <tr class="prop"> 75 <td valign="top" class="name"> 76 <label for="siteExtendedAttributes">Site Extended Attributes:</label> 77 </td> 78 <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'siteExtendedAttributes','errors')}"> 79 80 <ul> 81 <g:each var="s" in="${siteInstance?.siteExtendedAttributes?}"> 82 <li><g:link controller="siteExtendedAttribute" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 83 </g:each> 84 </ul> 85 <g:link controller="siteExtendedAttribute" params="['site.id':siteInstance?.id]" action="create">Add SiteExtendedAttribute</g:link> 95 86 96 87 </td> -
trunk/grails-app/views/site/list.gsp
r178 r268 27 27 <g:sortableColumn property="description" title="Description" /> 28 28 29 <g:sortableColumn property="costCode" title="Cost Code" />30 31 29 <g:sortableColumn property="isActive" title="Is Active" /> 32 30 … … 43 41 <td>${fieldValue(bean:siteInstance, field:'description')}</td> 44 42 45 <td>${fieldValue(bean:siteInstance, field:'costCode')}</td>46 47 43 <td>${fieldValue(bean:siteInstance, field:'isActive')}</td> 48 44 -
trunk/grails-app/views/site/show.gsp
r178 r268 44 44 45 45 <tr class="prop"> 46 <td valign="top" class="name"> Cost Code:</td>46 <td valign="top" class="name">Is Active:</td> 47 47 48 <td valign="top" class="value">${fieldValue(bean:siteInstance, field:' costCode')}</td>48 <td valign="top" class="value">${fieldValue(bean:siteInstance, field:'isActive')}</td> 49 49 50 50 </tr> 51 51 52 52 <tr class="prop"> 53 <td valign="top" class="name"> Inventory Stores:</td>53 <td valign="top" class="name">Sections:</td> 54 54 55 55 <td valign="top" style="text-align:left;" class="value"> 56 56 <ul> 57 <g:each var=" i" in="${siteInstance.inventoryStores}">58 <li><g:link controller=" inventoryStore" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>57 <g:each var="s" in="${siteInstance.sections}"> 58 <li><g:link controller="section" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 59 59 </g:each> 60 60 </ul> … … 64 64 65 65 <tr class="prop"> 66 <td valign="top" class="name">Is Active:</td> 67 68 <td valign="top" class="value">${fieldValue(bean:siteInstance, field:'isActive')}</td> 69 70 </tr> 71 72 <tr class="prop"> 73 <td valign="top" class="name">System Sections:</td> 66 <td valign="top" class="name">Site Extended Attributes:</td> 74 67 75 68 <td valign="top" style="text-align:left;" class="value"> 76 69 <ul> 77 <g:each var="s" in="${siteInstance.s ystemSections}">78 <li><g:link controller="s ystemSection" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>70 <g:each var="s" in="${siteInstance.siteExtendedAttributes}"> 71 <li><g:link controller="siteExtendedAttribute" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 79 72 </g:each> 80 73 </ul>
Note: See TracChangeset
for help on using the changeset viewer.