[66] | 1 | |
---|
| 2 | |
---|
| 3 | <html> |
---|
| 4 | <head> |
---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
| 6 | <meta name="layout" content="main" /> |
---|
| 7 | <title>Edit Task</title> |
---|
| 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
| 11 | <span class="menuButton"><g:link class="list" action="list">Task List</g:link></span> |
---|
| 12 | <span class="menuButton"><g:link class="create" action="create">New Task</g:link></span> |
---|
| 13 | </div> |
---|
| 14 | <div class="body"> |
---|
| 15 | <h1>Edit Task</h1> |
---|
| 16 | <g:if test="${flash.message}"> |
---|
| 17 | <div class="message">${flash.message}</div> |
---|
| 18 | </g:if> |
---|
| 19 | <g:hasErrors bean="${taskInstance}"> |
---|
| 20 | <div class="errors"> |
---|
| 21 | <g:renderErrors bean="${taskInstance}" as="list" /> |
---|
| 22 | </div> |
---|
| 23 | </g:hasErrors> |
---|
| 24 | <g:form method="post" > |
---|
| 25 | <input type="hidden" name="id" value="${taskInstance?.id}" /> |
---|
[96] | 26 | <input type="hidden" name="version" value="${taskInstance?.version}" /> |
---|
[66] | 27 | <div class="dialog"> |
---|
| 28 | <table> |
---|
| 29 | <tbody> |
---|
| 30 | |
---|
| 31 | <tr class="prop"> |
---|
| 32 | <td valign="top" class="name"> |
---|
[131] | 33 | <label for="description">Description:</label> |
---|
| 34 | </td> |
---|
| 35 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'description','errors')}"> |
---|
| 36 | <input type="text" maxlength="75" id="description" name="description" value="${fieldValue(bean:taskInstance,field:'description')}"/> |
---|
| 37 | </td> |
---|
| 38 | </tr> |
---|
| 39 | |
---|
| 40 | <tr class="prop"> |
---|
| 41 | <td valign="top" class="name"> |
---|
| 42 | <label for="comment">Comment:</label> |
---|
| 43 | </td> |
---|
| 44 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'comment','errors')}"> |
---|
| 45 | <input type="text" id="comment" name="comment" value="${fieldValue(bean:taskInstance,field:'comment')}"/> |
---|
| 46 | </td> |
---|
| 47 | </tr> |
---|
| 48 | |
---|
| 49 | <tr class="prop"> |
---|
| 50 | <td valign="top" class="name"> |
---|
[66] | 51 | <label for="targetStartDate">Target Start Date:</label> |
---|
| 52 | </td> |
---|
| 53 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetStartDate','errors')}"> |
---|
[178] | 54 | <g:datePicker name="targetStartDate" value="${taskInstance?.targetStartDate}" precision="minute" ></g:datePicker> |
---|
[66] | 55 | </td> |
---|
| 56 | </tr> |
---|
| 57 | |
---|
| 58 | <tr class="prop"> |
---|
| 59 | <td valign="top" class="name"> |
---|
[131] | 60 | <label for="targetCompletionDate">Target Completion Date:</label> |
---|
[66] | 61 | </td> |
---|
[131] | 62 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetCompletionDate','errors')}"> |
---|
[178] | 63 | <g:datePicker name="targetCompletionDate" value="${taskInstance?.targetCompletionDate}" precision="minute" ></g:datePicker> |
---|
[66] | 64 | </td> |
---|
| 65 | </tr> |
---|
| 66 | |
---|
| 67 | <tr class="prop"> |
---|
| 68 | <td valign="top" class="name"> |
---|
| 69 | <label for="leadPerson">Lead Person:</label> |
---|
| 70 | </td> |
---|
| 71 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'leadPerson','errors')}"> |
---|
| 72 | <g:select optionKey="id" from="${Person.list()}" name="leadPerson.id" value="${taskInstance?.leadPerson?.id}" ></g:select> |
---|
| 73 | </td> |
---|
| 74 | </tr> |
---|
| 75 | |
---|
| 76 | <tr class="prop"> |
---|
| 77 | <td valign="top" class="name"> |
---|
[70] | 78 | <label for="taskPriority">Task Priority:</label> |
---|
| 79 | </td> |
---|
| 80 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskPriority','errors')}"> |
---|
| 81 | <g:select optionKey="id" from="${TaskPriority.list()}" name="taskPriority.id" value="${taskInstance?.taskPriority?.id}" ></g:select> |
---|
| 82 | </td> |
---|
| 83 | </tr> |
---|
| 84 | |
---|
| 85 | <tr class="prop"> |
---|
| 86 | <td valign="top" class="name"> |
---|
[252] | 87 | <label for="taskBudgetStatus">Task Budget Status:</label> |
---|
| 88 | </td> |
---|
| 89 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskBudgetStatus','errors')}"> |
---|
| 90 | <g:select optionKey="id" from="${TaskBudgetStatus.list()}" name="taskBudgetStatus.id" value="${taskInstance?.taskBudgetStatus?.id}" ></g:select> |
---|
| 91 | </td> |
---|
| 92 | </tr> |
---|
| 93 | |
---|
| 94 | <tr class="prop"> |
---|
| 95 | <td valign="top" class="name"> |
---|
[66] | 96 | <label for="taskStatus">Task Status:</label> |
---|
| 97 | </td> |
---|
| 98 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskStatus','errors')}"> |
---|
| 99 | <g:select optionKey="id" from="${TaskStatus.list()}" name="taskStatus.id" value="${taskInstance?.taskStatus?.id}" ></g:select> |
---|
| 100 | </td> |
---|
| 101 | </tr> |
---|
| 102 | |
---|
| 103 | <tr class="prop"> |
---|
| 104 | <td valign="top" class="name"> |
---|
[69] | 105 | <label for="parentTask">Parent Task:</label> |
---|
| 106 | </td> |
---|
| 107 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'parentTask','errors')}"> |
---|
| 108 | <g:select optionKey="id" from="${Task.list()}" name="parentTask.id" value="${taskInstance?.parentTask?.id}" noSelection="['null':'']"></g:select> |
---|
| 109 | </td> |
---|
| 110 | </tr> |
---|
| 111 | |
---|
| 112 | <tr class="prop"> |
---|
| 113 | <td valign="top" class="name"> |
---|
[131] | 114 | <label for="primaryAsset">Primary Asset:</label> |
---|
[66] | 115 | </td> |
---|
[131] | 116 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'primaryAsset','errors')}"> |
---|
| 117 | <g:select optionKey="id" from="${Asset.list()}" name="primaryAsset.id" value="${taskInstance?.primaryAsset?.id}" noSelection="['null':'']"></g:select> |
---|
[66] | 118 | </td> |
---|
| 119 | </tr> |
---|
| 120 | |
---|
| 121 | <tr class="prop"> |
---|
| 122 | <td valign="top" class="name"> |
---|
[131] | 123 | <label for="taskRecurringSchedule">Task Recurring Schedule:</label> |
---|
[122] | 124 | </td> |
---|
[131] | 125 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskRecurringSchedule','errors')}"> |
---|
| 126 | <g:select optionKey="id" from="${TaskRecurringSchedule.list()}" name="taskRecurringSchedule.id" value="${taskInstance?.taskRecurringSchedule?.id}" noSelection="['null':'']"></g:select> |
---|
[122] | 127 | </td> |
---|
| 128 | </tr> |
---|
| 129 | |
---|
| 130 | <tr class="prop"> |
---|
| 131 | <td valign="top" class="name"> |
---|
[131] | 132 | <label for="taskProcedure">Task Procedure:</label> |
---|
| 133 | </td> |
---|
| 134 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskProcedure','errors')}"> |
---|
| 135 | <g:select optionKey="id" from="${TaskProcedure.list()}" name="taskProcedure.id" value="${taskInstance?.taskProcedure?.id}" noSelection="['null':'']"></g:select> |
---|
| 136 | </td> |
---|
| 137 | </tr> |
---|
| 138 | |
---|
| 139 | <tr class="prop"> |
---|
| 140 | <td valign="top" class="name"> |
---|
[181] | 141 | <label for="approved">Approved:</label> |
---|
| 142 | </td> |
---|
| 143 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'approved','errors')}"> |
---|
| 144 | <g:checkBox name="approved" value="${taskInstance?.approved}" ></g:checkBox> |
---|
| 145 | </td> |
---|
| 146 | </tr> |
---|
| 147 | |
---|
| 148 | <tr class="prop"> |
---|
| 149 | <td valign="top" class="name"> |
---|
[242] | 150 | <label for="assignedGroups">Assigned Groups:</label> |
---|
| 151 | </td> |
---|
| 152 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'assignedGroups','errors')}"> |
---|
| 153 | |
---|
| 154 | <ul> |
---|
| 155 | <g:each var="a" in="${taskInstance?.assignedGroups?}"> |
---|
| 156 | <li><g:link controller="assignedGroup" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> |
---|
| 157 | </g:each> |
---|
| 158 | </ul> |
---|
| 159 | <g:link controller="assignedGroup" params="['task.id':taskInstance?.id]" action="create">Add AssignedGroup</g:link> |
---|
| 160 | |
---|
| 161 | </td> |
---|
| 162 | </tr> |
---|
| 163 | |
---|
| 164 | <tr class="prop"> |
---|
| 165 | <td valign="top" class="name"> |
---|
[241] | 166 | <label for="assignedPersons">Assigned Persons:</label> |
---|
[66] | 167 | </td> |
---|
[241] | 168 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'assignedPersons','errors')}"> |
---|
[66] | 169 | |
---|
| 170 | <ul> |
---|
[241] | 171 | <g:each var="a" in="${taskInstance?.assignedPersons?}"> |
---|
| 172 | <li><g:link controller="assignedPerson" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> |
---|
[66] | 173 | </g:each> |
---|
| 174 | </ul> |
---|
[241] | 175 | <g:link controller="assignedPerson" params="['task.id':taskInstance?.id]" action="create">Add AssignedPerson</g:link> |
---|
[66] | 176 | |
---|
| 177 | </td> |
---|
| 178 | </tr> |
---|
| 179 | |
---|
| 180 | <tr class="prop"> |
---|
| 181 | <td valign="top" class="name"> |
---|
[122] | 182 | <label for="associatedAssets">Associated Assets:</label> |
---|
| 183 | </td> |
---|
| 184 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'associatedAssets','errors')}"> |
---|
| 185 | <g:select name="associatedAssets" |
---|
| 186 | from="${Asset.list()}" |
---|
| 187 | size="5" multiple="yes" optionKey="id" |
---|
| 188 | value="${taskInstance?.associatedAssets}" /> |
---|
| 189 | |
---|
| 190 | </td> |
---|
| 191 | </tr> |
---|
| 192 | |
---|
| 193 | <tr class="prop"> |
---|
| 194 | <td valign="top" class="name"> |
---|
[66] | 195 | <label for="entries">Entries:</label> |
---|
| 196 | </td> |
---|
| 197 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'entries','errors')}"> |
---|
| 198 | |
---|
| 199 | <ul> |
---|
| 200 | <g:each var="e" in="${taskInstance?.entries?}"> |
---|
| 201 | <li><g:link controller="entry" action="show" id="${e.id}">${e?.encodeAsHTML()}</g:link></li> |
---|
| 202 | </g:each> |
---|
| 203 | </ul> |
---|
| 204 | <g:link controller="entry" params="['task.id':taskInstance?.id]" action="create">Add Entry</g:link> |
---|
| 205 | |
---|
| 206 | </td> |
---|
| 207 | </tr> |
---|
| 208 | |
---|
| 209 | <tr class="prop"> |
---|
| 210 | <td valign="top" class="name"> |
---|
[122] | 211 | <label for="inventoryMovements">Inventory Movements:</label> |
---|
| 212 | </td> |
---|
| 213 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'inventoryMovements','errors')}"> |
---|
| 214 | |
---|
| 215 | <ul> |
---|
| 216 | <g:each var="i" in="${taskInstance?.inventoryMovements?}"> |
---|
| 217 | <li><g:link controller="inventoryMovement" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> |
---|
| 218 | </g:each> |
---|
| 219 | </ul> |
---|
| 220 | <g:link controller="inventoryMovement" params="['task.id':taskInstance?.id]" action="create">Add InventoryMovement</g:link> |
---|
| 221 | |
---|
| 222 | </td> |
---|
| 223 | </tr> |
---|
| 224 | |
---|
| 225 | <tr class="prop"> |
---|
| 226 | <td valign="top" class="name"> |
---|
[181] | 227 | <label for="scheduled">Scheduled:</label> |
---|
[66] | 228 | </td> |
---|
[181] | 229 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'scheduled','errors')}"> |
---|
| 230 | <g:checkBox name="scheduled" value="${taskInstance?.scheduled}" ></g:checkBox> |
---|
[66] | 231 | </td> |
---|
| 232 | </tr> |
---|
| 233 | |
---|
| 234 | <tr class="prop"> |
---|
| 235 | <td valign="top" class="name"> |
---|
[69] | 236 | <label for="subTasks">Sub Tasks:</label> |
---|
| 237 | </td> |
---|
| 238 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'subTasks','errors')}"> |
---|
| 239 | |
---|
| 240 | <ul> |
---|
| 241 | <g:each var="s" in="${taskInstance?.subTasks?}"> |
---|
| 242 | <li><g:link controller="task" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> |
---|
| 243 | </g:each> |
---|
| 244 | </ul> |
---|
| 245 | <g:link controller="task" params="['task.id':taskInstance?.id]" action="create">Add Task</g:link> |
---|
| 246 | |
---|
| 247 | </td> |
---|
| 248 | </tr> |
---|
| 249 | |
---|
| 250 | <tr class="prop"> |
---|
| 251 | <td valign="top" class="name"> |
---|
[66] | 252 | <label for="taskGroup">Task Group:</label> |
---|
| 253 | </td> |
---|
| 254 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskGroup','errors')}"> |
---|
| 255 | <g:select optionKey="id" from="${TaskGroup.list()}" name="taskGroup.id" value="${taskInstance?.taskGroup?.id}" ></g:select> |
---|
| 256 | </td> |
---|
| 257 | </tr> |
---|
| 258 | |
---|
[70] | 259 | <tr class="prop"> |
---|
| 260 | <td valign="top" class="name"> |
---|
[96] | 261 | <label for="taskModifications">Task Modifications:</label> |
---|
| 262 | </td> |
---|
| 263 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskModifications','errors')}"> |
---|
| 264 | |
---|
| 265 | <ul> |
---|
| 266 | <g:each var="t" in="${taskInstance?.taskModifications?}"> |
---|
| 267 | <li><g:link controller="taskModification" action="show" id="${t.id}">${t?.encodeAsHTML()}</g:link></li> |
---|
| 268 | </g:each> |
---|
| 269 | </ul> |
---|
| 270 | <g:link controller="taskModification" params="['task.id':taskInstance?.id]" action="create">Add TaskModification</g:link> |
---|
| 271 | |
---|
| 272 | </td> |
---|
| 273 | </tr> |
---|
| 274 | |
---|
| 275 | <tr class="prop"> |
---|
| 276 | <td valign="top" class="name"> |
---|
[70] | 277 | <label for="taskType">Task Type:</label> |
---|
| 278 | </td> |
---|
| 279 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskType','errors')}"> |
---|
| 280 | <g:select optionKey="id" from="${TaskType.list()}" name="taskType.id" value="${taskInstance?.taskType?.id}" ></g:select> |
---|
| 281 | </td> |
---|
| 282 | </tr> |
---|
| 283 | |
---|
[181] | 284 | <tr class="prop"> |
---|
| 285 | <td valign="top" class="name"> |
---|
| 286 | <label for="trash">Trash:</label> |
---|
| 287 | </td> |
---|
| 288 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'trash','errors')}"> |
---|
| 289 | <g:checkBox name="trash" value="${taskInstance?.trash}" ></g:checkBox> |
---|
| 290 | </td> |
---|
| 291 | </tr> |
---|
| 292 | |
---|
[66] | 293 | </tbody> |
---|
| 294 | </table> |
---|
| 295 | </div> |
---|
| 296 | <div class="buttons"> |
---|
| 297 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
| 298 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 299 | </div> |
---|
| 300 | </g:form> |
---|
| 301 | </div> |
---|
| 302 | </body> |
---|
| 303 | </html> |
---|