Changeset 122 for trunk/grails-app/views/asset
- Timestamp:
- May 1, 2009, 3:27:41 PM (16 years ago)
- Location:
- trunk/grails-app/views/asset
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/asset/create.gsp
r118 r122 56 56 <tr class="prop"> 57 57 <td valign="top" class="name"> 58 <label for="lifeplan">Lifeplan:</label>59 </td>60 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'lifeplan','errors')}">61 <g:select optionKey="id" from="${LifePlan.list()}" name="lifeplan.id" value="${assetInstance?.lifeplan?.id}" ></g:select>62 </td>63 </tr>64 65 <tr class="prop">66 <td valign="top" class="name">67 <label for="locationLongText">Location Long Text:</label>68 </td>69 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'locationLongText','errors')}">70 <input type="text" id="locationLongText" name="locationLongText" value="${fieldValue(bean:assetInstance,field:'locationLongText')}"/>71 </td>72 </tr>73 74 <tr class="prop">75 <td valign="top" class="name">76 <label for="manufacturedDate">Manufactured Date:</label>77 </td>78 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'manufacturedDate','errors')}">79 <g:datePicker name="manufacturedDate" value="${assetInstance?.manufacturedDate}" ></g:datePicker>80 </td>81 </tr>82 83 <tr class="prop">84 <td valign="top" class="name">85 <label for="modelNumber">Model Number:</label>86 </td>87 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'modelNumber','errors')}">88 <input type="text" id="modelNumber" name="modelNumber" value="${fieldValue(bean:assetInstance,field:'modelNumber')}"/>89 </td>90 </tr>91 92 <tr class="prop">93 <td valign="top" class="name">94 58 <label for="name">Name:</label> 95 59 </td> … … 101 65 <tr class="prop"> 102 66 <td valign="top" class="name"> 103 <label for=" purchaseCost">Purchase Cost:</label>67 <label for="systemSection">System Section:</label> 104 68 </td> 105 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'purchaseCost','errors')}"> 106 <input type="text" id="purchaseCost" name="purchaseCost" value="${fieldValue(bean:assetInstance,field:'purchaseCost')}" /> 107 </td> 108 </tr> 109 110 <tr class="prop"> 111 <td valign="top" class="name"> 112 <label for="riskPriorityNumber">Risk Priority Number:</label> 113 </td> 114 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'riskPriorityNumber','errors')}"> 115 <input type="text" id="riskPriorityNumber" name="riskPriorityNumber" value="${fieldValue(bean:assetInstance,field:'riskPriorityNumber')}" /> 116 </td> 117 </tr> 118 119 <tr class="prop"> 120 <td valign="top" class="name"> 121 <label for="serialNumber">Serial Number:</label> 122 </td> 123 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'serialNumber','errors')}"> 124 <input type="text" id="serialNumber" name="serialNumber" value="${fieldValue(bean:assetInstance,field:'serialNumber')}"/> 69 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'systemSection','errors')}"> 70 <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetInstance?.systemSection?.id}" ></g:select> 125 71 </td> 126 72 </tr> -
trunk/grails-app/views/asset/edit.gsp
r118 r122 59 59 <tr class="prop"> 60 60 <td valign="top" class="name"> 61 <label for=" lifeplan">Lifeplan:</label>61 <label for="maintenanceActions">Maintenance Actions:</label> 62 62 </td> 63 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'lifeplan','errors')}"> 64 <g:select optionKey="id" from="${LifePlan.list()}" name="lifeplan.id" value="${assetInstance?.lifeplan?.id}" ></g:select> 65 </td> 66 </tr> 67 68 <tr class="prop"> 69 <td valign="top" class="name"> 70 <label for="locationLongText">Location Long Text:</label> 71 </td> 72 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'locationLongText','errors')}"> 73 <input type="text" id="locationLongText" name="locationLongText" value="${fieldValue(bean:assetInstance,field:'locationLongText')}"/> 74 </td> 75 </tr> 76 77 <tr class="prop"> 78 <td valign="top" class="name"> 79 <label for="manufacturedDate">Manufactured Date:</label> 80 </td> 81 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'manufacturedDate','errors')}"> 82 <g:datePicker name="manufacturedDate" value="${assetInstance?.manufacturedDate}" ></g:datePicker> 83 </td> 84 </tr> 85 86 <tr class="prop"> 87 <td valign="top" class="name"> 88 <label for="modelNumber">Model Number:</label> 89 </td> 90 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'modelNumber','errors')}"> 91 <input type="text" id="modelNumber" name="modelNumber" value="${fieldValue(bean:assetInstance,field:'modelNumber')}"/> 63 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'maintenanceActions','errors')}"> 64 65 <ul> 66 <g:each var="m" in="${assetInstance?.maintenanceActions?}"> 67 <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 68 </g:each> 69 </ul> 70 <g:link controller="maintenanceAction" params="['asset.id':assetInstance?.id]" action="create">Add MaintenanceAction</g:link> 71 92 72 </td> 93 73 </tr> … … 104 84 <tr class="prop"> 105 85 <td valign="top" class="name"> 106 <label for=" purchaseCost">Purchase Cost:</label>86 <label for="systemSection">System Section:</label> 107 87 </td> 108 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'purchaseCost','errors')}"> 109 <input type="text" id="purchaseCost" name="purchaseCost" value="${fieldValue(bean:assetInstance,field:'purchaseCost')}" /> 110 </td> 111 </tr> 112 113 <tr class="prop"> 114 <td valign="top" class="name"> 115 <label for="riskPriorityNumber">Risk Priority Number:</label> 116 </td> 117 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'riskPriorityNumber','errors')}"> 118 <input type="text" id="riskPriorityNumber" name="riskPriorityNumber" value="${fieldValue(bean:assetInstance,field:'riskPriorityNumber')}" /> 119 </td> 120 </tr> 121 122 <tr class="prop"> 123 <td valign="top" class="name"> 124 <label for="serialNumber">Serial Number:</label> 125 </td> 126 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'serialNumber','errors')}"> 127 <input type="text" id="serialNumber" name="serialNumber" value="${fieldValue(bean:assetInstance,field:'serialNumber')}"/> 88 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'systemSection','errors')}"> 89 <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetInstance?.systemSection?.id}" ></g:select> 128 90 </td> 129 91 </tr> -
trunk/grails-app/views/asset/list.gsp
r118 r122 30 30 <g:sortableColumn property="isActive" title="Is Active" /> 31 31 32 <th>Lifeplan</th> 32 <g:sortableColumn property="name" title="Name" /> 33 34 <th>System Section</th> 33 35 34 <g:sortableColumn property="locationLongText" title="Location Long Text" />35 36 36 </tr> 37 37 </thead> … … 48 48 <td>${fieldValue(bean:assetInstance, field:'isActive')}</td> 49 49 50 <td>${fieldValue(bean:assetInstance, field:' lifeplan')}</td>50 <td>${fieldValue(bean:assetInstance, field:'name')}</td> 51 51 52 <td>${fieldValue(bean:assetInstance, field:' locationLongText')}</td>52 <td>${fieldValue(bean:assetInstance, field:'systemSection')}</td> 53 53 54 54 </tr> -
trunk/grails-app/views/asset/show.gsp
r118 r122 52 52 53 53 <tr class="prop"> 54 <td valign="top" class="name"> Lifeplan:</td>54 <td valign="top" class="name">Maintenance Actions:</td> 55 55 56 <td valign="top" class="value"><g:link controller="lifePlan" action="show" id="${assetInstance?.lifeplan?.id}">${assetInstance?.lifeplan?.encodeAsHTML()}</g:link></td> 57 58 </tr> 59 60 <tr class="prop"> 61 <td valign="top" class="name">Location Long Text:</td> 62 63 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'locationLongText')}</td> 64 65 </tr> 66 67 <tr class="prop"> 68 <td valign="top" class="name">Manufactured Date:</td> 69 70 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'manufacturedDate')}</td> 71 72 </tr> 73 74 <tr class="prop"> 75 <td valign="top" class="name">Model Number:</td> 76 77 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'modelNumber')}</td> 56 <td valign="top" style="text-align:left;" class="value"> 57 <ul> 58 <g:each var="m" in="${assetInstance.maintenanceActions}"> 59 <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 60 </g:each> 61 </ul> 62 </td> 78 63 79 64 </tr> … … 87 72 88 73 <tr class="prop"> 89 <td valign="top" class="name"> Purchase Cost:</td>74 <td valign="top" class="name">System Section:</td> 90 75 91 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'purchaseCost')}</td> 92 93 </tr> 94 95 <tr class="prop"> 96 <td valign="top" class="name">Risk Priority Number:</td> 97 98 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'riskPriorityNumber')}</td> 99 100 </tr> 101 102 <tr class="prop"> 103 <td valign="top" class="name">Serial Number:</td> 104 105 <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'serialNumber')}</td> 76 <td valign="top" class="value"><g:link controller="systemSection" action="show" id="${assetInstance?.systemSection?.id}">${assetInstance?.systemSection?.encodeAsHTML()}</g:link></td> 106 77 107 78 </tr>
Note: See TracChangeset
for help on using the changeset viewer.