Index: trunk/grails-app/controllers/DepartmentController.groovy
===================================================================
--- trunk/grails-app/controllers/DepartmentController.groovy	(revision 287)
+++ 	(revision )
@@ -1,99 +1,0 @@
-import org.codehaus.groovy.grails.plugins.springsecurity.Secured
-
-class DepartmentController extends BaseAppAdminController {
-    
-    def index = { redirect(action:list,params:params) }
-
-    // the delete, save and update actions only accept POST requests
-    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
-
-    def list = {
-        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
-        [ departmentInstanceList: Department.list( params ), departmentInstanceTotal: Department.count() ]
-    }
-
-    def show = {
-        def departmentInstance = Department.get( params.id )
-
-        if(!departmentInstance) {
-            flash.message = "Department not found with id ${params.id}"
-            redirect(action:list)
-        }
-        else { return [ departmentInstance : departmentInstance ] }
-    }
-
-    def delete = {
-        def departmentInstance = Department.get( params.id )
-        if(departmentInstance) {
-            try {
-                departmentInstance.delete(flush:true)
-                flash.message = "Department ${params.id} deleted"
-                redirect(action:list)
-            }
-            catch(org.springframework.dao.DataIntegrityViolationException e) {
-                flash.message = "Department ${params.id} could not be deleted"
-                redirect(action:show,id:params.id)
-            }
-        }
-        else {
-            flash.message = "Department not found with id ${params.id}"
-            redirect(action:list)
-        }
-    }
-
-    def edit = {
-        def departmentInstance = Department.get( params.id )
-
-        if(!departmentInstance) {
-            flash.message = "Department not found with id ${params.id}"
-            redirect(action:list)
-        }
-        else {
-            return [ departmentInstance : departmentInstance ]
-        }
-    }
-
-    def update = {
-        def departmentInstance = Department.get( params.id )
-        if(departmentInstance) {
-            if(params.version) {
-                def version = params.version.toLong()
-                if(departmentInstance.version > version) {
-                    
-                    departmentInstance.errors.rejectValue("version", "department.optimistic.locking.failure", "Another user has updated this Department while you were editing.")
-                    render(view:'edit',model:[departmentInstance:departmentInstance])
-                    return
-                }
-            }
-            departmentInstance.properties = params
-            if(!departmentInstance.hasErrors() && departmentInstance.save(flush: true)) {
-                flash.message = "Department ${params.id} updated"
-                redirect(action:show,id:departmentInstance.id)
-            }
-            else {
-                render(view:'edit',model:[departmentInstance:departmentInstance])
-            }
-        }
-        else {
-            flash.message = "Department not found with id ${params.id}"
-            redirect(action:list)
-        }
-    }
-
-    def create = {
-        def departmentInstance = new Department()
-        departmentInstance.properties = params
-        return ['departmentInstance':departmentInstance]
-    }
-
-    def save = {
-        def departmentInstance = new Department(params)
-        if(!departmentInstance.hasErrors() && departmentInstance.save(flush: true)) {
-            flash.message = "Department ${departmentInstance.id} created"
-            redirect(action:show,id:departmentInstance.id)
-        }
-        else {
-            render(view:'create',model:[departmentInstance:departmentInstance])
-        }
-    }
-}
Index: trunk/grails-app/controllers/DepartmentDetailedController.groovy
===================================================================
--- trunk/grails-app/controllers/DepartmentDetailedController.groovy	(revision 288)
+++ trunk/grails-app/controllers/DepartmentDetailedController.groovy	(revision 288)
@@ -0,0 +1,100 @@
+import org.codehaus.groovy.grails.plugins.springsecurity.Secured
+
+@Secured(['ROLE_Manager','ROLE_AppAdmin'])
+class DepartmentDetailedController extends BaseController {
+    
+    def index = { redirect(action:list,params:params) }
+
+    // the delete, save and update actions only accept POST requests
+    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
+
+    def list = {
+        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
+        [ departmentInstanceList: Department.list( params ), departmentInstanceTotal: Department.count() ]
+    }
+
+    def show = {
+        def departmentInstance = Department.get( params.id )
+
+        if(!departmentInstance) {
+            flash.message = "Department not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else { return [ departmentInstance : departmentInstance ] }
+    }
+
+    def delete = {
+        def departmentInstance = Department.get( params.id )
+        if(departmentInstance) {
+            try {
+                departmentInstance.delete(flush:true)
+                flash.message = "Department ${params.id} deleted"
+                redirect(action:list)
+            }
+            catch(org.springframework.dao.DataIntegrityViolationException e) {
+                flash.message = "Department ${params.id} could not be deleted"
+                redirect(action:show,id:params.id)
+            }
+        }
+        else {
+            flash.message = "Department not found with id ${params.id}"
+            redirect(action:list)
+        }
+    }
+
+    def edit = {
+        def departmentInstance = Department.get( params.id )
+
+        if(!departmentInstance) {
+            flash.message = "Department not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else {
+            return [ departmentInstance : departmentInstance ]
+        }
+    }
+
+    def update = {
+        def departmentInstance = Department.get( params.id )
+        if(departmentInstance) {
+            if(params.version) {
+                def version = params.version.toLong()
+                if(departmentInstance.version > version) {
+                    
+                    departmentInstance.errors.rejectValue("version", "department.optimistic.locking.failure", "Another user has updated this Department while you were editing.")
+                    render(view:'edit',model:[departmentInstance:departmentInstance])
+                    return
+                }
+            }
+            departmentInstance.properties = params
+            if(!departmentInstance.hasErrors() && departmentInstance.save(flush: true)) {
+                flash.message = "Department ${params.id} updated"
+                redirect(action:show,id:departmentInstance.id)
+            }
+            else {
+                render(view:'edit',model:[departmentInstance:departmentInstance])
+            }
+        }
+        else {
+            flash.message = "Department not found with id ${params.id}"
+            redirect(action:list)
+        }
+    }
+
+    def create = {
+        def departmentInstance = new Department()
+        departmentInstance.properties = params
+        return ['departmentInstance':departmentInstance]
+    }
+
+    def save = {
+        def departmentInstance = new Department(params)
+        if(!departmentInstance.hasErrors() && departmentInstance.save(flush: true)) {
+            flash.message = "Department ${departmentInstance.id} created"
+            redirect(action:show,id:departmentInstance.id)
+        }
+        else {
+            render(view:'create',model:[departmentInstance:departmentInstance])
+        }
+    }
+}
Index: trunk/grails-app/controllers/DepartmentExtendedAttributeController.groovy
===================================================================
--- trunk/grails-app/controllers/DepartmentExtendedAttributeController.groovy	(revision 287)
+++ 	(revision )
@@ -1,99 +1,0 @@
-import org.codehaus.groovy.grails.plugins.springsecurity.Secured
-
-class DepartmentExtendedAttributeController extends BaseAppAdminController {
-    
-    def index = { redirect(action:list,params:params) }
-
-    // the delete, save and update actions only accept POST requests
-    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
-
-    def list = {
-        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
-        [ departmentExtendedAttributeInstanceList: DepartmentExtendedAttribute.list( params ), departmentExtendedAttributeInstanceTotal: DepartmentExtendedAttribute.count() ]
-    }
-
-    def show = {
-        def departmentExtendedAttributeInstance = DepartmentExtendedAttribute.get( params.id )
-
-        if(!departmentExtendedAttributeInstance) {
-            flash.message = "DepartmentExtendedAttribute not found with id ${params.id}"
-            redirect(action:list)
-        }
-        else { return [ departmentExtendedAttributeInstance : departmentExtendedAttributeInstance ] }
-    }
-
-    def delete = {
-        def departmentExtendedAttributeInstance = DepartmentExtendedAttribute.get( params.id )
-        if(departmentExtendedAttributeInstance) {
-            try {
-                departmentExtendedAttributeInstance.delete(flush:true)
-                flash.message = "DepartmentExtendedAttribute ${params.id} deleted"
-                redirect(action:list)
-            }
-            catch(org.springframework.dao.DataIntegrityViolationException e) {
-                flash.message = "DepartmentExtendedAttribute ${params.id} could not be deleted"
-                redirect(action:show,id:params.id)
-            }
-        }
-        else {
-            flash.message = "DepartmentExtendedAttribute not found with id ${params.id}"
-            redirect(action:list)
-        }
-    }
-
-    def edit = {
-        def departmentExtendedAttributeInstance = DepartmentExtendedAttribute.get( params.id )
-
-        if(!departmentExtendedAttributeInstance) {
-            flash.message = "DepartmentExtendedAttribute not found with id ${params.id}"
-            redirect(action:list)
-        }
-        else {
-            return [ departmentExtendedAttributeInstance : departmentExtendedAttributeInstance ]
-        }
-    }
-
-    def update = {
-        def departmentExtendedAttributeInstance = DepartmentExtendedAttribute.get( params.id )
-        if(departmentExtendedAttributeInstance) {
-            if(params.version) {
-                def version = params.version.toLong()
-                if(departmentExtendedAttributeInstance.version > version) {
-                    
-                    departmentExtendedAttributeInstance.errors.rejectValue("version", "departmentExtendedAttribute.optimistic.locking.failure", "Another user has updated this DepartmentExtendedAttribute while you were editing.")
-                    render(view:'edit',model:[departmentExtendedAttributeInstance:departmentExtendedAttributeInstance])
-                    return
-                }
-            }
-            departmentExtendedAttributeInstance.properties = params
-            if(!departmentExtendedAttributeInstance.hasErrors() && departmentExtendedAttributeInstance.save(flush: true)) {
-                flash.message = "DepartmentExtendedAttribute ${params.id} updated"
-                redirect(action:show,id:departmentExtendedAttributeInstance.id)
-            }
-            else {
-                render(view:'edit',model:[departmentExtendedAttributeInstance:departmentExtendedAttributeInstance])
-            }
-        }
-        else {
-            flash.message = "DepartmentExtendedAttribute not found with id ${params.id}"
-            redirect(action:list)
-        }
-    }
-
-    def create = {
-        def departmentExtendedAttributeInstance = new DepartmentExtendedAttribute()
-        departmentExtendedAttributeInstance.properties = params
-        return ['departmentExtendedAttributeInstance':departmentExtendedAttributeInstance]
-    }
-
-    def save = {
-        def departmentExtendedAttributeInstance = new DepartmentExtendedAttribute(params)
-        if(!departmentExtendedAttributeInstance.hasErrors() && departmentExtendedAttributeInstance.save(flush: true)) {
-            flash.message = "DepartmentExtendedAttribute ${departmentExtendedAttributeInstance.id} created"
-            redirect(action:show,id:departmentExtendedAttributeInstance.id)
-        }
-        else {
-            render(view:'create',model:[departmentExtendedAttributeInstance:departmentExtendedAttributeInstance])
-        }
-    }
-}
Index: trunk/grails-app/controllers/DepartmentExtendedAttributeDetailedController.groovy
===================================================================
--- trunk/grails-app/controllers/DepartmentExtendedAttributeDetailedController.groovy	(revision 288)
+++ trunk/grails-app/controllers/DepartmentExtendedAttributeDetailedController.groovy	(revision 288)
@@ -0,0 +1,100 @@
+import org.codehaus.groovy.grails.plugins.springsecurity.Secured
+
+@Secured(['ROLE_Manager','ROLE_AppAdmin'])
+class DepartmentExtendedAttributeDetailedController extends BaseController {
+
+    def index = { redirect(action:list,params:params) }
+
+    // the delete, save and update actions only accept POST requests
+    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
+
+    def list = {
+        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
+        [ departmentExtendedAttributeInstanceList: DepartmentExtendedAttribute.list( params ), departmentExtendedAttributeInstanceTotal: DepartmentExtendedAttribute.count() ]
+    }
+
+    def show = {
+        def departmentExtendedAttributeInstance = DepartmentExtendedAttribute.get( params.id )
+
+        if(!departmentExtendedAttributeInstance) {
+            flash.message = "DepartmentExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else { return [ departmentExtendedAttributeInstance : departmentExtendedAttributeInstance ] }
+    }
+
+    def delete = {
+        def departmentExtendedAttributeInstance = DepartmentExtendedAttribute.get( params.id )
+        if(departmentExtendedAttributeInstance) {
+            try {
+                departmentExtendedAttributeInstance.delete(flush:true)
+                flash.message = "DepartmentExtendedAttribute ${params.id} deleted"
+                redirect(action:list)
+            }
+            catch(org.springframework.dao.DataIntegrityViolationException e) {
+                flash.message = "DepartmentExtendedAttribute ${params.id} could not be deleted"
+                redirect(action:show,id:params.id)
+            }
+        }
+        else {
+            flash.message = "DepartmentExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+    }
+
+    def edit = {
+        def departmentExtendedAttributeInstance = DepartmentExtendedAttribute.get( params.id )
+
+        if(!departmentExtendedAttributeInstance) {
+            flash.message = "DepartmentExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else {
+            return [ departmentExtendedAttributeInstance : departmentExtendedAttributeInstance ]
+        }
+    }
+
+    def update = {
+        def departmentExtendedAttributeInstance = DepartmentExtendedAttribute.get( params.id )
+        if(departmentExtendedAttributeInstance) {
+            if(params.version) {
+                def version = params.version.toLong()
+                if(departmentExtendedAttributeInstance.version > version) {
+                    
+                    departmentExtendedAttributeInstance.errors.rejectValue("version", "departmentExtendedAttribute.optimistic.locking.failure", "Another user has updated this DepartmentExtendedAttribute while you were editing.")
+                    render(view:'edit',model:[departmentExtendedAttributeInstance:departmentExtendedAttributeInstance])
+                    return
+                }
+            }
+            departmentExtendedAttributeInstance.properties = params
+            if(!departmentExtendedAttributeInstance.hasErrors() && departmentExtendedAttributeInstance.save(flush: true)) {
+                flash.message = "DepartmentExtendedAttribute ${params.id} updated"
+                redirect(action:show,id:departmentExtendedAttributeInstance.id)
+            }
+            else {
+                render(view:'edit',model:[departmentExtendedAttributeInstance:departmentExtendedAttributeInstance])
+            }
+        }
+        else {
+            flash.message = "DepartmentExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+    }
+
+    def create = {
+        def departmentExtendedAttributeInstance = new DepartmentExtendedAttribute()
+        departmentExtendedAttributeInstance.properties = params
+        return ['departmentExtendedAttributeInstance':departmentExtendedAttributeInstance]
+    }
+
+    def save = {
+        def departmentExtendedAttributeInstance = new DepartmentExtendedAttribute(params)
+        if(!departmentExtendedAttributeInstance.hasErrors() && departmentExtendedAttributeInstance.save(flush: true)) {
+            flash.message = "DepartmentExtendedAttribute ${departmentExtendedAttributeInstance.id} created"
+            redirect(action:show,id:departmentExtendedAttributeInstance.id)
+        }
+        else {
+            render(view:'create',model:[departmentExtendedAttributeInstance:departmentExtendedAttributeInstance])
+        }
+    }
+}
Index: trunk/grails-app/controllers/ExtendedAttributeTypeController.groovy
===================================================================
--- trunk/grails-app/controllers/ExtendedAttributeTypeController.groovy	(revision 287)
+++ 	(revision )
@@ -1,99 +1,0 @@
-import org.codehaus.groovy.grails.plugins.springsecurity.Secured
-
-class ExtendedAttributeTypeController extends BaseAppAdminController {
-    
-    def index = { redirect(action:list,params:params) }
-
-    // the delete, save and update actions only accept POST requests
-    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
-
-    def list = {
-        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
-        [ extendedAttributeTypeInstanceList: ExtendedAttributeType.list( params ), extendedAttributeTypeInstanceTotal: ExtendedAttributeType.count() ]
-    }
-
-    def show = {
-        def extendedAttributeTypeInstance = ExtendedAttributeType.get( params.id )
-
-        if(!extendedAttributeTypeInstance) {
-            flash.message = "ExtendedAttributeType not found with id ${params.id}"
-            redirect(action:list)
-        }
-        else { return [ extendedAttributeTypeInstance : extendedAttributeTypeInstance ] }
-    }
-
-    def delete = {
-        def extendedAttributeTypeInstance = ExtendedAttributeType.get( params.id )
-        if(extendedAttributeTypeInstance) {
-            try {
-                extendedAttributeTypeInstance.delete(flush:true)
-                flash.message = "ExtendedAttributeType ${params.id} deleted"
-                redirect(action:list)
-            }
-            catch(org.springframework.dao.DataIntegrityViolationException e) {
-                flash.message = "ExtendedAttributeType ${params.id} could not be deleted"
-                redirect(action:show,id:params.id)
-            }
-        }
-        else {
-            flash.message = "ExtendedAttributeType not found with id ${params.id}"
-            redirect(action:list)
-        }
-    }
-
-    def edit = {
-        def extendedAttributeTypeInstance = ExtendedAttributeType.get( params.id )
-
-        if(!extendedAttributeTypeInstance) {
-            flash.message = "ExtendedAttributeType not found with id ${params.id}"
-            redirect(action:list)
-        }
-        else {
-            return [ extendedAttributeTypeInstance : extendedAttributeTypeInstance ]
-        }
-    }
-
-    def update = {
-        def extendedAttributeTypeInstance = ExtendedAttributeType.get( params.id )
-        if(extendedAttributeTypeInstance) {
-            if(params.version) {
-                def version = params.version.toLong()
-                if(extendedAttributeTypeInstance.version > version) {
-                    
-                    extendedAttributeTypeInstance.errors.rejectValue("version", "extendedAttributeType.optimistic.locking.failure", "Another user has updated this ExtendedAttributeType while you were editing.")
-                    render(view:'edit',model:[extendedAttributeTypeInstance:extendedAttributeTypeInstance])
-                    return
-                }
-            }
-            extendedAttributeTypeInstance.properties = params
-            if(!extendedAttributeTypeInstance.hasErrors() && extendedAttributeTypeInstance.save(flush: true)) {
-                flash.message = "ExtendedAttributeType ${params.id} updated"
-                redirect(action:show,id:extendedAttributeTypeInstance.id)
-            }
-            else {
-                render(view:'edit',model:[extendedAttributeTypeInstance:extendedAttributeTypeInstance])
-            }
-        }
-        else {
-            flash.message = "ExtendedAttributeType not found with id ${params.id}"
-            redirect(action:list)
-        }
-    }
-
-    def create = {
-        def extendedAttributeTypeInstance = new ExtendedAttributeType()
-        extendedAttributeTypeInstance.properties = params
-        return ['extendedAttributeTypeInstance':extendedAttributeTypeInstance]
-    }
-
-    def save = {
-        def extendedAttributeTypeInstance = new ExtendedAttributeType(params)
-        if(!extendedAttributeTypeInstance.hasErrors() && extendedAttributeTypeInstance.save(flush: true)) {
-            flash.message = "ExtendedAttributeType ${extendedAttributeTypeInstance.id} created"
-            redirect(action:show,id:extendedAttributeTypeInstance.id)
-        }
-        else {
-            render(view:'create',model:[extendedAttributeTypeInstance:extendedAttributeTypeInstance])
-        }
-    }
-}
Index: trunk/grails-app/controllers/ExtendedAttributeTypeDetailedController.groovy
===================================================================
--- trunk/grails-app/controllers/ExtendedAttributeTypeDetailedController.groovy	(revision 288)
+++ trunk/grails-app/controllers/ExtendedAttributeTypeDetailedController.groovy	(revision 288)
@@ -0,0 +1,100 @@
+import org.codehaus.groovy.grails.plugins.springsecurity.Secured
+
+@Secured(['ROLE_Manager','ROLE_AppAdmin'])
+class ExtendedAttributeTypeDetailedController extends BaseController {
+    
+    def index = { redirect(action:list,params:params) }
+
+    // the delete, save and update actions only accept POST requests
+    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
+
+    def list = {
+        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
+        [ extendedAttributeTypeInstanceList: ExtendedAttributeType.list( params ), extendedAttributeTypeInstanceTotal: ExtendedAttributeType.count() ]
+    }
+
+    def show = {
+        def extendedAttributeTypeInstance = ExtendedAttributeType.get( params.id )
+
+        if(!extendedAttributeTypeInstance) {
+            flash.message = "ExtendedAttributeType not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else { return [ extendedAttributeTypeInstance : extendedAttributeTypeInstance ] }
+    }
+
+    def delete = {
+        def extendedAttributeTypeInstance = ExtendedAttributeType.get( params.id )
+        if(extendedAttributeTypeInstance) {
+            try {
+                extendedAttributeTypeInstance.delete(flush:true)
+                flash.message = "ExtendedAttributeType ${params.id} deleted"
+                redirect(action:list)
+            }
+            catch(org.springframework.dao.DataIntegrityViolationException e) {
+                flash.message = "ExtendedAttributeType ${params.id} could not be deleted"
+                redirect(action:show,id:params.id)
+            }
+        }
+        else {
+            flash.message = "ExtendedAttributeType not found with id ${params.id}"
+            redirect(action:list)
+        }
+    }
+
+    def edit = {
+        def extendedAttributeTypeInstance = ExtendedAttributeType.get( params.id )
+
+        if(!extendedAttributeTypeInstance) {
+            flash.message = "ExtendedAttributeType not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else {
+            return [ extendedAttributeTypeInstance : extendedAttributeTypeInstance ]
+        }
+    }
+
+    def update = {
+        def extendedAttributeTypeInstance = ExtendedAttributeType.get( params.id )
+        if(extendedAttributeTypeInstance) {
+            if(params.version) {
+                def version = params.version.toLong()
+                if(extendedAttributeTypeInstance.version > version) {
+                    
+                    extendedAttributeTypeInstance.errors.rejectValue("version", "extendedAttributeType.optimistic.locking.failure", "Another user has updated this ExtendedAttributeType while you were editing.")
+                    render(view:'edit',model:[extendedAttributeTypeInstance:extendedAttributeTypeInstance])
+                    return
+                }
+            }
+            extendedAttributeTypeInstance.properties = params
+            if(!extendedAttributeTypeInstance.hasErrors() && extendedAttributeTypeInstance.save(flush: true)) {
+                flash.message = "ExtendedAttributeType ${params.id} updated"
+                redirect(action:show,id:extendedAttributeTypeInstance.id)
+            }
+            else {
+                render(view:'edit',model:[extendedAttributeTypeInstance:extendedAttributeTypeInstance])
+            }
+        }
+        else {
+            flash.message = "ExtendedAttributeType not found with id ${params.id}"
+            redirect(action:list)
+        }
+    }
+
+    def create = {
+        def extendedAttributeTypeInstance = new ExtendedAttributeType()
+        extendedAttributeTypeInstance.properties = params
+        return ['extendedAttributeTypeInstance':extendedAttributeTypeInstance]
+    }
+
+    def save = {
+        def extendedAttributeTypeInstance = new ExtendedAttributeType(params)
+        if(!extendedAttributeTypeInstance.hasErrors() && extendedAttributeTypeInstance.save(flush: true)) {
+            flash.message = "ExtendedAttributeType ${extendedAttributeTypeInstance.id} created"
+            redirect(action:show,id:extendedAttributeTypeInstance.id)
+        }
+        else {
+            render(view:'create',model:[extendedAttributeTypeInstance:extendedAttributeTypeInstance])
+        }
+    }
+}
Index: trunk/grails-app/controllers/SectionController.groovy
===================================================================
--- trunk/grails-app/controllers/SectionController.groovy	(revision 287)
+++ 	(revision )
@@ -1,99 +1,0 @@
-import org.codehaus.groovy.grails.plugins.springsecurity.Secured
-
-class SectionController extends BaseAppAdminController {
-    
-    def index = { redirect(action:list,params:params) }
-
-    // the delete, save and update actions only accept POST requests
-    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
-
-    def list = {
-        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
-        [ sectionInstanceList: Section.list( params ), sectionInstanceTotal: Section.count() ]
-    }
-
-    def show = {
-        def sectionInstance = Section.get( params.id )
-
-        if(!sectionInstance) {
-            flash.message = "Section not found with id ${params.id}"
-            redirect(action:list)
-        }
-        else { return [ sectionInstance : sectionInstance ] }
-    }
-
-    def delete = {
-        def sectionInstance = Section.get( params.id )
-        if(sectionInstance) {
-            try {
-                sectionInstance.delete(flush:true)
-                flash.message = "Section ${params.id} deleted"
-                redirect(action:list)
-            }
-            catch(org.springframework.dao.DataIntegrityViolationException e) {
-                flash.message = "Section ${params.id} could not be deleted"
-                redirect(action:show,id:params.id)
-            }
-        }
-        else {
-            flash.message = "Section not found with id ${params.id}"
-            redirect(action:list)
-        }
-    }
-
-    def edit = {
-        def sectionInstance = Section.get( params.id )
-
-        if(!sectionInstance) {
-            flash.message = "Section not found with id ${params.id}"
-            redirect(action:list)
-        }
-        else {
-            return [ sectionInstance : sectionInstance ]
-        }
-    }
-
-    def update = {
-        def sectionInstance = Section.get( params.id )
-        if(sectionInstance) {
-            if(params.version) {
-                def version = params.version.toLong()
-                if(sectionInstance.version > version) {
-                    
-                    sectionInstance.errors.rejectValue("version", "section.optimistic.locking.failure", "Another user has updated this Section while you were editing.")
-                    render(view:'edit',model:[sectionInstance:sectionInstance])
-                    return
-                }
-            }
-            sectionInstance.properties = params
-            if(!sectionInstance.hasErrors() && sectionInstance.save(flush: true)) {
-                flash.message = "Section ${params.id} updated"
-                redirect(action:show,id:sectionInstance.id)
-            }
-            else {
-                render(view:'edit',model:[sectionInstance:sectionInstance])
-            }
-        }
-        else {
-            flash.message = "Section not found with id ${params.id}"
-            redirect(action:list)
-        }
-    }
-
-    def create = {
-        def sectionInstance = new Section()
-        sectionInstance.properties = params
-        return ['sectionInstance':sectionInstance]
-    }
-
-    def save = {
-        def sectionInstance = new Section(params)
-        if(!sectionInstance.hasErrors() && sectionInstance.save(flush: true)) {
-            flash.message = "Section ${sectionInstance.id} created"
-            redirect(action:show,id:sectionInstance.id)
-        }
-        else {
-            render(view:'create',model:[sectionInstance:sectionInstance])
-        }
-    }
-}
Index: trunk/grails-app/controllers/SectionDetailedController.groovy
===================================================================
--- trunk/grails-app/controllers/SectionDetailedController.groovy	(revision 287)
+++ trunk/grails-app/controllers/SectionDetailedController.groovy	(revision 288)
@@ -1,4 +1,5 @@
 import org.codehaus.groovy.grails.plugins.springsecurity.Secured
 
+@Secured(['ROLE_Manager','ROLE_AppAdmin'])
 class SectionDetailedController extends BaseController {
     
Index: trunk/grails-app/controllers/SectionExtendedAttributeController.groovy
===================================================================
--- trunk/grails-app/controllers/SectionExtendedAttributeController.groovy	(revision 287)
+++ 	(revision )
@@ -1,99 +1,0 @@
-import org.codehaus.groovy.grails.plugins.springsecurity.Secured
-
-class SectionExtendedAttributeController extends BaseAppAdminController {
-    
-    def index = { redirect(action:list,params:params) }
-
-    // the delete, save and update actions only accept POST requests
-    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
-
-    def list = {
-        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
-        [ sectionExtendedAttributeInstanceList: SectionExtendedAttribute.list( params ), sectionExtendedAttributeInstanceTotal: SectionExtendedAttribute.count() ]
-    }
-
-    def show = {
-        def sectionExtendedAttributeInstance = SectionExtendedAttribute.get( params.id )
-
-        if(!sectionExtendedAttributeInstance) {
-            flash.message = "SectionExtendedAttribute not found with id ${params.id}"
-            redirect(action:list)
-        }
-        else { return [ sectionExtendedAttributeInstance : sectionExtendedAttributeInstance ] }
-    }
-
-    def delete = {
-        def sectionExtendedAttributeInstance = SectionExtendedAttribute.get( params.id )
-        if(sectionExtendedAttributeInstance) {
-            try {
-                sectionExtendedAttributeInstance.delete(flush:true)
-                flash.message = "SectionExtendedAttribute ${params.id} deleted"
-                redirect(action:list)
-            }
-            catch(org.springframework.dao.DataIntegrityViolationException e) {
-                flash.message = "SectionExtendedAttribute ${params.id} could not be deleted"
-                redirect(action:show,id:params.id)
-            }
-        }
-        else {
-            flash.message = "SectionExtendedAttribute not found with id ${params.id}"
-            redirect(action:list)
-        }
-    }
-
-    def edit = {
-        def sectionExtendedAttributeInstance = SectionExtendedAttribute.get( params.id )
-
-        if(!sectionExtendedAttributeInstance) {
-            flash.message = "SectionExtendedAttribute not found with id ${params.id}"
-            redirect(action:list)
-        }
-        else {
-            return [ sectionExtendedAttributeInstance : sectionExtendedAttributeInstance ]
-        }
-    }
-
-    def update = {
-        def sectionExtendedAttributeInstance = SectionExtendedAttribute.get( params.id )
-        if(sectionExtendedAttributeInstance) {
-            if(params.version) {
-                def version = params.version.toLong()
-                if(sectionExtendedAttributeInstance.version > version) {
-                    
-                    sectionExtendedAttributeInstance.errors.rejectValue("version", "sectionExtendedAttribute.optimistic.locking.failure", "Another user has updated this SectionExtendedAttribute while you were editing.")
-                    render(view:'edit',model:[sectionExtendedAttributeInstance:sectionExtendedAttributeInstance])
-                    return
-                }
-            }
-            sectionExtendedAttributeInstance.properties = params
-            if(!sectionExtendedAttributeInstance.hasErrors() && sectionExtendedAttributeInstance.save(flush: true)) {
-                flash.message = "SectionExtendedAttribute ${params.id} updated"
-                redirect(action:show,id:sectionExtendedAttributeInstance.id)
-            }
-            else {
-                render(view:'edit',model:[sectionExtendedAttributeInstance:sectionExtendedAttributeInstance])
-            }
-        }
-        else {
-            flash.message = "SectionExtendedAttribute not found with id ${params.id}"
-            redirect(action:list)
-        }
-    }
-
-    def create = {
-        def sectionExtendedAttributeInstance = new SectionExtendedAttribute()
-        sectionExtendedAttributeInstance.properties = params
-        return ['sectionExtendedAttributeInstance':sectionExtendedAttributeInstance]
-    }
-
-    def save = {
-        def sectionExtendedAttributeInstance = new SectionExtendedAttribute(params)
-        if(!sectionExtendedAttributeInstance.hasErrors() && sectionExtendedAttributeInstance.save(flush: true)) {
-            flash.message = "SectionExtendedAttribute ${sectionExtendedAttributeInstance.id} created"
-            redirect(action:show,id:sectionExtendedAttributeInstance.id)
-        }
-        else {
-            render(view:'create',model:[sectionExtendedAttributeInstance:sectionExtendedAttributeInstance])
-        }
-    }
-}
Index: trunk/grails-app/controllers/SectionExtendedAttributeDetailedController.groovy
===================================================================
--- trunk/grails-app/controllers/SectionExtendedAttributeDetailedController.groovy	(revision 288)
+++ trunk/grails-app/controllers/SectionExtendedAttributeDetailedController.groovy	(revision 288)
@@ -0,0 +1,100 @@
+import org.codehaus.groovy.grails.plugins.springsecurity.Secured
+
+@Secured(['ROLE_Manager','ROLE_AppAdmin'])
+class SectionExtendedAttributeDetailedController extends BaseController {
+    
+    def index = { redirect(action:list,params:params) }
+
+    // the delete, save and update actions only accept POST requests
+    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
+
+    def list = {
+        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
+        [ sectionExtendedAttributeInstanceList: SectionExtendedAttribute.list( params ), sectionExtendedAttributeInstanceTotal: SectionExtendedAttribute.count() ]
+    }
+
+    def show = {
+        def sectionExtendedAttributeInstance = SectionExtendedAttribute.get( params.id )
+
+        if(!sectionExtendedAttributeInstance) {
+            flash.message = "SectionExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else { return [ sectionExtendedAttributeInstance : sectionExtendedAttributeInstance ] }
+    }
+
+    def delete = {
+        def sectionExtendedAttributeInstance = SectionExtendedAttribute.get( params.id )
+        if(sectionExtendedAttributeInstance) {
+            try {
+                sectionExtendedAttributeInstance.delete(flush:true)
+                flash.message = "SectionExtendedAttribute ${params.id} deleted"
+                redirect(action:list)
+            }
+            catch(org.springframework.dao.DataIntegrityViolationException e) {
+                flash.message = "SectionExtendedAttribute ${params.id} could not be deleted"
+                redirect(action:show,id:params.id)
+            }
+        }
+        else {
+            flash.message = "SectionExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+    }
+
+    def edit = {
+        def sectionExtendedAttributeInstance = SectionExtendedAttribute.get( params.id )
+
+        if(!sectionExtendedAttributeInstance) {
+            flash.message = "SectionExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else {
+            return [ sectionExtendedAttributeInstance : sectionExtendedAttributeInstance ]
+        }
+    }
+
+    def update = {
+        def sectionExtendedAttributeInstance = SectionExtendedAttribute.get( params.id )
+        if(sectionExtendedAttributeInstance) {
+            if(params.version) {
+                def version = params.version.toLong()
+                if(sectionExtendedAttributeInstance.version > version) {
+                    
+                    sectionExtendedAttributeInstance.errors.rejectValue("version", "sectionExtendedAttribute.optimistic.locking.failure", "Another user has updated this SectionExtendedAttribute while you were editing.")
+                    render(view:'edit',model:[sectionExtendedAttributeInstance:sectionExtendedAttributeInstance])
+                    return
+                }
+            }
+            sectionExtendedAttributeInstance.properties = params
+            if(!sectionExtendedAttributeInstance.hasErrors() && sectionExtendedAttributeInstance.save(flush: true)) {
+                flash.message = "SectionExtendedAttribute ${params.id} updated"
+                redirect(action:show,id:sectionExtendedAttributeInstance.id)
+            }
+            else {
+                render(view:'edit',model:[sectionExtendedAttributeInstance:sectionExtendedAttributeInstance])
+            }
+        }
+        else {
+            flash.message = "SectionExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+    }
+
+    def create = {
+        def sectionExtendedAttributeInstance = new SectionExtendedAttribute()
+        sectionExtendedAttributeInstance.properties = params
+        return ['sectionExtendedAttributeInstance':sectionExtendedAttributeInstance]
+    }
+
+    def save = {
+        def sectionExtendedAttributeInstance = new SectionExtendedAttribute(params)
+        if(!sectionExtendedAttributeInstance.hasErrors() && sectionExtendedAttributeInstance.save(flush: true)) {
+            flash.message = "SectionExtendedAttribute ${sectionExtendedAttributeInstance.id} created"
+            redirect(action:show,id:sectionExtendedAttributeInstance.id)
+        }
+        else {
+            render(view:'create',model:[sectionExtendedAttributeInstance:sectionExtendedAttributeInstance])
+        }
+    }
+}
Index: trunk/grails-app/controllers/SiteController.groovy
===================================================================
--- trunk/grails-app/controllers/SiteController.groovy	(revision 287)
+++ 	(revision )
@@ -1,99 +1,0 @@
-import org.codehaus.groovy.grails.plugins.springsecurity.Secured
-
-class SiteController extends BaseAppAdminController {
-    
-    def index = { redirect(action:list,params:params) }
-
-    // the delete, save and update actions only accept POST requests
-    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
-
-    def list = {
-        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
-        [ siteInstanceList: Site.list( params ), siteInstanceTotal: Site.count() ]
-    }
-
-    def show = {
-        def siteInstance = Site.get( params.id )
-
-        if(!siteInstance) {
-            flash.message = "Site not found with id ${params.id}"
-            redirect(action:list)
-        }
-        else { return [ siteInstance : siteInstance ] }
-    }
-
-    def delete = {
-        def siteInstance = Site.get( params.id )
-        if(siteInstance) {
-            try {
-                siteInstance.delete(flush:true)
-                flash.message = "Site ${params.id} deleted"
-                redirect(action:list)
-            }
-            catch(org.springframework.dao.DataIntegrityViolationException e) {
-                flash.message = "Site ${params.id} could not be deleted"
-                redirect(action:show,id:params.id)
-            }
-        }
-        else {
-            flash.message = "Site not found with id ${params.id}"
-            redirect(action:list)
-        }
-    }
-
-    def edit = {
-        def siteInstance = Site.get( params.id )
-
-        if(!siteInstance) {
-            flash.message = "Site not found with id ${params.id}"
-            redirect(action:list)
-        }
-        else {
-            return [ siteInstance : siteInstance ]
-        }
-    }
-
-    def update = {
-        def siteInstance = Site.get( params.id )
-        if(siteInstance) {
-            if(params.version) {
-                def version = params.version.toLong()
-                if(siteInstance.version > version) {
-                    
-                    siteInstance.errors.rejectValue("version", "site.optimistic.locking.failure", "Another user has updated this Site while you were editing.")
-                    render(view:'edit',model:[siteInstance:siteInstance])
-                    return
-                }
-            }
-            siteInstance.properties = params
-            if(!siteInstance.hasErrors() && siteInstance.save(flush: true)) {
-                flash.message = "Site ${params.id} updated"
-                redirect(action:show,id:siteInstance.id)
-            }
-            else {
-                render(view:'edit',model:[siteInstance:siteInstance])
-            }
-        }
-        else {
-            flash.message = "Site not found with id ${params.id}"
-            redirect(action:list)
-        }
-    }
-
-    def create = {
-        def siteInstance = new Site()
-        siteInstance.properties = params
-        return ['siteInstance':siteInstance]
-    }
-
-    def save = {
-        def siteInstance = new Site(params)
-        if(!siteInstance.hasErrors() && siteInstance.save(flush: true)) {
-            flash.message = "Site ${siteInstance.id} created"
-            redirect(action:show,id:siteInstance.id)
-        }
-        else {
-            render(view:'create',model:[siteInstance:siteInstance])
-        }
-    }
-}
Index: trunk/grails-app/controllers/SiteDetailedController.groovy
===================================================================
--- trunk/grails-app/controllers/SiteDetailedController.groovy	(revision 288)
+++ trunk/grails-app/controllers/SiteDetailedController.groovy	(revision 288)
@@ -0,0 +1,100 @@
+import org.codehaus.groovy.grails.plugins.springsecurity.Secured
+
+@Secured(['ROLE_Manager','ROLE_AppAdmin'])
+class SiteDetailedController extends BaseController {
+    
+    def index = { redirect(action:list,params:params) }
+
+    // the delete, save and update actions only accept POST requests
+    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
+
+    def list = {
+        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
+        [ siteInstanceList: Site.list( params ), siteInstanceTotal: Site.count() ]
+    }
+
+    def show = {
+        def siteInstance = Site.get( params.id )
+
+        if(!siteInstance) {
+            flash.message = "Site not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else { return [ siteInstance : siteInstance ] }
+    }
+
+    def delete = {
+        def siteInstance = Site.get( params.id )
+        if(siteInstance) {
+            try {
+                siteInstance.delete(flush:true)
+                flash.message = "Site ${params.id} deleted"
+                redirect(action:list)
+            }
+            catch(org.springframework.dao.DataIntegrityViolationException e) {
+                flash.message = "Site ${params.id} could not be deleted"
+                redirect(action:show,id:params.id)
+            }
+        }
+        else {
+            flash.message = "Site not found with id ${params.id}"
+            redirect(action:list)
+        }
+    }
+
+    def edit = {
+        def siteInstance = Site.get( params.id )
+
+        if(!siteInstance) {
+            flash.message = "Site not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else {
+            return [ siteInstance : siteInstance ]
+        }
+    }
+
+    def update = {
+        def siteInstance = Site.get( params.id )
+        if(siteInstance) {
+            if(params.version) {
+                def version = params.version.toLong()
+                if(siteInstance.version > version) {
+                    
+                    siteInstance.errors.rejectValue("version", "site.optimistic.locking.failure", "Another user has updated this Site while you were editing.")
+                    render(view:'edit',model:[siteInstance:siteInstance])
+                    return
+                }
+            }
+            siteInstance.properties = params
+            if(!siteInstance.hasErrors() && siteInstance.save(flush: true)) {
+                flash.message = "Site ${params.id} updated"
+                redirect(action:show,id:siteInstance.id)
+            }
+            else {
+                render(view:'edit',model:[siteInstance:siteInstance])
+            }
+        }
+        else {
+            flash.message = "Site not found with id ${params.id}"
+            redirect(action:list)
+        }
+    }
+
+    def create = {
+        def siteInstance = new Site()
+        siteInstance.properties = params
+        return ['siteInstance':siteInstance]
+    }
+
+    def save = {
+        def siteInstance = new Site(params)
+        if(!siteInstance.hasErrors() && siteInstance.save(flush: true)) {
+            flash.message = "Site ${siteInstance.id} created"
+            redirect(action:show,id:siteInstance.id)
+        }
+        else {
+            render(view:'create',model:[siteInstance:siteInstance])
+        }
+    }
+}
Index: trunk/grails-app/controllers/SiteExtendedAttributeController.groovy
===================================================================
--- trunk/grails-app/controllers/SiteExtendedAttributeController.groovy	(revision 287)
+++ 	(revision )
@@ -1,99 +1,0 @@
-import org.codehaus.groovy.grails.plugins.springsecurity.Secured
-
-class SiteExtendedAttributeController extends BaseAppAdminController {
-    
-    def index = { redirect(action:list,params:params) }
-
-    // the delete, save and update actions only accept POST requests
-    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
-
-    def list = {
-        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
-        [ siteExtendedAttributeInstanceList: SiteExtendedAttribute.list( params ), siteExtendedAttributeInstanceTotal: SiteExtendedAttribute.count() ]
-    }
-
-    def show = {
-        def siteExtendedAttributeInstance = SiteExtendedAttribute.get( params.id )
-
-        if(!siteExtendedAttributeInstance) {
-            flash.message = "SiteExtendedAttribute not found with id ${params.id}"
-            redirect(action:list)
-        }
-        else { return [ siteExtendedAttributeInstance : siteExtendedAttributeInstance ] }
-    }
-
-    def delete = {
-        def siteExtendedAttributeInstance = SiteExtendedAttribute.get( params.id )
-        if(siteExtendedAttributeInstance) {
-            try {
-                siteExtendedAttributeInstance.delete(flush:true)
-                flash.message = "SiteExtendedAttribute ${params.id} deleted"
-                redirect(action:list)
-            }
-            catch(org.springframework.dao.DataIntegrityViolationException e) {
-                flash.message = "SiteExtendedAttribute ${params.id} could not be deleted"
-                redirect(action:show,id:params.id)
-            }
-        }
-        else {
-            flash.message = "SiteExtendedAttribute not found with id ${params.id}"
-            redirect(action:list)
-        }
-    }
-
-    def edit = {
-        def siteExtendedAttributeInstance = SiteExtendedAttribute.get( params.id )
-
-        if(!siteExtendedAttributeInstance) {
-            flash.message = "SiteExtendedAttribute not found with id ${params.id}"
-            redirect(action:list)
-        }
-        else {
-            return [ siteExtendedAttributeInstance : siteExtendedAttributeInstance ]
-        }
-    }
-
-    def update = {
-        def siteExtendedAttributeInstance = SiteExtendedAttribute.get( params.id )
-        if(siteExtendedAttributeInstance) {
-            if(params.version) {
-                def version = params.version.toLong()
-                if(siteExtendedAttributeInstance.version > version) {
-                    
-                    siteExtendedAttributeInstance.errors.rejectValue("version", "siteExtendedAttribute.optimistic.locking.failure", "Another user has updated this SiteExtendedAttribute while you were editing.")
-                    render(view:'edit',model:[siteExtendedAttributeInstance:siteExtendedAttributeInstance])
-                    return
-                }
-            }
-            siteExtendedAttributeInstance.properties = params
-            if(!siteExtendedAttributeInstance.hasErrors() && siteExtendedAttributeInstance.save(flush: true)) {
-                flash.message = "SiteExtendedAttribute ${params.id} updated"
-                redirect(action:show,id:siteExtendedAttributeInstance.id)
-            }
-            else {
-                render(view:'edit',model:[siteExtendedAttributeInstance:siteExtendedAttributeInstance])
-            }
-        }
-        else {
-            flash.message = "SiteExtendedAttribute not found with id ${params.id}"
-            redirect(action:list)
-        }
-    }
-
-    def create = {
-        def siteExtendedAttributeInstance = new SiteExtendedAttribute()
-        siteExtendedAttributeInstance.properties = params
-        return ['siteExtendedAttributeInstance':siteExtendedAttributeInstance]
-    }
-
-    def save = {
-        def siteExtendedAttributeInstance = new SiteExtendedAttribute(params)
-        if(!siteExtendedAttributeInstance.hasErrors() && siteExtendedAttributeInstance.save(flush: true)) {
-            flash.message = "SiteExtendedAttribute ${siteExtendedAttributeInstance.id} created"
-            redirect(action:show,id:siteExtendedAttributeInstance.id)
-        }
-        else {
-            render(view:'create',model:[siteExtendedAttributeInstance:siteExtendedAttributeInstance])
-        }
-    }
-}
Index: trunk/grails-app/controllers/SiteExtendedAttributeDetailedController.groovy
===================================================================
--- trunk/grails-app/controllers/SiteExtendedAttributeDetailedController.groovy	(revision 288)
+++ trunk/grails-app/controllers/SiteExtendedAttributeDetailedController.groovy	(revision 288)
@@ -0,0 +1,100 @@
+import org.codehaus.groovy.grails.plugins.springsecurity.Secured
+
+@Secured(['ROLE_Manager','ROLE_AppAdmin'])
+class SiteExtendedAttributeDetailedController extends BaseController {
+    
+    def index = { redirect(action:list,params:params) }
+
+    // the delete, save and update actions only accept POST requests
+    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
+
+    def list = {
+        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
+        [ siteExtendedAttributeInstanceList: SiteExtendedAttribute.list( params ), siteExtendedAttributeInstanceTotal: SiteExtendedAttribute.count() ]
+    }
+
+    def show = {
+        def siteExtendedAttributeInstance = SiteExtendedAttribute.get( params.id )
+
+        if(!siteExtendedAttributeInstance) {
+            flash.message = "SiteExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else { return [ siteExtendedAttributeInstance : siteExtendedAttributeInstance ] }
+    }
+
+    def delete = {
+        def siteExtendedAttributeInstance = SiteExtendedAttribute.get( params.id )
+        if(siteExtendedAttributeInstance) {
+            try {
+                siteExtendedAttributeInstance.delete(flush:true)
+                flash.message = "SiteExtendedAttribute ${params.id} deleted"
+                redirect(action:list)
+            }
+            catch(org.springframework.dao.DataIntegrityViolationException e) {
+                flash.message = "SiteExtendedAttribute ${params.id} could not be deleted"
+                redirect(action:show,id:params.id)
+            }
+        }
+        else {
+            flash.message = "SiteExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+    }
+
+    def edit = {
+        def siteExtendedAttributeInstance = SiteExtendedAttribute.get( params.id )
+
+        if(!siteExtendedAttributeInstance) {
+            flash.message = "SiteExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else {
+            return [ siteExtendedAttributeInstance : siteExtendedAttributeInstance ]
+        }
+    }
+
+    def update = {
+        def siteExtendedAttributeInstance = SiteExtendedAttribute.get( params.id )
+        if(siteExtendedAttributeInstance) {
+            if(params.version) {
+                def version = params.version.toLong()
+                if(siteExtendedAttributeInstance.version > version) {
+                    
+                    siteExtendedAttributeInstance.errors.rejectValue("version", "siteExtendedAttribute.optimistic.locking.failure", "Another user has updated this SiteExtendedAttribute while you were editing.")
+                    render(view:'edit',model:[siteExtendedAttributeInstance:siteExtendedAttributeInstance])
+                    return
+                }
+            }
+            siteExtendedAttributeInstance.properties = params
+            if(!siteExtendedAttributeInstance.hasErrors() && siteExtendedAttributeInstance.save(flush: true)) {
+                flash.message = "SiteExtendedAttribute ${params.id} updated"
+                redirect(action:show,id:siteExtendedAttributeInstance.id)
+            }
+            else {
+                render(view:'edit',model:[siteExtendedAttributeInstance:siteExtendedAttributeInstance])
+            }
+        }
+        else {
+            flash.message = "SiteExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+    }
+
+    def create = {
+        def siteExtendedAttributeInstance = new SiteExtendedAttribute()
+        siteExtendedAttributeInstance.properties = params
+        return ['siteExtendedAttributeInstance':siteExtendedAttributeInstance]
+    }
+
+    def save = {
+        def siteExtendedAttributeInstance = new SiteExtendedAttribute(params)
+        if(!siteExtendedAttributeInstance.hasErrors() && siteExtendedAttributeInstance.save(flush: true)) {
+            flash.message = "SiteExtendedAttribute ${siteExtendedAttributeInstance.id} created"
+            redirect(action:show,id:siteExtendedAttributeInstance.id)
+        }
+        else {
+            render(view:'create',model:[siteExtendedAttributeInstance:siteExtendedAttributeInstance])
+        }
+    }
+}
Index: trunk/grails-app/views/departmentDetailed/create.gsp
===================================================================
--- trunk/grails-app/views/departmentDetailed/create.gsp	(revision 288)
+++ trunk/grails-app/views/departmentDetailed/create.gsp	(revision 288)
@@ -0,0 +1,64 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Create Department</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">Department List</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Create Department</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <g:hasErrors bean="${departmentInstance}">
+            <div class="errors">
+                <g:renderErrors bean="${departmentInstance}" as="list" />
+            </div>
+            </g:hasErrors>
+            <g:form action="save" method="post" >
+                <div class="dialog">
+                    <table>
+                        <tbody>
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="name">Name:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'name','errors')}">
+                                    <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="description">Description:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'description','errors')}">
+                                    <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:departmentInstance,field:'description')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="isActive">Is Active:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${departmentInstance?.isActive}" ></g:checkBox>
+                                </td>
+                            </tr> 
+                        
+                        </tbody>
+                    </table>
+                </div>
+                <div class="buttons">
+                    <span class="button"><input class="save" type="submit" value="Create" /></span>
+                </div>
+            </g:form>
+        </div>
+    </body>
+</html>
Index: trunk/grails-app/views/departmentDetailed/edit.gsp
===================================================================
--- trunk/grails-app/views/departmentDetailed/edit.gsp	(revision 288)
+++ trunk/grails-app/views/departmentDetailed/edit.gsp	(revision 288)
@@ -0,0 +1,116 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Edit Department</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">Department List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New Department</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Edit Department</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <g:hasErrors bean="${departmentInstance}">
+            <div class="errors">
+                <g:renderErrors bean="${departmentInstance}" as="list" />
+            </div>
+            </g:hasErrors>
+            <g:form method="post" >
+                <input type="hidden" name="id" value="${departmentInstance?.id}" />
+                <input type="hidden" name="version" value="${departmentInstance?.version}" />
+                <div class="dialog">
+                    <table>
+                        <tbody>
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="name">Name:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'name','errors')}">
+                                    <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="description">Description:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'description','errors')}">
+                                    <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:departmentInstance,field:'description')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="isActive">Is Active:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${departmentInstance?.isActive}" ></g:checkBox>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="departmentExtendedAttributes">Department Extended Attributes:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'departmentExtendedAttributes','errors')}">
+                                    
+<ul>
+<g:each var="d" in="${departmentInstance?.departmentExtendedAttributes?}">
+    <li><g:link controller="departmentExtendedAttributeDetailed" action="show" id="${d.id}">${d?.encodeAsHTML()}</g:link></li>
+</g:each>
+</ul>
+<g:link controller="departmentExtendedAttributeDetailed" params="['department.id':departmentInstance?.id]" action="create">Add DepartmentExtendedAttribute</g:link>
+
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="persons">Persons:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'persons','errors')}">
+                                    
+<ul>
+<g:each var="p" in="${departmentInstance?.persons?}">
+    <li><g:link controller="person" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></li>
+</g:each>
+</ul>
+<g:link controller="person" params="['department.id':departmentInstance?.id]" action="create">Add Person</g:link>
+
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="sections">Sections:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'sections','errors')}">
+                                    
+<ul>
+<g:each var="s" in="${departmentInstance?.sections?}">
+    <li><g:link controller="sectionDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
+</g:each>
+</ul>
+<g:link controller="sectionDetailed" params="['department.id':departmentInstance?.id]" action="create">Add Section</g:link>
+
+                                </td>
+                            </tr> 
+                        
+                        </tbody>
+                    </table>
+                </div>
+                <div class="buttons">
+                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
+                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
+                </div>
+            </g:form>
+        </div>
+    </body>
+</html>
Index: trunk/grails-app/views/departmentDetailed/list.gsp
===================================================================
--- trunk/grails-app/views/departmentDetailed/list.gsp	(revision 288)
+++ trunk/grails-app/views/departmentDetailed/list.gsp	(revision 288)
@@ -0,0 +1,55 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Department List</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="create" action="create">New Department</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Department List</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <div class="list">
+                <table>
+                    <thead>
+                        <tr>
+                        
+                   	        <g:sortableColumn property="id" title="Id" />
+                        
+                   	        <g:sortableColumn property="name" title="Name" />
+                        
+                   	        <g:sortableColumn property="description" title="Description" />
+                        
+                   	        <g:sortableColumn property="isActive" title="Is Active" />
+                        
+                        </tr>
+                    </thead>
+                    <tbody>
+                    <g:each in="${departmentInstanceList}" status="i" var="departmentInstance">
+                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
+                        
+                            <td><g:link action="show" id="${departmentInstance.id}">${fieldValue(bean:departmentInstance, field:'id')}</g:link></td>
+                        
+                            <td>${fieldValue(bean:departmentInstance, field:'name')}</td>
+                        
+                            <td>${fieldValue(bean:departmentInstance, field:'description')}</td>
+                        
+                            <td>${fieldValue(bean:departmentInstance, field:'isActive')}</td>
+                        
+                        </tr>
+                    </g:each>
+                    </tbody>
+                </table>
+            </div>
+            <div class="paginateButtons">
+                <g:paginate total="${departmentInstanceTotal}" />
+            </div>
+        </div>
+    </body>
+</html>
Index: trunk/grails-app/views/departmentDetailed/show.gsp
===================================================================
--- trunk/grails-app/views/departmentDetailed/show.gsp	(revision 288)
+++ trunk/grails-app/views/departmentDetailed/show.gsp	(revision 288)
@@ -0,0 +1,103 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Show Department</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">Department List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New Department</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Show Department</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <div class="dialog">
+                <table>
+                    <tbody>
+
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Id:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:departmentInstance, field:'id')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Name:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:departmentInstance, field:'name')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Description:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:departmentInstance, field:'description')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Is Active:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:departmentInstance, field:'isActive')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Department Extended Attributes:</td>
+                            
+                            <td  valign="top" style="text-align:left;" class="value">
+                                <ul>
+                                <g:each var="d" in="${departmentInstance.departmentExtendedAttributes}">
+                                    <li><g:link controller="departmentExtendedAttributeDetailed" action="show" id="${d.id}">${d?.encodeAsHTML()}</g:link></li>
+                                </g:each>
+                                </ul>
+                            </td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Persons:</td>
+                            
+                            <td  valign="top" style="text-align:left;" class="value">
+                                <ul>
+                                <g:each var="p" in="${departmentInstance.persons}">
+                                    <li><g:link controller="person" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></li>
+                                </g:each>
+                                </ul>
+                            </td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Sections:</td>
+                            
+                            <td  valign="top" style="text-align:left;" class="value">
+                                <ul>
+                                <g:each var="s" in="${departmentInstance.sections}">
+                                    <li><g:link controller="sectionDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
+                                </g:each>
+                                </ul>
+                            </td>
+                            
+                        </tr>
+                    
+                    </tbody>
+                </table>
+            </div>
+            <div class="buttons">
+                <g:form>
+                    <input type="hidden" name="id" value="${departmentInstance?.id}" />
+                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
+                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
+                </g:form>
+            </div>
+        </div>
+    </body>
+</html>
Index: trunk/grails-app/views/departmentExtendedAttributeDetailed/create.gsp
===================================================================
--- trunk/grails-app/views/departmentExtendedAttributeDetailed/create.gsp	(revision 288)
+++ trunk/grails-app/views/departmentExtendedAttributeDetailed/create.gsp	(revision 288)
@@ -0,0 +1,73 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Create DepartmentExtendedAttribute</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">DepartmentExtendedAttribute List</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Create DepartmentExtendedAttribute</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <g:hasErrors bean="${departmentExtendedAttributeInstance}">
+            <div class="errors">
+                <g:renderErrors bean="${departmentExtendedAttributeInstance}" as="list" />
+            </div>
+            </g:hasErrors>
+            <g:form action="save" method="post" >
+                <div class="dialog">
+                    <table>
+                        <tbody>
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="value">Value:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:departmentExtendedAttributeInstance,field:'value','errors')}">
+                                    <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:departmentExtendedAttributeInstance,field:'value')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="isActive">Is Active:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:departmentExtendedAttributeInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${departmentExtendedAttributeInstance?.isActive}" ></g:checkBox>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="department">Department:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:departmentExtendedAttributeInstance,field:'department','errors')}">
+                                    <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${departmentExtendedAttributeInstance?.department?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="extendedAttributeType">Extended Attribute Type:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:departmentExtendedAttributeInstance,field:'extendedAttributeType','errors')}">
+                                    <g:select optionKey="id" from="${ExtendedAttributeType.list()}" name="extendedAttributeType.id" value="${departmentExtendedAttributeInstance?.extendedAttributeType?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                        </tbody>
+                    </table>
+                </div>
+                <div class="buttons">
+                    <span class="button"><input class="save" type="submit" value="Create" /></span>
+                </div>
+            </g:form>
+        </div>
+    </body>
+</html>
Index: trunk/grails-app/views/departmentExtendedAttributeDetailed/edit.gsp
===================================================================
--- trunk/grails-app/views/departmentExtendedAttributeDetailed/edit.gsp	(revision 288)
+++ trunk/grails-app/views/departmentExtendedAttributeDetailed/edit.gsp	(revision 288)
@@ -0,0 +1,77 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Edit DepartmentExtendedAttribute</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">DepartmentExtendedAttribute List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New DepartmentExtendedAttribute</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Edit DepartmentExtendedAttribute</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <g:hasErrors bean="${departmentExtendedAttributeInstance}">
+            <div class="errors">
+                <g:renderErrors bean="${departmentExtendedAttributeInstance}" as="list" />
+            </div>
+            </g:hasErrors>
+            <g:form method="post" >
+                <input type="hidden" name="id" value="${departmentExtendedAttributeInstance?.id}" />
+                <input type="hidden" name="version" value="${departmentExtendedAttributeInstance?.version}" />
+                <div class="dialog">
+                    <table>
+                        <tbody>
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="value">Value:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:departmentExtendedAttributeInstance,field:'value','errors')}">
+                                    <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:departmentExtendedAttributeInstance,field:'value')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="isActive">Is Active:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:departmentExtendedAttributeInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${departmentExtendedAttributeInstance?.isActive}" ></g:checkBox>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="department">Department:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:departmentExtendedAttributeInstance,field:'department','errors')}">
+                                    <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${departmentExtendedAttributeInstance?.department?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="extendedAttributeType">Extended Attribute Type:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:departmentExtendedAttributeInstance,field:'extendedAttributeType','errors')}">
+                                    <g:select optionKey="id" from="${ExtendedAttributeType.list()}" name="extendedAttributeType.id" value="${departmentExtendedAttributeInstance?.extendedAttributeType?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                        </tbody>
+                    </table>
+                </div>
+                <div class="buttons">
+                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
+                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
+                </div>
+            </g:form>
+        </div>
+    </body>
+</html>
Index: trunk/grails-app/views/departmentExtendedAttributeDetailed/list.gsp
===================================================================
--- trunk/grails-app/views/departmentExtendedAttributeDetailed/list.gsp	(revision 288)
+++ trunk/grails-app/views/departmentExtendedAttributeDetailed/list.gsp	(revision 288)
@@ -0,0 +1,59 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>DepartmentExtendedAttribute List</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="create" action="create">New DepartmentExtendedAttribute</g:link></span>
+        </div>
+        <div class="body">
+            <h1>DepartmentExtendedAttribute List</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <div class="list">
+                <table>
+                    <thead>
+                        <tr>
+                        
+                   	        <g:sortableColumn property="id" title="Id" />
+                        
+                   	        <g:sortableColumn property="value" title="Value" />
+                        
+                   	        <g:sortableColumn property="isActive" title="Is Active" />
+                        
+                   	        <th>Department</th>
+                   	    
+                   	        <th>Extended Attribute Type</th>
+                   	    
+                        </tr>
+                    </thead>
+                    <tbody>
+                    <g:each in="${departmentExtendedAttributeInstanceList}" status="i" var="departmentExtendedAttributeInstance">
+                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
+                        
+                            <td><g:link action="show" id="${departmentExtendedAttributeInstance.id}">${fieldValue(bean:departmentExtendedAttributeInstance, field:'id')}</g:link></td>
+                        
+                            <td>${fieldValue(bean:departmentExtendedAttributeInstance, field:'value')}</td>
+                        
+                            <td>${fieldValue(bean:departmentExtendedAttributeInstance, field:'isActive')}</td>
+                        
+                            <td>${fieldValue(bean:departmentExtendedAttributeInstance, field:'department')}</td>
+                        
+                            <td>${fieldValue(bean:departmentExtendedAttributeInstance, field:'extendedAttributeType')}</td>
+                        
+                        </tr>
+                    </g:each>
+                    </tbody>
+                </table>
+            </div>
+            <div class="paginateButtons">
+                <g:paginate total="${departmentExtendedAttributeInstanceTotal}" />
+            </div>
+        </div>
+    </body>
+</html>
Index: trunk/grails-app/views/departmentExtendedAttributeDetailed/show.gsp
===================================================================
--- trunk/grails-app/views/departmentExtendedAttributeDetailed/show.gsp	(revision 288)
+++ trunk/grails-app/views/departmentExtendedAttributeDetailed/show.gsp	(revision 288)
@@ -0,0 +1,71 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Show DepartmentExtendedAttribute</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">DepartmentExtendedAttribute List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New DepartmentExtendedAttribute</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Show DepartmentExtendedAttribute</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <div class="dialog">
+                <table>
+                    <tbody>
+
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Id:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:departmentExtendedAttributeInstance, field:'id')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Value:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:departmentExtendedAttributeInstance, field:'value')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Is Active:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:departmentExtendedAttributeInstance, field:'isActive')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Department:</td>
+                            
+                            <td valign="top" class="value"><g:link controller="department" action="show" id="${departmentExtendedAttributeInstance?.department?.id}">${departmentExtendedAttributeInstance?.department?.encodeAsHTML()}</g:link></td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Extended Attribute Type:</td>
+                            
+                            <td valign="top" class="value"><g:link controller="extendedAttributeType" action="show" id="${departmentExtendedAttributeInstance?.extendedAttributeType?.id}">${departmentExtendedAttributeInstance?.extendedAttributeType?.encodeAsHTML()}</g:link></td>
+                            
+                        </tr>
+                    
+                    </tbody>
+                </table>
+            </div>
+            <div class="buttons">
+                <g:form>
+                    <input type="hidden" name="id" value="${departmentExtendedAttributeInstance?.id}" />
+                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
+                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
+                </g:form>
+            </div>
+        </div>
+    </body>
+</html>
Index: trunk/grails-app/views/extendedAttributeTypeDetailed/create.gsp
===================================================================
--- trunk/grails-app/views/extendedAttributeTypeDetailed/create.gsp	(revision 288)
+++ trunk/grails-app/views/extendedAttributeTypeDetailed/create.gsp	(revision 288)
@@ -0,0 +1,64 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Create ExtendedAttributeType</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">ExtendedAttributeType List</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Create ExtendedAttributeType</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <g:hasErrors bean="${extendedAttributeTypeInstance}">
+            <div class="errors">
+                <g:renderErrors bean="${extendedAttributeTypeInstance}" as="list" />
+            </div>
+            </g:hasErrors>
+            <g:form action="save" method="post" >
+                <div class="dialog">
+                    <table>
+                        <tbody>
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="name">Name:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:extendedAttributeTypeInstance,field:'name','errors')}">
+                                    <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:extendedAttributeTypeInstance,field:'name')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="description">Description:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:extendedAttributeTypeInstance,field:'description','errors')}">
+                                    <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:extendedAttributeTypeInstance,field:'description')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="isActive">Is Active:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:extendedAttributeTypeInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${extendedAttributeTypeInstance?.isActive}" ></g:checkBox>
+                                </td>
+                            </tr> 
+                        
+                        </tbody>
+                    </table>
+                </div>
+                <div class="buttons">
+                    <span class="button"><input class="save" type="submit" value="Create" /></span>
+                </div>
+            </g:form>
+        </div>
+    </body>
+</html>
Index: trunk/grails-app/views/extendedAttributeTypeDetailed/edit.gsp
===================================================================
--- trunk/grails-app/views/extendedAttributeTypeDetailed/edit.gsp	(revision 288)
+++ trunk/grails-app/views/extendedAttributeTypeDetailed/edit.gsp	(revision 288)
@@ -0,0 +1,68 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Edit ExtendedAttributeType</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">ExtendedAttributeType List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New ExtendedAttributeType</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Edit ExtendedAttributeType</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <g:hasErrors bean="${extendedAttributeTypeInstance}">
+            <div class="errors">
+                <g:renderErrors bean="${extendedAttributeTypeInstance}" as="list" />
+            </div>
+            </g:hasErrors>
+            <g:form method="post" >
+                <input type="hidden" name="id" value="${extendedAttributeTypeInstance?.id}" />
+                <input type="hidden" name="version" value="${extendedAttributeTypeInstance?.version}" />
+                <div class="dialog">
+                    <table>
+                        <tbody>
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="name">Name:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:extendedAttributeTypeInstance,field:'name','errors')}">
+                                    <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:extendedAttributeTypeInstance,field:'name')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="description">Description:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:extendedAttributeTypeInstance,field:'description','errors')}">
+                                    <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:extendedAttributeTypeInstance,field:'description')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="isActive">Is Active:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:extendedAttributeTypeInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${extendedAttributeTypeInstance?.isActive}" ></g:checkBox>
+                                </td>
+                            </tr> 
+                        
+                        </tbody>
+                    </table>
+                </div>
+                <div class="buttons">
+                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
+                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
+                </div>
+            </g:form>
+        </div>
+    </body>
+</html>
Index: trunk/grails-app/views/extendedAttributeTypeDetailed/list.gsp
===================================================================
--- trunk/grails-app/views/extendedAttributeTypeDetailed/list.gsp	(revision 288)
+++ trunk/grails-app/views/extendedAttributeTypeDetailed/list.gsp	(revision 288)
@@ -0,0 +1,55 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>ExtendedAttributeType List</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="create" action="create">New ExtendedAttributeType</g:link></span>
+        </div>
+        <div class="body">
+            <h1>ExtendedAttributeType List</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <div class="list">
+                <table>
+                    <thead>
+                        <tr>
+                        
+                   	        <g:sortableColumn property="id" title="Id" />
+                        
+                   	        <g:sortableColumn property="name" title="Name" />
+                        
+                   	        <g:sortableColumn property="description" title="Description" />
+                        
+                   	        <g:sortableColumn property="isActive" title="Is Active" />
+                        
+                        </tr>
+                    </thead>
+                    <tbody>
+                    <g:each in="${extendedAttributeTypeInstanceList}" status="i" var="extendedAttributeTypeInstance">
+                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
+                        
+                            <td><g:link action="show" id="${extendedAttributeTypeInstance.id}">${fieldValue(bean:extendedAttributeTypeInstance, field:'id')}</g:link></td>
+                        
+                            <td>${fieldValue(bean:extendedAttributeTypeInstance, field:'name')}</td>
+                        
+                            <td>${fieldValue(bean:extendedAttributeTypeInstance, field:'description')}</td>
+                        
+                            <td>${fieldValue(bean:extendedAttributeTypeInstance, field:'isActive')}</td>
+                        
+                        </tr>
+                    </g:each>
+                    </tbody>
+                </table>
+            </div>
+            <div class="paginateButtons">
+                <g:paginate total="${extendedAttributeTypeInstanceTotal}" />
+            </div>
+        </div>
+    </body>
+</html>
Index: trunk/grails-app/views/extendedAttributeTypeDetailed/show.gsp
===================================================================
--- trunk/grails-app/views/extendedAttributeTypeDetailed/show.gsp	(revision 288)
+++ trunk/grails-app/views/extendedAttributeTypeDetailed/show.gsp	(revision 288)
@@ -0,0 +1,64 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Show ExtendedAttributeType</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">ExtendedAttributeType List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New ExtendedAttributeType</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Show ExtendedAttributeType</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <div class="dialog">
+                <table>
+                    <tbody>
+
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Id:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:extendedAttributeTypeInstance, field:'id')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Name:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:extendedAttributeTypeInstance, field:'name')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Description:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:extendedAttributeTypeInstance, field:'description')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Is Active:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:extendedAttributeTypeInstance, field:'isActive')}</td>
+                            
+                        </tr>
+                    
+                    </tbody>
+                </table>
+            </div>
+            <div class="buttons">
+                <g:form>
+                    <input type="hidden" name="id" value="${extendedAttributeTypeInstance?.id}" />
+                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
+                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
+                </g:form>
+            </div>
+        </div>
+    </body>
+</html>
Index: trunk/grails-app/views/sectionDetailed/edit.gsp
===================================================================
--- trunk/grails-app/views/sectionDetailed/edit.gsp	(revision 287)
+++ trunk/grails-app/views/sectionDetailed/edit.gsp	(revision 288)
@@ -64,8 +64,8 @@
 <ul>
 <g:each var="a" in="${sectionInstance?.assets?}">
