Changeset 386 for trunk/grails-app
- Timestamp:
- Feb 18, 2010, 7:27:55 PM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/Config.groovy
r385 r386 264 264 ] 265 265 ], 266 [order:1 10, controller:'siteDetailed', title:'site', action:'list',266 [order:120, controller:'siteDetailed', title:'site', action:'list', 267 267 subItems: [ 268 268 [order:10, controller:'siteDetailed', title:'Site List', action:'list', isVisible: { true }], … … 272 272 ] 273 273 ], 274 [order:1 10, controller:'sectionDetailed', title:'section', action:'list',274 [order:130, controller:'sectionDetailed', title:'section', action:'list', 275 275 subItems: [ 276 276 [order:10, controller:'sectionDetailed', title:'Section List', action:'list', isVisible: { true }], … … 279 279 [order:91, controller:'sectionDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] 280 280 ] 281 ], 282 [order:140, controller:'extendedAttributeTypeDetailed', title:'extendedAttribute', action:'list', 283 subItems: [ 284 [order:10, controller:'extendedAttributeTypeDetailed', title:'Attribute Type List', action:'list', isVisible: { true }], 285 [order:20, controller:'extendedAttributeTypeDetailed', title:'Create', action:'create', isVisible: { true }], 286 [order:90, controller:'extendedAttributeTypeDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], 287 [order:91, controller:'extendedAttributeTypeDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] 288 ] 281 289 ] 282 290 ] -
trunk/grails-app/controllers/ExtendedAttributeTypeDetailedController.groovy
r288 r386 15 15 16 16 def show = { 17 18 // In the case of an actionSubmit button, rewrite action name from 'index'. 19 if(params._action_Show) 20 params.action='show' 21 17 22 def extendedAttributeTypeInstance = ExtendedAttributeType.get( params.id ) 18 23 … … 44 49 45 50 def edit = { 51 52 // In the case of an actionSubmit button, rewrite action name from 'index'. 53 if(params._action_Edit) 54 params.action='edit' 55 46 56 def extendedAttributeTypeInstance = ExtendedAttributeType.get( params.id ) 47 57 -
trunk/grails-app/views/extendedAttributeTypeDetailed/create.gsp
r268 r386 6 6 <meta name="layout" content="main" /> 7 7 <title>Create ExtendedAttributeType</title> 8 <nav:resources override="true"/> 8 9 </head> 9 10 <body> 10 11 <div class="nav"> 11 < span class="menuButton"><g:link class="list" action="list">ExtendedAttributeType List</g:link></span>12 <nav:renderSubItems group="navAlt"/> 12 13 </div> 13 14 <div class="body"> 14 <h1>Create ExtendedAttributeType</h1>15 15 <g:if test="${flash.message}"> 16 16 <div class="message">${flash.message}</div> -
trunk/grails-app/views/extendedAttributeTypeDetailed/edit.gsp
r268 r386 6 6 <meta name="layout" content="main" /> 7 7 <title>Edit ExtendedAttributeType</title> 8 <nav:resources override="true"/> 8 9 </head> 9 10 <body> 10 11 <div class="nav"> 11 <span class="menuButton"><g:link class="list" action="list">ExtendedAttributeType List</g:link></span> 12 <span class="menuButton"><g:link class="create" action="create">New ExtendedAttributeType</g:link></span> 12 <nav:renderSubItems group="navAlt"/> 13 13 </div> 14 14 <div class="body"> 15 <h1>Edit ExtendedAttributeType</h1>16 15 <g:if test="${flash.message}"> 17 16 <div class="message">${flash.message}</div> … … 61 60 <div class="buttons"> 62 61 <span class="button"><g:actionSubmit class="save" value="Update" /></span> 62 <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span> 63 63 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> 64 64 </div> -
trunk/grails-app/views/extendedAttributeTypeDetailed/list.gsp
r268 r386 6 6 <meta name="layout" content="main" /> 7 7 <title>ExtendedAttributeType List</title> 8 <nav:resources override="true"/> 8 9 </head> 9 10 <body> 10 11 <div class="nav"> 11 < span class="menuButton"><g:link class="create" action="create">New ExtendedAttributeType</g:link></span>12 <nav:renderSubItems group="navAlt"/> 12 13 </div> 13 14 <div class="body"> 14 <h1>ExtendedAttributeType List</h1>15 15 <g:if test="${flash.message}"> 16 16 <div class="message">${flash.message}</div> … … 21 21 <tr> 22 22 23 <g:sortableColumn property="id" title="Id" /> 24 25 <g:sortableColumn property="name" title="Name" /> 26 27 <g:sortableColumn property="description" title="Description" /> 28 29 <g:sortableColumn property="isActive" title="Is Active" /> 23 <g:sortableColumn property="id" title="Id" /> 24 25 <g:sortableColumn property="name" title="Name" /> 26 27 <g:sortableColumn property="description" title="Description" /> 28 29 <g:sortableColumn property="isActive" title="Is Active" /> 30 31 <th></th> 30 32 31 33 </tr> … … 33 35 <tbody> 34 36 <g:each in="${extendedAttributeTypeInstanceList}" status="i" var="extendedAttributeTypeInstance"> 35 <tr class="${(i % 2) == 0 ? ' odd' : 'even'}">37 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/extendedAttributeTypeDetailed/show/${extendedAttributeTypeInstance.id}"'/> 36 38 37 <td> <g:link action="show" id="${extendedAttributeTypeInstance.id}">${fieldValue(bean:extendedAttributeTypeInstance, field:'id')}</g:link></td>39 <td>${fieldValue(bean:extendedAttributeTypeInstance, field:'id')}</td> 38 40 39 41 <td>${fieldValue(bean:extendedAttributeTypeInstance, field:'name')}</td> … … 42 44 43 45 <td>${fieldValue(bean:extendedAttributeTypeInstance, field:'isActive')}</td> 46 47 <td> 48 <g:link action="show" id="${extendedAttributeTypeInstance.id}"> 49 <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> 50 </g:link> 51 </td> 44 52 45 53 </tr> -
trunk/grails-app/views/extendedAttributeTypeDetailed/show.gsp
r268 r386 6 6 <meta name="layout" content="main" /> 7 7 <title>Show ExtendedAttributeType</title> 8 <nav:resources override="true"/> 8 9 </head> 9 10 <body> 10 11 <div class="nav"> 11 <span class="menuButton"><g:link class="list" action="list">ExtendedAttributeType List</g:link></span> 12 <span class="menuButton"><g:link class="create" action="create">New ExtendedAttributeType</g:link></span> 12 <nav:renderSubItems group="navAlt"/> 13 13 </div> 14 14 <div class="body"> 15 <h1>Show ExtendedAttributeType</h1>16 15 <g:if test="${flash.message}"> 17 16 <div class="message">${flash.message}</div>
Note: See TracChangeset
for help on using the changeset viewer.