[84] | 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> |
---|
[85] | 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> |
---|
[84] | 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}" /> |
---|
| 27 | <div class="dialog"> |
---|
| 28 | <table> |
---|
| 29 | <tbody> |
---|
| 30 | |
---|
| 31 | <tr class="prop"> |
---|
| 32 | <td valign="top" class="name"> |
---|
[86] | 33 | <label for="id">Id:</label> |
---|
| 34 | </td> |
---|
| 35 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'id')}</td> |
---|
| 36 | </tr> |
---|
| 37 | |
---|
| 38 | <tr class="prop"> |
---|
| 39 | <td valign="top" class="name"> |
---|
[84] | 40 | <label for="description">Description:</label> |
---|
| 41 | </td> |
---|
| 42 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'description','errors')}"> |
---|
[91] | 43 | <input type="text" style="width:450px" maxlength="75" id="description" name="description" value="${fieldValue(bean:taskInstance,field:'description')}"/> |
---|
[84] | 44 | </td> |
---|
[86] | 45 | </tr> |
---|
| 46 | |
---|
| 47 | <tr class="prop"> |
---|
| 48 | <td valign="top" class="name"> |
---|
| 49 | <label for="comment">Comment:</label> |
---|
| 50 | </td> |
---|
| 51 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'comment','errors')}"> |
---|
| 52 | <textarea style="width:450px" rows="5" cols="40" name="comment">${fieldValue(bean:taskInstance, field:'comment')}</textarea> |
---|
| 53 | </td> |
---|
| 54 | </tr> |
---|
[84] | 55 | |
---|
| 56 | <tr class="prop"> |
---|
| 57 | <td valign="top" class="name"> |
---|
| 58 | <label for="targetStartDate">Target Start Date:</label> |
---|
| 59 | </td> |
---|
| 60 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetStartDate','errors')}"> |
---|
[86] | 61 | <g:datePicker name="targetStartDate" value="${taskInstance?.targetStartDate}" precision="day"></g:datePicker> |
---|
[84] | 62 | </td> |
---|
| 63 | </tr> |
---|
[86] | 64 | |
---|
| 65 | <tr class="prop"> |
---|
| 66 | <td valign="top" class="name"> |
---|
| 67 | <label for="targetCompletionDate">Target Completion Date:</label> |
---|
| 68 | </td> |
---|
| 69 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetCompletionDate','errors')}"> |
---|
| 70 | <g:datePicker name="targetCompletionDate" value="${taskInstance?.targetCompletionDate}" precision="day"></g:datePicker> |
---|
| 71 | </td> |
---|
| 72 | </tr> |
---|
[84] | 73 | |
---|
| 74 | <tr class="prop"> |
---|
| 75 | <td valign="top" class="name"> |
---|
| 76 | <label for="leadPerson">Lead Person:</label> |
---|
| 77 | </td> |
---|
| 78 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'leadPerson','errors')}"> |
---|
| 79 | <g:select optionKey="id" from="${Person.list()}" name="leadPerson.id" value="${taskInstance?.leadPerson?.id}" ></g:select> |
---|
| 80 | </td> |
---|
| 81 | </tr> |
---|
| 82 | |
---|
| 83 | <tr class="prop"> |
---|
| 84 | <td valign="top" class="name"> |
---|
| 85 | <label for="taskPriority">Task Priority:</label> |
---|
| 86 | </td> |
---|
| 87 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskPriority','errors')}"> |
---|
| 88 | <g:select optionKey="id" from="${TaskPriority.list()}" name="taskPriority.id" value="${taskInstance?.taskPriority?.id}" ></g:select> |
---|
| 89 | </td> |
---|
| 90 | </tr> |
---|
| 91 | |
---|
| 92 | <tr class="prop"> |
---|
| 93 | <td valign="top" class="name"> |
---|
| 94 | <label for="taskStatus">Task Status:</label> |
---|
| 95 | </td> |
---|
| 96 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskStatus','errors')}"> |
---|
| 97 | <g:select optionKey="id" from="${TaskStatus.list()}" name="taskStatus.id" value="${taskInstance?.taskStatus?.id}" ></g:select> |
---|
| 98 | </td> |
---|
| 99 | </tr> |
---|
| 100 | |
---|
| 101 | <tr class="prop"> |
---|
| 102 | <td valign="top" class="name"> |
---|
| 103 | <label for="isActive">Is Active:</label> |
---|
| 104 | </td> |
---|
| 105 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'isActive','errors')}"> |
---|
| 106 | <g:checkBox name="isActive" value="${taskInstance?.isActive}" ></g:checkBox> |
---|
| 107 | </td> |
---|
| 108 | </tr> |
---|
| 109 | |
---|
| 110 | <tr class="prop"> |
---|
| 111 | <td valign="top" class="name"> |
---|
| 112 | <label for="isApproved">Is Approved:</label> |
---|
| 113 | </td> |
---|
| 114 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'isApproved','errors')}"> |
---|
| 115 | <g:checkBox name="isApproved" value="${taskInstance?.isApproved}" ></g:checkBox> |
---|
| 116 | </td> |
---|
| 117 | </tr> |
---|
| 118 | |
---|
| 119 | <tr class="prop"> |
---|
| 120 | <td valign="top" class="name"> |
---|
| 121 | <label for="isScheduled">Is Scheduled:</label> |
---|
| 122 | </td> |
---|
| 123 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'isScheduled','errors')}"> |
---|
| 124 | <g:checkBox name="isScheduled" value="${taskInstance?.isScheduled}" ></g:checkBox> |
---|
| 125 | </td> |
---|
[86] | 126 | </tr> |
---|
[84] | 127 | |
---|
| 128 | <tr class="prop"> |
---|
| 129 | <td valign="top" class="name"> |
---|
[86] | 130 | <label for="parentTask">Parent Task:</label> |
---|
[84] | 131 | </td> |
---|
[86] | 132 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'parentTask','errors')}"> |
---|
| 133 | <g:select optionKey="id" from="${possibleParentList}" name="parentTask.id" value="${taskInstance?.parentTask?.id}" noSelection="['null':'']"></g:select> |
---|
[84] | 134 | </td> |
---|
[86] | 135 | </tr> |
---|
[84] | 136 | |
---|
| 137 | <tr class="prop"> |
---|
| 138 | <td valign="top" class="name"> |
---|
| 139 | <label for="taskGroup">Task Group:</label> |
---|
| 140 | </td> |
---|
| 141 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskGroup','errors')}"> |
---|
| 142 | <g:select optionKey="id" from="${TaskGroup.list()}" name="taskGroup.id" value="${taskInstance?.taskGroup?.id}" ></g:select> |
---|
| 143 | </td> |
---|
| 144 | </tr> |
---|
| 145 | |
---|
| 146 | <tr class="prop"> |
---|
| 147 | <td valign="top" class="name"> |
---|
| 148 | <label for="taskType">Task Type:</label> |
---|
| 149 | </td> |
---|
| 150 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskType','errors')}"> |
---|
| 151 | <g:select optionKey="id" from="${TaskType.list()}" name="taskType.id" value="${taskInstance?.taskType?.id}" ></g:select> |
---|
| 152 | </td> |
---|
[96] | 153 | </tr> |
---|
| 154 | |
---|
| 155 | <tr class="prop"> |
---|
| 156 | <td valign="top" class="name"> |
---|
| 157 | <label for="assignedPersons">Assigned Persons:</label> |
---|
| 158 | </td> |
---|
| 159 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'assignedPersons','errors')}"> |
---|
| 160 | |
---|
| 161 | <ul> |
---|
| 162 | <g:each var="a" in="${taskInstance?.assignedPersons?}"> |
---|
| 163 | <li><g:link controller="assignedPersonDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> |
---|
| 164 | </g:each> |
---|
| 165 | </ul> |
---|
| 166 | <g:link controller="assignedPersonDetailed" params="['task.id':taskInstance?.id]" action="create">Add AssignedPerson</g:link> |
---|
| 167 | |
---|
| 168 | </td> |
---|
[84] | 169 | </tr> |
---|
[96] | 170 | |
---|
| 171 | |
---|
[84] | 172 | |
---|
| 173 | </tbody> |
---|
| 174 | </table> |
---|
| 175 | </div> |
---|
| 176 | <div class="buttons"> |
---|
| 177 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
| 178 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 179 | </div> |
---|
| 180 | </g:form> |
---|
| 181 | </div> |
---|
| 182 | </body> |
---|
| 183 | </html> |
---|