Changeset 363 for trunk/grails-app
- Timestamp:
- Feb 17, 2010, 8:33:06 PM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/MaintenancePolicyDetailedController.groovy
r362 r363 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 maintenancePolicyInstance = MaintenancePolicy.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 maintenancePolicyInstance = MaintenancePolicy.get( params.id ) 47 57 -
trunk/grails-app/views/maintenancePolicyDetailed/create.gsp
r268 r363 6 6 <meta name="layout" content="main" /> 7 7 <title>Create MaintenancePolicy</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">MaintenancePolicy List</g:link></span>12 <nav:renderSubItems group="navAlt"/> 12 13 </div> 13 14 <div class="body"> 14 <h1>Create MaintenancePolicy</h1>15 15 <g:if test="${flash.message}"> 16 16 <div class="message">${flash.message}</div> -
trunk/grails-app/views/maintenancePolicyDetailed/edit.gsp
r346 r363 6 6 <meta name="layout" content="main" /> 7 7 <title>Edit MaintenancePolicy</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">MaintenancePolicy List</g:link></span> 12 <span class="menuButton"><g:link class="create" action="create">New MaintenancePolicy</g:link></span> 12 <nav:renderSubItems group="navAlt"/> 13 13 </div> 14 14 <div class="body"> 15 <h1>Edit MaintenancePolicy</h1>16 15 <g:if test="${flash.message}"> 17 16 <div class="message">${flash.message}</div> -
trunk/grails-app/views/maintenancePolicyDetailed/list.gsp
r268 r363 6 6 <meta name="layout" content="main" /> 7 7 <title>MaintenancePolicy 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 MaintenancePolicy</g:link></span>12 <nav:renderSubItems group="navAlt"/> 12 13 </div> 13 14 <div class="body"> 14 <h1>MaintenancePolicy List</h1>15 15 <g:if test="${flash.message}"> 16 16 <div class="message">${flash.message}</div> … … 29 29 <g:sortableColumn property="isActive" title="Is Active" /> 30 30 31 <th></th> 31 32 </tr> 32 33 </thead> 33 34 <tbody> 34 35 <g:each in="${maintenancePolicyInstanceList}" status="i" var="maintenancePolicyInstance"> 35 <tr class="${(i % 2) == 0 ? ' odd' : 'even'}">36 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/maintenancePolicyDetailed/show/${maintenancePolicyInstance.id}"'/> 36 37 37 <td> <g:link action="show" id="${maintenancePolicyInstance.id}">${fieldValue(bean:maintenancePolicyInstance, field:'id')}</g:link></td>38 <td>${fieldValue(bean:maintenancePolicyInstance, field:'id')}</td> 38 39 39 40 <td>${fieldValue(bean:maintenancePolicyInstance, field:'name')}</td> … … 42 43 43 44 <td>${fieldValue(bean:maintenancePolicyInstance, field:'isActive')}</td> 45 46 <td> 47 <g:link action="show" id="${maintenancePolicyInstance.id}"> 48 <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> 49 </g:link> 50 </td> 44 51 45 52 </tr> -
trunk/grails-app/views/maintenancePolicyDetailed/show.gsp
r346 r363 6 6 <meta name="layout" content="main" /> 7 7 <title>Show MaintenancePolicy</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">MaintenancePolicy List</g:link></span> 12 <span class="menuButton"><g:link class="create" action="create">New MaintenancePolicy</g:link></span> 12 <nav:renderSubItems group="navAlt"/> 13 13 </div> 14 14 <div class="body"> 15 <h1>Show MaintenancePolicy</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.