-    <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
+    <li><g:link controller="assetDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
 </g:each>
 </ul>
-<g:link controller="asset" params="['section.id':sectionInstance?.id]" action="create">Add Asset</g:link>
+<g:link controller="assetDetailed" params="['section.id':sectionInstance?.id]" action="create">Add Asset</g:link>
 
                                 </td>
@@ -89,8 +89,8 @@
 <ul>
 <g:each var="m" in="${sectionInstance?.maintenanceActions?}">
-    <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
+    <li><g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
 </g:each>
 </ul>
-<g:link controller="maintenanceAction" params="['section.id':sectionInstance?.id]" action="create">Add MaintenanceAction</g:link>
+<g:link controller="maintenanceActionDetailed" params="['section.id':sectionInstance?.id]" action="create">Add MaintenanceAction</g:link>
 
                                 </td>
@@ -105,8 +105,8 @@
 <ul>
 <g:each var="s" in="${sectionInstance?.sectionExtendedAttributes?}">
-    <li><g:link controller="sectionExtendedAttribute" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
+    <li><g:link controller="sectionExtendedAttributeDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
 </g:each>
 </ul>
-<g:link controller="sectionExtendedAttribute" params="['section.id':sectionInstance?.id]" action="create">Add SectionExtendedAttribute</g:link>
+<g:link controller="sectionExtendedAttributeDetailed" params="['section.id':sectionInstance?.id]" action="create">Add SectionExtendedAttribute</g:link>
 
                                 </td>
