Changeset 268 for trunk/grails-app/views/maintenanceAction/edit.gsp
- Timestamp:
- Jan 14, 2010, 10:51:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/maintenanceAction/edit.gsp
r178 r268 31 31 <tr class="prop"> 32 32 <td valign="top" class="name"> 33 <label for=" maintenancePolicy">Maintenance Policy:</label>33 <label for="section">Section:</label> 34 34 </td> 35 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenancePolicy','errors')}"> 36 <g:select optionKey="id" from="${MaintenancePolicy.list()}" name="maintenancePolicy.id" value="${maintenanceActionInstance?.maintenancePolicy?.id}" noSelection="['null':'']"></g:select> 37 </td> 38 </tr> 39 40 <tr class="prop"> 41 <td valign="top" class="name"> 42 <label for="systemSection">System Section:</label> 43 </td> 44 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'systemSection','errors')}"> 45 <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${maintenanceActionInstance?.systemSection?.id}" noSelection="['null':'']"></g:select> 35 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'section','errors')}"> 36 <g:select optionKey="id" from="${Section.list()}" name="section.id" value="${maintenanceActionInstance?.section?.id}" noSelection="['null':'']"></g:select> 46 37 </td> 47 38 </tr> … … 58 49 <tr class="prop"> 59 50 <td valign="top" class="name"> 60 <label for="asset Type">Asset Type:</label>51 <label for="assetSubItem">Asset Sub Item:</label> 61 52 </td> 62 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'asset Type','errors')}">63 <g:select optionKey="id" from="${Asset Type.list()}" name="assetType.id" value="${maintenanceActionInstance?.assetType?.id}" noSelection="['null':'']"></g:select>53 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'assetSubItem','errors')}"> 54 <g:select optionKey="id" from="${AssetSubItem.list()}" name="assetSubItem.id" value="${maintenanceActionInstance?.assetSubItem?.id}" noSelection="['null':'']"></g:select> 64 55 </td> 65 56 </tr> … … 67 58 <tr class="prop"> 68 59 <td valign="top" class="name"> 69 <label for=" assembly">Assembly:</label>60 <label for="maintenancePolicy">Maintenance Policy:</label> 70 61 </td> 71 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'assembly','errors')}"> 72 <g:select optionKey="id" from="${Assembly.list()}" name="assembly.id" value="${maintenanceActionInstance?.assembly?.id}" noSelection="['null':'']"></g:select> 73 </td> 74 </tr> 75 76 <tr class="prop"> 77 <td valign="top" class="name"> 78 <label for="subAssembly">Sub Assembly:</label> 79 </td> 80 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'subAssembly','errors')}"> 81 <g:select optionKey="id" from="${SubAssembly.list()}" name="subAssembly.id" value="${maintenanceActionInstance?.subAssembly?.id}" noSelection="['null':'']"></g:select> 82 </td> 83 </tr> 84 85 <tr class="prop"> 86 <td valign="top" class="name"> 87 <label for="componentItem">Component Item:</label> 88 </td> 89 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'componentItem','errors')}"> 90 <g:select optionKey="id" from="${ComponentItem.list()}" name="componentItem.id" value="${maintenanceActionInstance?.componentItem?.id}" noSelection="['null':'']"></g:select> 62 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenancePolicy','errors')}"> 63 <g:select optionKey="id" from="${MaintenancePolicy.list()}" name="maintenancePolicy.id" value="${maintenanceActionInstance?.maintenancePolicy?.id}" noSelection="['null':'']"></g:select> 91 64 </td> 92 65 </tr> … … 112 85 <tr class="prop"> 113 86 <td valign="top" class="name"> 114 <label for=" isActive">Is Active:</label>87 <label for="reasoning">Reasoning:</label> 115 88 </td> 116 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:' isActive','errors')}">117 < g:checkBox name="isActive" value="${maintenanceActionInstance?.isActive}" ></g:checkBox>89 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'reasoning','errors')}"> 90 <input type="text" id="reasoning" name="reasoning" value="${fieldValue(bean:maintenanceActionInstance,field:'reasoning')}"/> 118 91 </td> 119 92 </tr> … … 121 94 <tr class="prop"> 122 95 <td valign="top" class="name"> 123 <label for=" reasoning">Reasoning:</label>96 <label for="isActive">Is Active:</label> 124 97 </td> 125 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:' reasoning','errors')}">126 < input type="text" id="reasoning" name="reasoning" value="${fieldValue(bean:maintenanceActionInstance,field:'reasoning')}"/>98 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'isActive','errors')}"> 99 <g:checkBox name="isActive" value="${maintenanceActionInstance?.isActive}" ></g:checkBox> 127 100 </td> 128 101 </tr>
Note: See TracChangeset
for help on using the changeset viewer.