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