Index: trunk/grails-app/views/sectionDetailed/show.gsp
===================================================================
--- trunk/grails-app/views/sectionDetailed/show.gsp	(revision 287)
+++ trunk/grails-app/views/sectionDetailed/show.gsp	(revision 288)
@@ -56,5 +56,5 @@
                                 <ul>
                                 <g:each var="a" in="${sectionInstance.assets}">
-                                    <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
+                                    <li><g:link controller="assetDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
                                 </g:each>
                                 </ul>
@@ -66,5 +66,5 @@
                             <td valign="top" class="name">Department:</td>
                             
-                            <td valign="top" class="value"><g:link controller="department" action="show" id="${sectionInstance?.department?.id}">${sectionInstance?.department?.encodeAsHTML()}</g:link></td>
+                            <td valign="top" class="value"><g:link controller="departmentDetailed" action="show" id="${sectionInstance?.department?.id}">${sectionInstance?.department?.encodeAsHTML()}</g:link></td>
                             
                         </tr>
@@ -76,5 +76,5 @@
                                 <ul>
                                 <g:each var="m" in="${sectionInstance.maintenanceActions}">
-                                    <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
+                                    <li><g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
                                 </g:each>
                                 </ul>
@@ -89,5 +89,5 @@
                                 <ul>
                                 <g:each var="s" in="${sectionInstance.sectionExtendedAttributes}">
