Changeset 122 for trunk/grails-app/views/task/edit.gsp
- Timestamp:
- May 1, 2009, 3:27:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/task/edit.gsp
r96 r122 89 89 </td> 90 90 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'comment','errors')}"> 91 <textarea rows="5" cols="40" name="comment">${fieldValue(bean:taskInstance, field:'comment')}</textarea> 91 <input type="text" id="comment" name="comment" value="${fieldValue(bean:taskInstance,field:'comment')}"/> 92 </td> 93 </tr> 94 95 <tr class="prop"> 96 <td valign="top" class="name"> 97 <label for="primaryAsset">Primary Asset:</label> 98 </td> 99 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'primaryAsset','errors')}"> 100 <g:select optionKey="id" from="${Asset.list()}" name="primaryAsset.id" value="${taskInstance?.primaryAsset?.id}" noSelection="['null':'']"></g:select> 92 101 </td> 93 102 </tr> … … 111 120 <tr class="prop"> 112 121 <td valign="top" class="name"> 122 <label for="associatedAssets">Associated Assets:</label> 123 </td> 124 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'associatedAssets','errors')}"> 125 <g:select name="associatedAssets" 126 from="${Asset.list()}" 127 size="5" multiple="yes" optionKey="id" 128 value="${taskInstance?.associatedAssets}" /> 129 130 </td> 131 </tr> 132 133 <tr class="prop"> 134 <td valign="top" class="name"> 113 135 <label for="entries">Entries:</label> 114 136 </td> … … 127 149 <tr class="prop"> 128 150 <td valign="top" class="name"> 151 <label for="inventoryMovements">Inventory Movements:</label> 152 </td> 153 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'inventoryMovements','errors')}"> 154 155 <ul> 156 <g:each var="i" in="${taskInstance?.inventoryMovements?}"> 157 <li><g:link controller="inventoryMovement" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> 158 </g:each> 159 </ul> 160 <g:link controller="inventoryMovement" params="['task.id':taskInstance?.id]" action="create">Add InventoryMovement</g:link> 161 162 </td> 163 </tr> 164 165 <tr class="prop"> 166 <td valign="top" class="name"> 129 167 <label for="isActive">Is Active:</label> 130 168 </td> … … 149 187 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'isScheduled','errors')}"> 150 188 <g:checkBox name="isScheduled" value="${taskInstance?.isScheduled}" ></g:checkBox> 189 </td> 190 </tr> 191 192 <tr class="prop"> 193 <td valign="top" class="name"> 194 <label for="recurringSchedule">Recurring Schedule:</label> 195 </td> 196 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'recurringSchedule','errors')}"> 197 <g:select optionKey="id" from="${RecurringSchedule.list()}" name="recurringSchedule.id" value="${taskInstance?.recurringSchedule?.id}" ></g:select> 151 198 </td> 152 199 </tr>
Note: See TracChangeset
for help on using the changeset viewer.