Changeset 122 for trunk/grails-app/views/task
- Timestamp:
- May 1, 2009, 3:27:41 PM (16 years ago)
- Location:
- trunk/grails-app/views/task
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/task/create.gsp
r96 r122 86 86 </td> 87 87 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'comment','errors')}"> 88 <textarea rows="5" cols="40" name="comment">${fieldValue(bean:taskInstance, field:'comment')}</textarea> 88 <input type="text" id="comment" name="comment" value="${fieldValue(bean:taskInstance,field:'comment')}"/> 89 </td> 90 </tr> 91 92 <tr class="prop"> 93 <td valign="top" class="name"> 94 <label for="primaryAsset">Primary Asset:</label> 95 </td> 96 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'primaryAsset','errors')}"> 97 <g:select optionKey="id" from="${Asset.list()}" name="primaryAsset.id" value="${taskInstance?.primaryAsset?.id}" noSelection="['null':'']"></g:select> 89 98 </td> 90 99 </tr> … … 114 123 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'isScheduled','errors')}"> 115 124 <g:checkBox name="isScheduled" value="${taskInstance?.isScheduled}" ></g:checkBox> 125 </td> 126 </tr> 127 128 <tr class="prop"> 129 <td valign="top" class="name"> 130 <label for="recurringSchedule">Recurring Schedule:</label> 131 </td> 132 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'recurringSchedule','errors')}"> 133 <g:select optionKey="id" from="${RecurringSchedule.list()}" name="recurringSchedule.id" value="${taskInstance?.recurringSchedule?.id}" ></g:select> 116 134 </td> 117 135 </tr> -
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> -
trunk/grails-app/views/task/show.gsp
r96 r122 80 80 81 81 <tr class="prop"> 82 <td valign="top" class="name">Primary Asset:</td> 83 84 <td valign="top" class="value"><g:link controller="asset" action="show" id="${taskInstance?.primaryAsset?.id}">${taskInstance?.primaryAsset?.encodeAsHTML()}</g:link></td> 85 86 </tr> 87 88 <tr class="prop"> 82 89 <td valign="top" class="name">Assigned Persons:</td> 83 90 … … 93 100 94 101 <tr class="prop"> 102 <td valign="top" class="name">Associated Assets:</td> 103 104 <td valign="top" style="text-align:left;" class="value"> 105 <ul> 106 <g:each var="a" in="${taskInstance.associatedAssets}"> 107 <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 108 </g:each> 109 </ul> 110 </td> 111 112 </tr> 113 114 <tr class="prop"> 95 115 <td valign="top" class="name">Entries:</td> 96 116 … … 106 126 107 127 <tr class="prop"> 128 <td valign="top" class="name">Inventory Movements:</td> 129 130 <td valign="top" style="text-align:left;" class="value"> 131 <ul> 132 <g:each var="i" in="${taskInstance.inventoryMovements}"> 133 <li><g:link controller="inventoryMovement" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> 134 </g:each> 135 </ul> 136 </td> 137 138 </tr> 139 140 <tr class="prop"> 108 141 <td valign="top" class="name">Is Active:</td> 109 142 … … 123 156 124 157 <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'isScheduled')}</td> 158 159 </tr> 160 161 <tr class="prop"> 162 <td valign="top" class="name">Recurring Schedule:</td> 163 164 <td valign="top" class="value"><g:link controller="recurringSchedule" action="show" id="${taskInstance?.recurringSchedule?.id}">${taskInstance?.recurringSchedule?.encodeAsHTML()}</g:link></td> 125 165 126 166 </tr>
Note: See TracChangeset
for help on using the changeset viewer.