- Timestamp:
- Oct 22, 2009, 8:23:14 AM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/AssetTypeController.groovy
r118 r160 27 27 if(assetTypeInstance) { 28 28 try { 29 assetTypeInstance.delete( )29 assetTypeInstance.delete(flush:true) 30 30 flash.message = "AssetType ${params.id} deleted" 31 31 redirect(action:list) … … 77 77 else { 78 78 flash.message = "AssetType not found with id ${params.id}" 79 redirect(action: edit,id:params.id)79 redirect(action:list) 80 80 } 81 81 } -
trunk/grails-app/domain/AssetType.groovy
r124 r160 3 3 String name 4 4 String description = "" 5 String costCode = "" 5 6 boolean isActive = true 6 7 -
trunk/grails-app/views/assetType/create.gsp
r151 r160 26 26 <table> 27 27 <tbody> 28 29 <tr class="prop"> 30 <td valign="top" class="name"> 31 <label for="costCode">Cost Code:</label> 32 </td> 33 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'costCode','errors')}"> 34 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:assetTypeInstance,field:'costCode')}"/> 35 </td> 36 </tr> 28 37 29 38 <tr class="prop"> -
trunk/grails-app/views/assetType/edit.gsp
r151 r160 64 64 <tr class="prop"> 65 65 <td valign="top" class="name"> 66 <label for="costCode">Cost Code:</label> 67 </td> 68 <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'costCode','errors')}"> 69 <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:assetTypeInstance,field:'costCode')}"/> 70 </td> 71 </tr> 72 73 <tr class="prop"> 74 <td valign="top" class="name"> 66 75 <label for="description">Description:</label> 67 76 </td> -
trunk/grails-app/views/assetType/list.gsp
r151 r160 24 24 <g:sortableColumn property="id" title="Id" /> 25 25 26 <g:sortableColumn property="costCode" title="Cost Code" /> 27 26 28 <g:sortableColumn property="description" title="Description" /> 27 29 … … 37 39 38 40 <td><g:link action="show" id="${assetTypeInstance.id}">${fieldValue(bean:assetTypeInstance, field:'id')}</g:link></td> 41 42 <td>${fieldValue(bean:assetTypeInstance, field:'costCode')}</td> 39 43 40 44 <td>${fieldValue(bean:assetTypeInstance, field:'description')}</td> -
trunk/grails-app/views/assetType/show.gsp
r151 r160 57 57 58 58 <tr class="prop"> 59 <td valign="top" class="name">Cost Code:</td> 60 61 <td valign="top" class="value">${fieldValue(bean:assetTypeInstance, field:'costCode')}</td> 62 63 </tr> 64 65 <tr class="prop"> 59 66 <td valign="top" class="name">Description:</td> 60 67
Note: See TracChangeset
for help on using the changeset viewer.