- Timestamp:
- Jan 22, 2010, 12:27:04 PM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/BaseAppAdminController.groovy
r96 r289 3 3 @Secured(['ROLE_AppAdmin']) 4 4 abstract class BaseAppAdminController { 5 def whatsit() {6 }7 5 8 6 } -
trunk/grails-app/controllers/BaseController.groovy
r149 r289 3 3 @Secured(['ROLE_AppUser', 'ROLE_AppAdmin']) 4 4 abstract class BaseController { 5 def whatsit() {6 }7 5 8 6 } -
trunk/grails-app/controllers/SectionDetailedController.groovy
r288 r289 3 3 @Secured(['ROLE_Manager','ROLE_AppAdmin']) 4 4 class SectionDetailedController extends BaseController { 5 6 def index = { redirect(action:list,params:params) }7 5 8 6 // the delete, save and update actions only accept POST requests 9 7 static allowedMethods = [delete:'POST', save:'POST', update:'POST'] 10 8 9 @Secured(['ROLE_AppAdmin','ROLE_Manager','ROLE_AppUser']) 10 def index = { redirect(action:list,params:params) } 11 12 @Secured(['ROLE_AppAdmin','ROLE_Manager','ROLE_AppUser']) 11 13 def list = { 12 14 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) … … 14 16 } 15 17 18 @Secured(['ROLE_AppAdmin','ROLE_Manager','ROLE_AppUser']) 16 19 def show = { 17 20 def sectionInstance = Section.get( params.id ) … … 24 27 } 25 28 29 @Secured(['ROLE_AppAdmin']) 26 30 def delete = { 27 31 def sectionInstance = Section.get( params.id ) -
trunk/grails-app/controllers/SiteDetailedController.groovy
r288 r289 3 3 @Secured(['ROLE_Manager','ROLE_AppAdmin']) 4 4 class SiteDetailedController extends BaseController { 5 6 def index = { redirect(action:list,params:params) }7 5 8 6 // the delete, save and update actions only accept POST requests 9 7 static allowedMethods = [delete:'POST', save:'POST', update:'POST'] 10 8 9 @Secured(['ROLE_AppAdmin','ROLE_Manager','ROLE_AppUser']) 10 def index = { redirect(action:list,params:params) } 11 12 @Secured(['ROLE_AppAdmin','ROLE_Manager','ROLE_AppUser']) 11 13 def list = { 12 14 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) … … 14 16 } 15 17 18 @Secured(['ROLE_AppAdmin','ROLE_Manager','ROLE_AppUser']) 16 19 def show = { 17 20 def siteInstance = Site.get( params.id ) … … 24 27 } 25 28 29 @Secured(['ROLE_AppAdmin']) 26 30 def delete = { 27 31 def siteInstance = Site.get( params.id ) -
trunk/grails-app/views/siteDetailed/edit.gsp
r273 r289 64 64 <ul> 65 65 <g:each var="i" in="${siteInstance?.inventoryStores?}"> 66 <li><g:link controller="inventoryStore " action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>66 <li><g:link controller="inventoryStoreDetailed" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> 67 67 </g:each> 68 68 </ul> 69 <g:link controller="inventoryStore " params="['site.id':siteInstance?.id]" action="create">Add InventoryStore</g:link>69 <g:link controller="inventoryStoreDetailed" params="['site.id':siteInstance?.id]" action="create">Add InventoryStore</g:link> 70 70 71 71 </td> … … 80 80 <ul> 81 81 <g:each var="s" in="${siteInstance?.sections?}"> 82 <li><g:link controller="section " action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>82 <li><g:link controller="sectionDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 83 83 </g:each> 84 84 </ul> 85 <g:link controller="section " params="['site.id':siteInstance?.id]" action="create">Add Section</g:link>85 <g:link controller="sectionDetailed" params="['site.id':siteInstance?.id]" action="create">Add Section</g:link> 86 86 87 87 </td> … … 96 96 <ul> 97 97 <g:each var="s" in="${siteInstance?.siteExtendedAttributes?}"> 98 <li><g:link controller="siteExtendedAttribute " action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>98 <li><g:link controller="siteExtendedAttributeDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 99 99 </g:each> 100 100 </ul> 101 <g:link controller="siteExtendedAttribute " params="['site.id':siteInstance?.id]" action="create">Add SiteExtendedAttribute</g:link>101 <g:link controller="siteExtendedAttributeDetailed" params="['site.id':siteInstance?.id]" action="create">Add SiteExtendedAttribute</g:link> 102 102 103 103 </td> -
trunk/grails-app/views/siteDetailed/show.gsp
r273 r289 56 56 <ul> 57 57 <g:each var="i" in="${siteInstance.inventoryStores}"> 58 <li><g:link controller="inventoryStore " action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>58 <li><g:link controller="inventoryStoreDetailed" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> 59 59 </g:each> 60 60 </ul> … … 69 69 <ul> 70 70 <g:each var="s" in="${siteInstance.sections}"> 71 <li><g:link controller="section " action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>71 <li><g:link controller="sectionDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 72 72 </g:each> 73 73 </ul> … … 82 82 <ul> 83 83 <g:each var="s" in="${siteInstance.siteExtendedAttributes}"> 84 <li><g:link controller="siteExtendedAttribute " action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>84 <li><g:link controller="siteExtendedAttributeDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 85 85 </g:each> 86 86 </ul>
Note: See TracChangeset
for help on using the changeset viewer.