Changeset 124 for trunk/grails-app/views/maintenanceActionDetailed
- Timestamp:
- May 4, 2009, 1:59:11 PM (16 years ago)
- Location:
- trunk/grails-app/views/maintenanceActionDetailed
- Files:
-
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/maintenanceActionDetailed/create.gsp
r122 r124 23 23 </g:hasErrors> 24 24 <g:form action="save" method="post" > 25 <g:hiddenField name="plannedMaintenance.id" value="${maintenanceActionInstance.plannedMaintenance.id}" /> 25 26 <div class="dialog"> 26 27 <table> 27 <tbody> 28 <tbody> 29 30 <tr class="prop"> 31 <td valign="top" class="name"> 32 <label for="plannedMaintenance">Planned Maintenance:</label> 33 </td> 34 <!-- <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'plannedMaintenance','errors')}"> 35 <g:select optionKey="id" from="${PlannedMaintenance.list()}" name="plannedMaintenance.id" value="${maintenanceActionInstance?.plannedMaintenance?.id}" ></g:select> 36 </td>--> 37 <td valign="top" class="name"> 38 ${maintenanceActionInstance?.plannedMaintenance?.name} 39 </td> 40 </tr> 41 42 43 <tr class="prop"> 44 <td valign="top" class="name"> 45 <label for="maintenanceAction">Maintenance Action:</label> 46 </td> 47 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenanceAction','errors')}"> 48 <input type="text" id="maintenanceAction" name="maintenanceAction" value="${fieldValue(bean:maintenanceActionInstance,field:'maintenanceAction')}"/> 49 </td> 50 </tr> 51 52 <tr class="prop"> 53 <td valign="top" class="name"> 54 <label for="reasoning">Reasoning:</label> 55 </td> 56 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'reasoning','errors')}"> 57 <input type="text" id="reasoning" name="reasoning" value="${fieldValue(bean:maintenanceActionInstance,field:'reasoning')}"/> 58 </td> 59 </tr> 28 60 29 61 <tr class="prop"> … … 79 111 <g:select optionKey="id" from="${ComponentItem.list()}" name="componentItem.id" value="${maintenanceActionInstance?.componentItem?.id}" noSelection="['null':'']"></g:select> 80 112 </td> 81 </tr> 82 83 <tr class="prop"> 84 <td valign="top" class="name"> 85 <label for="description">Description:</label> 86 </td> 87 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'description','errors')}"> 88 <input type="text" id="description" name="description" value="${fieldValue(bean:maintenanceActionInstance,field:'description')}"/> 89 </td> 90 </tr> 113 </tr> 91 114 92 115 <tr class="prop"> … … 110 133 <tr class="prop"> 111 134 <td valign="top" class="name"> 112 <label for="p lannedMaintenance">Planned Maintenance:</label>135 <label for="pmStepNumber">PM Step Number:</label> 113 136 </td> 114 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'p lannedMaintenance','errors')}">115 < g:select optionKey="id" from="${PlannedMaintenance.list()}" name="plannedMaintenance.id" value="${maintenanceActionInstance?.plannedMaintenance?.id}" ></g:select>137 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'pmStepNumber','errors')}"> 138 <input type="text" id="pmStepNumber" name="pmStepNumber" value="${fieldValue(bean:maintenanceActionInstance,field:'pmStepNumber')}"/> 116 139 </td> 117 </tr> 118 119 <tr class="prop"> 120 <td valign="top" class="name"> 121 <label for="reasoning">Reasoning:</label> 122 </td> 123 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'reasoning','errors')}"> 124 <input type="text" id="reasoning" name="reasoning" value="${fieldValue(bean:maintenanceActionInstance,field:'reasoning')}"/> 125 </td> 126 </tr> 140 </tr> 127 141 128 142 </tbody> -
trunk/grails-app/views/maintenanceActionDetailed/edit.gsp
r122 r124 86 86 <tr class="prop"> 87 87 <td valign="top" class="name"> 88 <label for=" description">Description:</label>88 <label for="maintenanceAction">Maintenance Action:</label> 89 89 </td> 90 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:' description','errors')}">91 <input type="text" id=" description" name="description" value="${fieldValue(bean:maintenanceActionInstance,field:'description')}"/>90 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenanceAction','errors')}"> 91 <input type="text" id="maintenanceAction" name="maintenanceAction" value="${fieldValue(bean:maintenanceActionInstance,field:'maintenanceAction')}"/> 92 92 </td> 93 93 </tr> … … 110 110 </td> 111 111 </tr> 112 113 <tr class="prop"> 114 <td valign="top" class="name"> 115 <label for="pmStepNumber">PM Step Number:</label> 116 </td> 117 <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'pmStepNumber','errors')}"> 118 <input type="text" id="pmStepNumber" name="pmStepNumber" value="${fieldValue(bean:maintenanceActionInstance,field:'pmStepNumber')}"/> 119 </td> 120 </tr> 112 121 113 122 <tr class="prop"> -
trunk/grails-app/views/maintenanceActionDetailed/list.gsp
r122 r124 24 24 <g:sortableColumn property="id" title="Id" /> 25 25 26 <th>System Section</th> 26 <th>Action</th> 27 28 <th>Planned Maintenance</th> 27 29 28 30 <th>Asset</th> … … 31 33 32 34 <th>Assembly</th> 33 34 <th>Sub Assembly</th>35 36 <th></th> 35 37 36 38 </tr> … … 38 40 <tbody> 39 41 <g:each in="${maintenanceActionInstanceList}" status="i" var="maintenanceActionInstance"> 40 <tr class="${(i % 2) == 0 ? ' odd' : 'even'}">41 42 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/maintenanceActionDetailed/show/${maintenanceActionInstance.id}"'/> 43 42 44 <td><g:link action="show" id="${maintenanceActionInstance.id}">${fieldValue(bean:maintenanceActionInstance, field:'id')}</g:link></td> 43 44 <td>${fieldValue(bean:maintenanceActionInstance, field:'systemSection')}</td> 45 46 <td>${fieldValue(bean:maintenanceActionInstance, field:'maintenanceAction')}</td> 47 48 <td>${fieldValue(bean:maintenanceActionInstance, field:'plannedMaintenance')}</td> 45 49 46 50 <td>${fieldValue(bean:maintenanceActionInstance, field:'asset')}</td> … … 50 54 <td>${fieldValue(bean:maintenanceActionInstance, field:'assembly')}</td> 51 55 52 <td>${fieldValue(bean:maintenanceActionInstance, field:'subAssembly')}</td> 53 56 <td> 57 <g:link action="show" id="${maintenanceActionInstance.id}"> 58 <img src="${createLinkTo(dir:'images/skin',file:'database_table.png')}" alt="Show" /> 59 </g:link> 60 </td> 61 54 62 </tr> 55 63 </g:each> -
trunk/grails-app/views/maintenanceActionDetailed/show.gsp
r122 r124 33 33 <td valign="top" class="name">System Section:</td> 34 34 35 <td valign="top" class="value"><g:link controller="systemSection " action="show" id="${maintenanceActionInstance?.systemSection?.id}">${maintenanceActionInstance?.systemSection?.encodeAsHTML()}</g:link></td>35 <td valign="top" class="value"><g:link controller="systemSectionDetailed" action="show" id="${maintenanceActionInstance?.systemSection?.id}">${maintenanceActionInstance?.systemSection?.encodeAsHTML()}</g:link></td> 36 36 37 37 </tr> … … 40 40 <td valign="top" class="name">Asset:</td> 41 41 42 <td valign="top" class="value"><g:link controller="asset " action="show" id="${maintenanceActionInstance?.asset?.id}">${maintenanceActionInstance?.asset?.encodeAsHTML()}</g:link></td>42 <td valign="top" class="value"><g:link controller="assetDetailed" action="show" id="${maintenanceActionInstance?.asset?.id}">${maintenanceActionInstance?.asset?.encodeAsHTML()}</g:link></td> 43 43 44 44 </tr> … … 47 47 <td valign="top" class="name">Asset Type:</td> 48 48 49 <td valign="top" class="value"><g:link controller="assetType " action="show" id="${maintenanceActionInstance?.assetType?.id}">${maintenanceActionInstance?.assetType?.encodeAsHTML()}</g:link></td>49 <td valign="top" class="value"><g:link controller="assetTypeDetailed" action="show" id="${maintenanceActionInstance?.assetType?.id}">${maintenanceActionInstance?.assetType?.encodeAsHTML()}</g:link></td> 50 50 51 51 </tr> … … 54 54 <td valign="top" class="name">Assembly:</td> 55 55 56 <td valign="top" class="value"><g:link controller="assembly " action="show" id="${maintenanceActionInstance?.assembly?.id}">${maintenanceActionInstance?.assembly?.encodeAsHTML()}</g:link></td>56 <td valign="top" class="value"><g:link controller="assemblyDetailed" action="show" id="${maintenanceActionInstance?.assembly?.id}">${maintenanceActionInstance?.assembly?.encodeAsHTML()}</g:link></td> 57 57 58 58 </tr> … … 61 61 <td valign="top" class="name">Sub Assembly:</td> 62 62 63 <td valign="top" class="value"><g:link controller="subAssembly " action="show" id="${maintenanceActionInstance?.subAssembly?.id}">${maintenanceActionInstance?.subAssembly?.encodeAsHTML()}</g:link></td>63 <td valign="top" class="value"><g:link controller="subAssemblyDetailed" action="show" id="${maintenanceActionInstance?.subAssembly?.id}">${maintenanceActionInstance?.subAssembly?.encodeAsHTML()}</g:link></td> 64 64 65 65 </tr> … … 68 68 <td valign="top" class="name">Component Item:</td> 69 69 70 <td valign="top" class="value"><g:link controller="componentItem " action="show" id="${maintenanceActionInstance?.componentItem?.id}">${maintenanceActionInstance?.componentItem?.encodeAsHTML()}</g:link></td>70 <td valign="top" class="value"><g:link controller="componentItemDetailed" action="show" id="${maintenanceActionInstance?.componentItem?.id}">${maintenanceActionInstance?.componentItem?.encodeAsHTML()}</g:link></td> 71 71 72 72 </tr> 73 73 74 74 <tr class="prop"> 75 <td valign="top" class="name"> Description:</td>75 <td valign="top" class="name">Maintenance Action:</td> 76 76 77 <td valign="top" class="value">${fieldValue(bean:maintenanceActionInstance, field:' description')}</td>77 <td valign="top" class="value">${fieldValue(bean:maintenanceActionInstance, field:'maintenanceAction')}</td> 78 78 79 79 </tr> … … 89 89 <td valign="top" class="name">Maintenance Policy:</td> 90 90 91 <td valign="top" class="value"><g:link controller="maintenancePolicy" action="show" id="${maintenanceActionInstance?.maintenancePolicy?.id}">${maintenanceActionInstance?.maintenancePolicy?.encodeAsHTML()}</g:link></td> 91 <td valign="top" class="value">${maintenanceActionInstance?.maintenancePolicy?.encodeAsHTML()}</td> 92 93 </tr> 94 95 <tr class="prop"> 96 <td valign="top" class="name">PM Step Number:</td> 97 98 <td valign="top" class="value">${maintenanceActionInstance?.pmStepNumber?.encodeAsHTML()}</td> 92 99 93 100 </tr> … … 96 103 <td valign="top" class="name">Planned Maintenance:</td> 97 104 98 <td valign="top" class="value"><g:link controller="plannedMaintenance " action="show" id="${maintenanceActionInstance?.plannedMaintenance?.id}">${maintenanceActionInstance?.plannedMaintenance?.encodeAsHTML()}</g:link></td>105 <td valign="top" class="value"><g:link controller="plannedMaintenanceDetailed" action="show" id="${maintenanceActionInstance?.plannedMaintenance?.id}">${maintenanceActionInstance?.plannedMaintenance?.encodeAsHTML()}</g:link></td> 99 106 100 107 </tr>
Note: See TracChangeset
for help on using the changeset viewer.