- Timestamp:
- Jan 15, 2010, 6:43:40 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/maintenanceActionDetailed/create.gsp
r178 r269 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Create MaintenanceAction</title> 7 <title>Create MaintenanceAction</title> 8 8 </head> 9 9 <body> … … 28 28 <tr class="prop"> 29 29 <td valign="top" class="name"> 30 <label for=" maintenancePolicy">Maintenance Policy:</label>30 <label for="section">Section:</label> 31 31 </td> 32 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenancePolicy','errors')}"> 33 <g:select optionKey="id" from="${MaintenancePolicy.list()}" name="maintenancePolicy.id" value="${maintenanceActionInstance?.maintenancePolicy?.id}" noSelection="['null':'']"></g:select> 34 </td> 35 </tr> 36 37 <tr class="prop"> 38 <td valign="top" class="name"> 39 <label for="systemSection">System Section:</label> 40 </td> 41 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'systemSection','errors')}"> 42 <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${maintenanceActionInstance?.systemSection?.id}" noSelection="['null':'']"></g:select> 32 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'section','errors')}"> 33 <g:select optionKey="id" from="${Section.list()}" name="section.id" value="${maintenanceActionInstance?.section?.id}" noSelection="['null':'']"></g:select> 43 34 </td> 44 35 </tr> … … 55 46 <tr class="prop"> 56 47 <td valign="top" class="name"> 57 <label for="asset Type">Asset Type:</label>48 <label for="assetSubItem">Asset Sub Item:</label> 58 49 </td> 59 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'asset Type','errors')}">60 <g:select optionKey="id" from="${Asset Type.list()}" name="assetType.id" value="${maintenanceActionInstance?.assetType?.id}" noSelection="['null':'']"></g:select>50 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'assetSubItem','errors')}"> 51 <g:select optionKey="id" from="${AssetSubItem.list()}" name="assetSubItem.id" value="${maintenanceActionInstance?.assetSubItem?.id}" noSelection="['null':'']"></g:select> 61 52 </td> 62 53 </tr> … … 64 55 <tr class="prop"> 65 56 <td valign="top" class="name"> 66 <label for=" assembly">Assembly:</label>57 <label for="maintenancePolicy">Maintenance Policy:</label> 67 58 </td> 68 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'assembly','errors')}"> 69 <g:select optionKey="id" from="${Assembly.list()}" name="assembly.id" value="${maintenanceActionInstance?.assembly?.id}" noSelection="['null':'']"></g:select> 70 </td> 71 </tr> 72 73 <tr class="prop"> 74 <td valign="top" class="name"> 75 <label for="subAssembly">Sub Assembly:</label> 76 </td> 77 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'subAssembly','errors')}"> 78 <g:select optionKey="id" from="${SubAssembly.list()}" name="subAssembly.id" value="${maintenanceActionInstance?.subAssembly?.id}" noSelection="['null':'']"></g:select> 79 </td> 80 </tr> 81 82 <tr class="prop"> 83 <td valign="top" class="name"> 84 <label for="componentItem">Component Item:</label> 85 </td> 86 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'componentItem','errors')}"> 87 <g:select optionKey="id" from="${ComponentItem.list()}" name="componentItem.id" value="${maintenanceActionInstance?.componentItem?.id}" noSelection="['null':'']"></g:select> 59 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenancePolicy','errors')}"> 60 <g:select optionKey="id" from="${MaintenancePolicy.list()}" name="maintenancePolicy.id" value="${maintenanceActionInstance?.maintenancePolicy?.id}" noSelection="['null':'']"></g:select> 88 61 </td> 89 62 </tr> … … 109 82 <tr class="prop"> 110 83 <td valign="top" class="name"> 111 <label for=" isActive">Is Active:</label>84 <label for="reasoning">Reasoning:</label> 112 85 </td> 113 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:' isActive','errors')}">114 < g:checkBox name="isActive" value="${maintenanceActionInstance?.isActive}" ></g:checkBox>86 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'reasoning','errors')}"> 87 <input type="text" id="reasoning" name="reasoning" value="${fieldValue(bean:maintenanceActionInstance,field:'reasoning')}"/> 115 88 </td> 116 89 </tr> … … 118 91 <tr class="prop"> 119 92 <td valign="top" class="name"> 120 <label for=" reasoning">Reasoning:</label>93 <label for="isActive">Is Active:</label> 121 94 </td> 122 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:' reasoning','errors')}">123 < input type="text" id="reasoning" name="reasoning" value="${fieldValue(bean:maintenanceActionInstance,field:'reasoning')}"/>95 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'isActive','errors')}"> 96 <g:checkBox name="isActive" value="${maintenanceActionInstance?.isActive}" ></g:checkBox> 124 97 </td> 125 98 </tr>
Note: See TracChangeset
for help on using the changeset viewer.