Changeset 122 for trunk/grails-app/views/lifePlan
- Timestamp:
- May 1, 2009, 3:27:41 PM (16 years ago)
- Location:
- trunk/grails-app/views/lifePlan
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/lifePlan/create.gsp
r118 r122 29 29 <tr class="prop"> 30 30 <td valign="top" class="name"> 31 <label for="asset">Asset:</label>32 </td>33 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'asset','errors')}">34 <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${lifePlanInstance?.asset?.id}" noSelection="['null':'']"></g:select>35 </td>36 </tr>37 38 <tr class="prop">39 <td valign="top" class="name">40 <label for="form">Form:</label>41 </td>42 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'form','errors')}">43 <g:select optionKey="id" from="${Form.list()}" name="form.id" value="${lifePlanInstance?.form?.id}" noSelection="['null':'']"></g:select>44 </td>45 </tr>46 47 <tr class="prop">48 <td valign="top" class="name">49 <label for="frequency">Frequency:</label>50 </td>51 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'frequency','errors')}">52 <g:select optionKey="id" from="${Frequency.list()}" name="frequency.id" value="${lifePlanInstance?.frequency?.id}" noSelection="['null':'']"></g:select>53 </td>54 </tr>55 56 <tr class="prop">57 <td valign="top" class="name">58 <label for="assetType">Asset Type:</label>59 </td>60 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'assetType','errors')}">61 <g:select optionKey="id" from="${AssetType.list()}" name="assetType.id" value="${lifePlanInstance?.assetType?.id}" noSelection="['null':'']"></g:select>62 </td>63 </tr>64 65 <tr class="prop">66 <td valign="top" class="name">67 <label for="assembly">Assembly:</label>68 </td>69 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'assembly','errors')}">70 <g:select optionKey="id" from="${Assembly.list()}" name="assembly.id" value="${lifePlanInstance?.assembly?.id}" noSelection="['null':'']"></g:select>71 </td>72 </tr>73 74 <tr class="prop">75 <td valign="top" class="name">76 <label for="subAssembly">Sub Assembly:</label>77 </td>78 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'subAssembly','errors')}">79 <g:select optionKey="id" from="${SubAssembly.list()}" name="subAssembly.id" value="${lifePlanInstance?.subAssembly?.id}" noSelection="['null':'']"></g:select>80 </td>81 </tr>82 83 <tr class="prop">84 <td valign="top" class="name">85 <label for="componentItem">Component Item:</label>86 </td>87 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'componentItem','errors')}">88 <g:select optionKey="id" from="${ComponentItem.list()}" name="componentItem.id" value="${lifePlanInstance?.componentItem?.id}" noSelection="['null':'']"></g:select>89 </td>90 </tr>91 92 <tr class="prop">93 <td valign="top" class="name">94 31 <label for="description">Description:</label> 95 32 </td> … … 110 47 <tr class="prop"> 111 48 <td valign="top" class="name"> 112 <label for="maintenanceAction">Maintenance Action:</label>113 </td>114 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'maintenanceAction','errors')}">115 <input type="text" id="maintenanceAction" name="maintenanceAction" value="${fieldValue(bean:lifePlanInstance,field:'maintenanceAction')}"/>116 </td>117 </tr>118 119 <tr class="prop">120 <td valign="top" class="name">121 49 <label for="name">Name:</label> 122 50 </td> 123 51 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'name','errors')}"> 124 52 <input type="text" id="name" name="name" value="${fieldValue(bean:lifePlanInstance,field:'name')}"/> 125 </td>126 </tr>127 128 <tr class="prop">129 <td valign="top" class="name">130 <label for="notes">Notes:</label>131 </td>132 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'notes','errors')}">133 <input type="text" id="notes" name="notes" value="${fieldValue(bean:lifePlanInstance,field:'notes')}"/>134 </td>135 </tr>136 137 <tr class="prop">138 <td valign="top" class="name">139 <label for="resourceNumber">Resource Number:</label>140 </td>141 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'resourceNumber','errors')}">142 <input type="text" id="resourceNumber" name="resourceNumber" value="${fieldValue(bean:lifePlanInstance,field:'resourceNumber')}"/>143 </td>144 </tr>145 146 <tr class="prop">147 <td valign="top" class="name">148 <label for="timeInHours">Time In Hours:</label>149 </td>150 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'timeInHours','errors')}">151 <input type="text" id="timeInHours" name="timeInHours" value="${fieldValue(bean:lifePlanInstance,field:'timeInHours')}" />152 53 </td> 153 54 </tr> -
trunk/grails-app/views/lifePlan/edit.gsp
r118 r122 32 32 <tr class="prop"> 33 33 <td valign="top" class="name"> 34 <label for="asset">Asset:</label>35 </td>36 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'asset','errors')}">37 <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${lifePlanInstance?.asset?.id}" noSelection="['null':'']"></g:select>38 </td>39 </tr>40 41 <tr class="prop">42 <td valign="top" class="name">43 <label for="form">Form:</label>44 </td>45 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'form','errors')}">46 <g:select optionKey="id" from="${Form.list()}" name="form.id" value="${lifePlanInstance?.form?.id}" noSelection="['null':'']"></g:select>47 </td>48 </tr>49 50 <tr class="prop">51 <td valign="top" class="name">52 <label for="frequency">Frequency:</label>53 </td>54 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'frequency','errors')}">55 <g:select optionKey="id" from="${Frequency.list()}" name="frequency.id" value="${lifePlanInstance?.frequency?.id}" noSelection="['null':'']"></g:select>56 </td>57 </tr>58 59 <tr class="prop">60 <td valign="top" class="name">61 <label for="assetType">Asset Type:</label>62 </td>63 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'assetType','errors')}">64 <g:select optionKey="id" from="${AssetType.list()}" name="assetType.id" value="${lifePlanInstance?.assetType?.id}" noSelection="['null':'']"></g:select>65 </td>66 </tr>67 68 <tr class="prop">69 <td valign="top" class="name">70 <label for="assembly">Assembly:</label>71 </td>72 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'assembly','errors')}">73 <g:select optionKey="id" from="${Assembly.list()}" name="assembly.id" value="${lifePlanInstance?.assembly?.id}" noSelection="['null':'']"></g:select>74 </td>75 </tr>76 77 <tr class="prop">78 <td valign="top" class="name">79 <label for="subAssembly">Sub Assembly:</label>80 </td>81 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'subAssembly','errors')}">82 <g:select optionKey="id" from="${SubAssembly.list()}" name="subAssembly.id" value="${lifePlanInstance?.subAssembly?.id}" noSelection="['null':'']"></g:select>83 </td>84 </tr>85 86 <tr class="prop">87 <td valign="top" class="name">88 <label for="componentItem">Component Item:</label>89 </td>90 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'componentItem','errors')}">91 <g:select optionKey="id" from="${ComponentItem.list()}" name="componentItem.id" value="${lifePlanInstance?.componentItem?.id}" noSelection="['null':'']"></g:select>92 </td>93 </tr>94 95 <tr class="prop">96 <td valign="top" class="name">97 34 <label for="description">Description:</label> 98 35 </td> … … 113 50 <tr class="prop"> 114 51 <td valign="top" class="name"> 115 <label for="maintenanceAction">Maintenance Action:</label>116 </td>117 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'maintenanceAction','errors')}">118 <input type="text" id="maintenanceAction" name="maintenanceAction" value="${fieldValue(bean:lifePlanInstance,field:'maintenanceAction')}"/>119 </td>120 </tr>121 122 <tr class="prop">123 <td valign="top" class="name">124 52 <label for="name">Name:</label> 125 53 </td> 126 54 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'name','errors')}"> 127 55 <input type="text" id="name" name="name" value="${fieldValue(bean:lifePlanInstance,field:'name')}"/> 128 </td>129 </tr>130 131 <tr class="prop">132 <td valign="top" class="name">133 <label for="notes">Notes:</label>134 </td>135 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'notes','errors')}">136 <input type="text" id="notes" name="notes" value="${fieldValue(bean:lifePlanInstance,field:'notes')}"/>137 </td>138 </tr>139 140 <tr class="prop">141 <td valign="top" class="name">142 <label for="resourceNumber">Resource Number:</label>143 </td>144 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'resourceNumber','errors')}">145 <input type="text" id="resourceNumber" name="resourceNumber" value="${fieldValue(bean:lifePlanInstance,field:'resourceNumber')}"/>146 </td>147 </tr>148 149 <tr class="prop">150 <td valign="top" class="name">151 <label for="systemSections">System Sections:</label>152 </td>153 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'systemSections','errors')}">154 155 </td>156 </tr>157 158 <tr class="prop">159 <td valign="top" class="name">160 <label for="timeInHours">Time In Hours:</label>161 </td>162 <td valign="top" class="value ${hasErrors(bean:lifePlanInstance,field:'timeInHours','errors')}">163 <input type="text" id="timeInHours" name="timeInHours" value="${fieldValue(bean:lifePlanInstance,field:'timeInHours')}" />164 56 </td> 165 57 </tr> -
trunk/grails-app/views/lifePlan/list.gsp
r118 r122 24 24 <g:sortableColumn property="id" title="Id" /> 25 25 26 <th>Asset</th> 27 28 <th>Form</th> 29 30 <th>Frequency</th> 31 32 <th>Asset Type</th> 33 34 <th>Assembly</th> 35 26 <g:sortableColumn property="description" title="Description" /> 27 28 <g:sortableColumn property="isActive" title="Is Active" /> 29 30 <g:sortableColumn property="name" title="Name" /> 31 36 32 </tr> 37 33 </thead> … … 42 38 <td><g:link action="show" id="${lifePlanInstance.id}">${fieldValue(bean:lifePlanInstance, field:'id')}</g:link></td> 43 39 44 <td>${fieldValue(bean:lifePlanInstance, field:' asset')}</td>40 <td>${fieldValue(bean:lifePlanInstance, field:'description')}</td> 45 41 46 <td>${fieldValue(bean:lifePlanInstance, field:' form')}</td>42 <td>${fieldValue(bean:lifePlanInstance, field:'isActive')}</td> 47 43 48 <td>${fieldValue(bean:lifePlanInstance, field:'frequency')}</td> 49 50 <td>${fieldValue(bean:lifePlanInstance, field:'assetType')}</td> 51 52 <td>${fieldValue(bean:lifePlanInstance, field:'assembly')}</td> 44 <td>${fieldValue(bean:lifePlanInstance, field:'name')}</td> 53 45 54 46 </tr> -
trunk/grails-app/views/lifePlan/show.gsp
r118 r122 31 31 32 32 <tr class="prop"> 33 <td valign="top" class="name">Asset:</td>34 35 <td valign="top" class="value"><g:link controller="asset" action="show" id="${lifePlanInstance?.asset?.id}">${lifePlanInstance?.asset?.encodeAsHTML()}</g:link></td>36 37 </tr>38 39 <tr class="prop">40 <td valign="top" class="name">Form:</td>41 42 <td valign="top" class="value"><g:link controller="form" action="show" id="${lifePlanInstance?.form?.id}">${lifePlanInstance?.form?.encodeAsHTML()}</g:link></td>43 44 </tr>45 46 <tr class="prop">47 <td valign="top" class="name">Frequency:</td>48 49 <td valign="top" class="value"><g:link controller="frequency" action="show" id="${lifePlanInstance?.frequency?.id}">${lifePlanInstance?.frequency?.encodeAsHTML()}</g:link></td>50 51 </tr>52 53 <tr class="prop">54 <td valign="top" class="name">Asset Type:</td>55 56 <td valign="top" class="value"><g:link controller="assetType" action="show" id="${lifePlanInstance?.assetType?.id}">${lifePlanInstance?.assetType?.encodeAsHTML()}</g:link></td>57 58 </tr>59 60 <tr class="prop">61 <td valign="top" class="name">Assembly:</td>62 63 <td valign="top" class="value"><g:link controller="assembly" action="show" id="${lifePlanInstance?.assembly?.id}">${lifePlanInstance?.assembly?.encodeAsHTML()}</g:link></td>64 65 </tr>66 67 <tr class="prop">68 <td valign="top" class="name">Sub Assembly:</td>69 70 <td valign="top" class="value"><g:link controller="subAssembly" action="show" id="${lifePlanInstance?.subAssembly?.id}">${lifePlanInstance?.subAssembly?.encodeAsHTML()}</g:link></td>71 72 </tr>73 74 <tr class="prop">75 <td valign="top" class="name">Component Item:</td>76 77 <td valign="top" class="value"><g:link controller="componentItem" action="show" id="${lifePlanInstance?.componentItem?.id}">${lifePlanInstance?.componentItem?.encodeAsHTML()}</g:link></td>78 79 </tr>80 81 <tr class="prop">82 33 <td valign="top" class="name">Description:</td> 83 34 … … 94 45 95 46 <tr class="prop"> 96 <td valign="top" class="name">Maintenance Action:</td>97 98 <td valign="top" class="value">${fieldValue(bean:lifePlanInstance, field:'maintenanceAction')}</td>99 100 </tr>101 102 <tr class="prop">103 47 <td valign="top" class="name">Name:</td> 104 48 105 49 <td valign="top" class="value">${fieldValue(bean:lifePlanInstance, field:'name')}</td> 106 107 </tr>108 109 <tr class="prop">110 <td valign="top" class="name">Notes:</td>111 112 <td valign="top" class="value">${fieldValue(bean:lifePlanInstance, field:'notes')}</td>113 114 </tr>115 116 <tr class="prop">117 <td valign="top" class="name">Resource Number:</td>118 119 <td valign="top" class="value">${fieldValue(bean:lifePlanInstance, field:'resourceNumber')}</td>120 121 </tr>122 123 <tr class="prop">124 <td valign="top" class="name">System Sections:</td>125 126 <td valign="top" style="text-align:left;" class="value">127 <ul>128 <g:each var="s" in="${lifePlanInstance.systemSections}">129 <li><g:link controller="systemSection" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>130 </g:each>131 </ul>132 </td>133 134 </tr>135 136 <tr class="prop">137 <td valign="top" class="name">Time In Hours:</td>138 139 <td valign="top" class="value">${fieldValue(bean:lifePlanInstance, field:'timeInHours')}</td>140 50 141 51 </tr>
Note: See TracChangeset
for help on using the changeset viewer.