-                                    <li><g:link controller="sectionExtendedAttribute" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
+                                    <li><g:link controller="sectionExtendedAttributeDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
                                 </g:each>
                                 </ul>
@@ -99,5 +99,5 @@
                             <td valign="top" class="name">Site:</td>
                             
-                            <td valign="top" class="value"><g:link controller="site" action="show" id="${sectionInstance?.site?.id}">${sectionInstance?.site?.encodeAsHTML()}</g:link></td>
+                            <td valign="top" class="value"><g:link controller="siteDetailed" action="show" id="${sectionInstance?.site?.id}">${sectionInstance?.site?.encodeAsHTML()}</g:link></td>
                             
                         </tr>
Index: trunk/grails-app/views/sectionExtendedAttributeDetailed/create.gsp
===================================================================
--- trunk/grails-app/views/sectionExtendedAttributeDetailed/create.gsp	(revision 288)
+++ trunk/grails-app/views/sectionExtendedAttributeDetailed/create.gsp	(revision 288)
@@ -0,0 +1,73 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Create SectionExtendedAttribute</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">SectionExtendedAttribute List</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Create SectionExtendedAttribute</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <g:hasErrors bean="${sectionExtendedAttributeInstance}">
+            <div class="errors">
+                <g:renderErrors bean="${sectionExtendedAttributeInstance}" as="list" />
+            </div>
+            </g:hasErrors>
+            <g:form action="save" method="post" >
+                <div class="dialog">
+                    <table>
+                        <tbody>
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="value">Value:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:sectionExtendedAttributeInstance,field:'value','errors')}">
+                                    <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:sectionExtendedAttributeInstance,field:'value')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="isActive">Is Active:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:sectionExtendedAttributeInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${sectionExtendedAttributeInstance?.isActive}" ></g:checkBox>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="extendedAttributeType">Extended Attribute Type:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:sectionExtendedAttributeInstance,field:'extendedAttributeType','errors')}">
+                                    <g:select optionKey="id" from="${ExtendedAttributeType.list()}" name="extendedAttributeType.id" value="${sectionExtendedAttributeInstance?.extendedAttributeType?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="section">Section:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:sectionExtendedAttributeInstance,field:'section','errors')}">
+                                    <g:select optionKey="id" from="${Section.list()}" name="section.id" value="${sectionExtendedAttributeInstance?.section?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                        </tbody>
+                    </table>
+                </div>
+                <div class="buttons">
+                    <span class="button"><input class="save" type="submit" value="Create" /></span>
+                </div>
+            </g:form>
+        </div>
+    </body>
+</html>
Index: trunk/grails-app/views/sectionExtendedAttributeDetailed/edit.gsp
===================================================================
--- trunk/grails-app/views/sectionExtendedAttributeDetailed/edit.gsp	(revision 288)
+++ trunk/grails-app/views/sectionExtendedAttributeDetailed/edit.gsp	(revision 288)
@@ -0,0 +1,77 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Edit SectionExtendedAttribute</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">SectionExtendedAttribute List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New SectionExtendedAttribute</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Edit SectionExtendedAttribute</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <g:hasErrors bean="${sectionExtendedAttributeInstance}">
+            <div class="errors">
+                <g:renderErrors bean="${sectionExtendedAttributeInstance}" as="list" />
+            </div>
+            </g:hasErrors>
+            <g:form method="post" >
+                <input type="hidden" name="id" value="${sectionExtendedAttributeInstance?.id}" />
+                <input type="hidden" name="version" value="${sectionExtendedAttributeInstance?.version}" />
+                <div class="dialog">
+                    <table>
+                        <tbody>
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="value">Value:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:sectionExtendedAttributeInstance,field:'value','errors')}">
+                                    <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:sectionExtendedAttributeInstance,field:'value')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="isActive">Is Active:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:sectionExtendedAttributeInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${sectionExtendedAttributeInstance?.isActive}" ></g:checkBox>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="extendedAttributeType">Extended Attribute Type:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:sectionExtendedAttributeInstance,field:'extendedAttributeType','errors')}">
+                                    <g:select optionKey="id" from="${ExtendedAttributeType.list()}" name="extendedAttributeType.id" value="${sectionExtendedAttributeInstance?.extendedAttributeType?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="section">Section:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:sectionExtendedAttributeInstance,field:'section','errors')}">
+                                    <g:select optionKey="id" from="${Section.list()}" name="section.id" value="${sectionExtendedAttributeInstance?.section?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                        </tbody>
+                    </table>
+                </div>
+                <div class="buttons">
+                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
+                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
+                </div>
+            </g:form>
+        </div>
+    </body>
+</html>
Index: trunk/grails-app/views/sectionExtendedAttributeDetailed/list.gsp
===================================================================
--- trunk/grails-app/views/sectionExtendedAttributeDetailed/list.gsp	(revision 288)
+++ trunk/grails-app/views/sectionExtendedAttributeDetailed/list.gsp	(revision 288)
@@ -0,0 +1,59 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>SectionExtendedAttribute List</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="create" action="create">New SectionExtendedAttribute</g:link></span>
+        </div>
+        <div class="body">
+            <h1>SectionExtendedAttribute List</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <div class="list">
+                <table>
+                    <thead>
+                        <tr>
+                        
+                   	        <g:sortableColumn property="id" title="Id" />
+                        
+                   	        <g:sortableColumn property="value" title="Value" />
+                        
+                   	        <g:sortableColumn property="isActive" title="Is Active" />
+                        
+                   	        <th>Extended Attribute Type</th>
+                   	    
+                   	        <th>Section</th>
+                   	    
+                        </tr>
+                    </thead>
+                    <tbody>
+                    <g:each in="${sectionExtendedAttributeInstanceList}" status="i" var="sectionExtendedAttributeInstance">
+                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
+                        
+                            <td><g:link action="show" id="${sectionExtendedAttributeInstance.id}">${fieldValue(bean:sectionExtendedAttributeInstance, field:'id')}</g:link></td>
+                        
+                            <td>${fieldValue(bean:sectionExtendedAttributeInstance, field:'value')}</td>
+                        
+                            <td>${fieldValue(bean:sectionExtendedAttributeInstance, field:'isActive')}</td>
+                        
+                            <td>${fieldValue(bean:sectionExtendedAttributeInstance, field:'extendedAttributeType')}</td>
+                        
+                            <td>${fieldValue(bean:sectionExtendedAttributeInstance, field:'section')}</td>
+                        
+                        </tr>
+                    </g:each>
+                    </tbody>
+                </table>
+            </div>
+            <div class="paginateButtons">
+                <g:paginate total="${sectionExtendedAttributeInstanceTotal}" />
+            </div>
+        </div>
+    </body>
+</html>
Index: trunk/grails-app/views/sectionExtendedAttributeDetailed/show.gsp
===================================================================
--- trunk/grails-app/views/sectionExtendedAttributeDetailed/show.gsp	(revision 288)
+++ trunk/grails-app/views/sectionExtendedAttributeDetailed/show.gsp	(revision 288)
@@ -0,0 +1,71 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Show SectionExtendedAttribute</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">SectionExtendedAttribute List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New SectionExtendedAttribute</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Show SectionExtendedAttribute</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <div class="dialog">
+                <table>
+                    <tbody>
+
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Id:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:sectionExtendedAttributeInstance, field:'id')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Value:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:sectionExtendedAttributeInstance, field:'value')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Is Active:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:sectionExtendedAttributeInstance, field:'isActive')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Extended Attribute Type:</td>
+                            
+                            <td valign="top" class="value"><g:link controller="extendedAttributeTypeDetailed" action="show" id="${sectionExtendedAttributeInstance?.extendedAttributeType?.id}">${sectionExtendedAttributeInstance?.extendedAttributeType?.encodeAsHTML()}</g:link></td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Section:</td>
+                            
+                            <td valign="top" class="value"><g:link controller="sectionDetailed" action="show" id="${sectionExtendedAttributeInstance?.section?.id}">${sectionExtendedAttributeInstance?.section?.encodeAsHTML()}</g:link></td>
+                            
+                        </tr>
+                    
+                    </tbody>
+                </table>
+            </div>
+            <div class="buttons">
+                <g:form>
+                    <input type="hidden" name="id" value="${sectionExtendedAttributeInstance?.id}" />
+                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
+                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
+                </g:form>
+            </div>
+        </div>
+    </body>
+</html>
Index: trunk/grails-app/views/siteDetailed/create.gsp
===================================================================
--- trunk/grails-app/views/siteDetailed/create.gsp	(revision 288)
+++ trunk/grails-app/views/siteDetailed/create.gsp	(revision 288)
@@ -0,0 +1,64 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Create Site</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">Site List</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Create Site</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <g:hasErrors bean="${siteInstance}">
+            <div class="errors">
+                <g:renderErrors bean="${siteInstance}" as="list" />
+            </div>
+            </g:hasErrors>
+            <g:form action="save" method="post" >
+                <div class="dialog">
+                    <table>
+                        <tbody>
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="name">Name:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'name','errors')}">
+                                    <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:siteInstance,field:'name')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="description">Description:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'description','errors')}">
+                                    <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:siteInstance,field:'description')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="isActive">Is Active:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${siteInstance?.isActive}" ></g:checkBox>
+                                </td>
+                            </tr> 
+                        
+                        </tbody>
+                    </table>
+                </div>
+                <div class="buttons">
+                    <span class="button"><input class="save" type="submit" value="Create" /></span>
+                </div>
+            </g:form>
+        </div>
+    </body>
+</html>
Index: trunk/grails-app/views/siteDetailed/edit.gsp
===================================================================
--- trunk/grails-app/views/siteDetailed/edit.gsp	(revision 288)
+++ trunk/grails-app/views/siteDetailed/edit.gsp	(revision 288)
@@ -0,0 +1,116 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Edit Site</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">Site List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New Site</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Edit Site</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <g:hasErrors bean="${siteInstance}">
+            <div class="errors">
+                <g:renderErrors bean="${siteInstance}" as="list" />
+            </div>
+            </g:hasErrors>
+            <g:form method="post" >
+                <input type="hidden" name="id" value="${siteInstance?.id}" />
+                <input type="hidden" name="version" value="${siteInstance?.version}" />
+                <div class="dialog">
+                    <table>
+                        <tbody>
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="name">Name:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'name','errors')}">
+                                    <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:siteInstance,field:'name')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="description">Description:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'description','errors')}">
+                                    <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:siteInstance,field:'description')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="isActive">Is Active:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${siteInstance?.isActive}" ></g:checkBox>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="inventoryStores">Inventory Stores:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'inventoryStores','errors')}">
+                                    
+<ul>
+<g:each var="i" in="${siteInstance?.inventoryStores?}">
+    <li><g:link controller="inventoryStore" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>
+</g:each>
+</ul>
+<g:link controller="inventoryStore" params="['site.id':siteInstance?.id]" action="create">Add InventoryStore</g:link>
+
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="sections">Sections:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'sections','errors')}">
+                                    
+<ul>
+<g:each var="s" in="${siteInstance?.sections?}">
+    <li><g:link controller="section" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
+</g:each>
+</ul>
+<g:link controller="section" params="['site.id':siteInstance?.id]" action="create">Add Section</g:link>
+
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="siteExtendedAttributes">Site Extended Attributes:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'siteExtendedAttributes','errors')}">
+                                    
+<ul>
+<g:each var="s" in="${siteInstance?.siteExtendedAttributes?}">
+    <li><g:link controller="siteExtendedAttribute" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
+</g:each>
+</ul>
+<g:link controller="siteExtendedAttribute" params="['site.id':siteInstance?.id]" action="create">Add SiteExtendedAttribute</g:link>
+
+                                </td>
+                            </tr> 
+                        
+                        </tbody>
+                    </table>
+                </div>
+                <div class="buttons">
+                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
+                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
+                </div>
+            </g:form>
+        </div>
+    </body>
+</html>
Index: trunk/grails-app/views/siteDetailed/list.gsp
===================================================================
--- trunk/grails-app/views/siteDetailed/list.gsp	(revision 288)
+++ trunk/grails-app/views/siteDetailed/list.gsp	(revision 288)
@@ -0,0 +1,55 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Site List</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="create" action="create">New Site</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Site List</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <div class="list">
+                <table>
+                    <thead>
+                        <tr>
+                        
+                   	        <g:sortableColumn property="id" title="Id" />
+                        
+                   	        <g:sortableColumn property="name" title="Name" />
+                        
+                   	        <g:sortableColumn property="description" title="Description" />
+                        
+                   	        <g:sortableColumn property="isActive" title="Is Active" />
+                        
+                        </tr>
+                    </thead>
+                    <tbody>
+                    <g:each in="${siteInstanceList}" status="i" var="siteInstance">
+                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
+                        
+                            <td><g:link action="show" id="${siteInstance.id}">${fieldValue(bean:siteInstance, field:'id')}</g:link></td>
+                        
+                            <td>${fieldValue(bean:siteInstance, field:'name')}</td>
+                        
+                            <td>${fieldValue(bean:siteInstance, field:'description')}</td>
+                        
+                            <td>${fieldValue(bean:siteInstance, field:'isActive')}</td>
+                        
+                        </tr>
+                    </g:each>
+                    </tbody>
+                </table>
+            </div>
+            <div class="paginateButtons">
+                <g:paginate total="${siteInstanceTotal}" />
+            </div>
+        </div>
+    </body>
+</html>
Index: trunk/grails-app/views/siteDetailed/show.gsp
===================================================================
--- trunk/grails-app/views/siteDetailed/show.gsp	(revision 288)
+++ trunk/grails-app/views/siteDetailed/show.gsp	(revision 288)
@@ -0,0 +1,103 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Show Site</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">Site List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New Site</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Show Site</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <div class="dialog">
+                <table>
+                    <tbody>
+
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Id:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:siteInstance, field:'id')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Name:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:siteInstance, field:'name')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Description:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:siteInstance, field:'description')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Is Active:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:siteInstance, field:'isActive')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Inventory Stores:</td>
+                            
+                            <td  valign="top" style="text-align:left;" class="value">
+                                <ul>
+                                <g:each var="i" in="${siteInstance.inventoryStores}">
+                                    <li><g:link controller="inventoryStore" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>
+                                </g:each>
+                                </ul>
+                            </td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Sections:</td>
+                            
+                            <td  valign="top" style="text-align:left;" class="value">
+                                <ul>
+                                <g:each var="s" in="${siteInstance.sections}">
+                                    <li><g:link controller="section" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
+                                </g:each>
+                                </ul>
+                            </td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Site Extended Attributes:</td>
+                            
+                            <td  valign="top" style="text-align:left;" class="value">
+                                <ul>
+                                <g:each var="s" in="${siteInstance.siteExtendedAttributes}">
+                                    <li><g:link controller="siteExtendedAttribute" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
+                                </g:each>
+                                </ul>
+                            </td>
+                            
+                        </tr>
+                    
+                    </tbody>
+                </table>
+            </div>
+            <div class="buttons">
+                <g:form>
+                    <input type="hidden" name="id" value="${siteInstance?.id}" />
+                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
+                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
+                </g:form>
+            </div>
+        </div>
+    </body>
+</html>
Index: trunk/grails-app/views/siteExtendedAttributeDetailed/create.gsp
===================================================================
--- trunk/grails-app/views/siteExtendedAttributeDetailed/create.gsp	(revision 288)
+++ trunk/grails-app/views/siteExtendedAttributeDetailed/create.gsp	(revision 288)
@@ -0,0 +1,73 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Create SiteExtendedAttribute</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">SiteExtendedAttribute List</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Create SiteExtendedAttribute</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <g:hasErrors bean="${siteExtendedAttributeInstance}">
+            <div class="errors">
+                <g:renderErrors bean="${siteExtendedAttributeInstance}" as="list" />
+            </div>
+            </g:hasErrors>
+            <g:form action="save" method="post" >
+                <div class="dialog">
+                    <table>
+                        <tbody>
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="value">Value:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:siteExtendedAttributeInstance,field:'value','errors')}">
+                                    <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:siteExtendedAttributeInstance,field:'value')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="isActive">Is Active:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:siteExtendedAttributeInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${siteExtendedAttributeInstance?.isActive}" ></g:checkBox>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="extendedAttributeType">Extended Attribute Type:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:siteExtendedAttributeInstance,field:'extendedAttributeType','errors')}">
+                                    <g:select optionKey="id" from="${ExtendedAttributeType.list()}" name="extendedAttributeType.id" value="${siteExtendedAttributeInstance?.extendedAttributeType?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="site">Site:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:siteExtendedAttributeInstance,field:'site','errors')}">
+                                    <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${siteExtendedAttributeInstance?.site?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                        </tbody>
+                    </table>
+                </div>
+                <div class="buttons">
+                    <span class="button"><input class="save" type="submit" value="Create" /></span>
+                </div>
+            </g:form>
+        </div>
+    </body>
+</html>
Index: trunk/grails-app/views/siteExtendedAttributeDetailed/edit.gsp
===================================================================
--- trunk/grails-app/views/siteExtendedAttributeDetailed/edit.gsp	(revision 288)
+++ trunk/grails-app/views/siteExtendedAttributeDetailed/edit.gsp	(revision 288)
@@ -0,0 +1,77 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Edit SiteExtendedAttribute</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">SiteExtendedAttribute List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New SiteExtendedAttribute</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Edit SiteExtendedAttribute</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <g:hasErrors bean="${siteExtendedAttributeInstance}">
+            <div class="errors">
+                <g:renderErrors bean="${siteExtendedAttributeInstance}" as="list" />
+            </div>
+            </g:hasErrors>
+            <g:form method="post" >
+                <input type="hidden" name="id" value="${siteExtendedAttributeInstance?.id}" />
+                <input type="hidden" name="version" value="${siteExtendedAttributeInstance?.version}" />
+                <div class="dialog">
+                    <table>
+                        <tbody>
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="value">Value:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:siteExtendedAttributeInstance,field:'value','errors')}">
+                                    <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:siteExtendedAttributeInstance,field:'value')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="isActive">Is Active:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:siteExtendedAttributeInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${siteExtendedAttributeInstance?.isActive}" ></g:checkBox>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="extendedAttributeType">Extended Attribute Type:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:siteExtendedAttributeInstance,field:'extendedAttributeType','errors')}">
+                                    <g:select optionKey="id" from="${ExtendedAttributeType.list()}" name="extendedAttributeType.id" value="${siteExtendedAttributeInstance?.extendedAttributeType?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="site">Site:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:siteExtendedAttributeInstance,field:'site','errors')}">
+                                    <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${siteExtendedAttributeInstance?.site?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                        </tbody>
+                    </table>
+                </div>
+                <div class="buttons">
+                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
+                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
+                </div>
+            </g:form>
+        </div>
+    </body>
+</html>
Index: trunk/grails-app/views/siteExtendedAttributeDetailed/list.gsp
===================================================================
--- trunk/grails-app/views/siteExtendedAttributeDetailed/list.gsp	(revision 288)
+++ trunk/grails-app/views/siteExtendedAttributeDetailed/list.gsp	(revision 288)
@@ -0,0 +1,59 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>SiteExtendedAttribute List</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="create" action="create">New SiteExtendedAttribute</g:link></span>
+        </div>
+        <div class="body">
+            <h1>SiteExtendedAttribute List</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <div class="list">
+                <table>
+                    <thead>
+                        <tr>
+                        
+                   	        <g:sortableColumn property="id" title="Id" />
+                        
+                   	        <g:sortableColumn property="value" title="Value" />
+                        
+                   	        <g:sortableColumn property="isActive" title="Is Active" />
+                        
+                   	        <th>Extended Attribute Type</th>
+                   	    
+                   	        <th>Site</th>
+                   	    
+                        </tr>
+                    </thead>
+                    <tbody>
+                    <g:each in="${siteExtendedAttributeInstanceList}" status="i" var="siteExtendedAttributeInstance">
+                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
+                        
+                            <td><g:link action="show" id="${siteExtendedAttributeInstance.id}">${fieldValue(bean:siteExtendedAttributeInstance, field:'id')}</g:link></td>
+                        
+                            <td>${fieldValue(bean:siteExtendedAttributeInstance, field:'value')}</td>
+                        
+                            <td>${fieldValue(bean:siteExtendedAttributeInstance, field:'isActive')}</td>
+                        
+                            <td>${fieldValue(bean:siteExtendedAttributeInstance, field:'extendedAttributeType')}</td>
+                        
+                            <td>${fieldValue(bean:siteExtendedAttributeInstance, field:'site')}</td>
+                        
+                        </tr>
+                    </g:each>
+                    </tbody>
+                </table>
+            </div>
+            <div class="paginateButtons">
+                <g:paginate total="${siteExtendedAttributeInstanceTotal}" />
+            </div>
+        </div>
+    </body>
+</html>
Index: trunk/grails-app/views/siteExtendedAttributeDetailed/show.gsp
===================================================================
--- trunk/grails-app/views/siteExtendedAttributeDetailed/show.gsp	(revision 288)
+++ trunk/grails-app/views/siteExtendedAttributeDetailed/show.gsp	(revision 288)
@@ -0,0 +1,71 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Show SiteExtendedAttribute</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">SiteExtendedAttribute List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New SiteExtendedAttribute</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Show SiteExtendedAttribute</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <div class="dialog">
+                <table>
+                    <tbody>
+
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Id:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:siteExtendedAttributeInstance, field:'id')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Value:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:siteExtendedAttributeInstance, field:'value')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Is Active:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:siteExtendedAttributeInstance, field:'isActive')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Extended Attribute Type:</td>
+                            
+                            <td valign="top" class="value"><g:link controller="extendedAttributeTypeDetailed" action="show" id="${siteExtendedAttributeInstance?.extendedAttributeType?.id}">${siteExtendedAttributeInstance?.extendedAttributeType?.encodeAsHTML()}</g:link></td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Site:</td>
+                            
+                            <td valign="top" class="value"><g:link controller="siteDetailed" action="show" id="${siteExtendedAttributeInstance?.site?.id}">${siteExtendedAttributeInstance?.site?.encodeAsHTML()}</g:link></td>
+                            
+                        </tr>
+                    
+                    </tbody>
+                </table>
+            </div>
+            <div class="buttons">
+                <g:form>
+                    <input type="hidden" name="id" value="${siteExtendedAttributeInstance?.id}" />
+                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
+                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
+                </g:form>
+            </div>
+        </div>
+    </body>
+</html>
