| 1 | <html> |
|---|
| 2 | <head> |
|---|
| 3 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
|---|
| 4 | <meta name="layout" content="main" /> |
|---|
| 5 | <title>Create Task</title> |
|---|
| 6 | <nav:resources override="true"/> |
|---|
| 7 | </head> |
|---|
| 8 | <body onload="document.createTaskForm.description.focus();"> |
|---|
| 9 | <div class="nav"> |
|---|
| 10 | <nav:renderSubItems group="nav"/> |
|---|
| 11 | </div> |
|---|
| 12 | <div class="body"> |
|---|
| 13 | <g:if test="${flash.message}"> |
|---|
| 14 | <div class="message">${flash.message}</div> |
|---|
| 15 | </g:if> |
|---|
| 16 | <g:hasErrors bean="${taskInstance}"> |
|---|
| 17 | <div class="errors"> |
|---|
| 18 | <g:renderErrors bean="${taskInstance}" as="list" /> |
|---|
| 19 | </div> |
|---|
| 20 | </g:hasErrors> |
|---|
| 21 | <g:form id='createTaskForm' name='createTaskForm' action="save" method="post" > |
|---|
| 22 | <div class="dialog"> |
|---|
| 23 | <table> |
|---|
| 24 | <tbody> |
|---|
| 25 | |
|---|
| 26 | <tr class="prop"> |
|---|
| 27 | <td valign="top" class="name"> |
|---|
| 28 | <label for="description">Description:</label> |
|---|
| 29 | </td> |
|---|
| 30 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'description','errors')}"> |
|---|
| 31 | <input type="text" class="description" maxlength="75" id="description" name="description" value="${fieldValue(bean:taskInstance,field:'description')}"/> |
|---|
| 32 | <g:helpBalloon class="helpballoon" code="task.description" /> |
|---|
| 33 | </td> |
|---|
| 34 | </tr> |
|---|
| 35 | |
|---|
| 36 | <tr class="prop"> |
|---|
| 37 | <td valign="top" class="name"> |
|---|
| 38 | <label for="comment">Comment:</label> |
|---|
| 39 | </td> |
|---|
| 40 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'comment','errors')}"> |
|---|
| 41 | <textarea rows="5" cols="40" name="comment">${fieldValue(bean:taskInstance, field:'comment')}</textarea> |
|---|
| 42 | <g:helpBalloon class="helpballoon" code="task.comment" /> |
|---|
| 43 | </td> |
|---|
| 44 | </tr> |
|---|
| 45 | |
|---|
| 46 | <tr class="prop"> |
|---|
| 47 | <td valign="top" class="name"> |
|---|
| 48 | <label for="targetStartDate">Target Start Date:</label> |
|---|
| 49 | </td> |
|---|
| 50 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetStartDate','errors')}"> |
|---|
| 51 | <g:datePicker name="targetStartDate" value="${taskInstance?.targetStartDate}" precision="day"></g:datePicker> |
|---|
| 52 | <g:helpBalloon class="helpballoon" code="task.targetStartDate" /> |
|---|
| 53 | </td> |
|---|
| 54 | </tr> |
|---|
| 55 | |
|---|
| 56 | <tr class="prop"> |
|---|
| 57 | <td valign="top" class="name"> |
|---|
| 58 | <label for="targetCompletionDate">Target Completion Date:</label> |
|---|
| 59 | </td> |
|---|
| 60 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetCompletionDate','errors')}"> |
|---|
| 61 | <g:datePicker name="targetCompletionDate" value="${taskInstance?.targetCompletionDate}" precision="day"></g:datePicker> |
|---|
| 62 | <g:helpBalloon class="helpballoon" code="task.targetCompletionDate" /> |
|---|
| 63 | </td> |
|---|
| 64 | </tr> |
|---|
| 65 | |
|---|
| 66 | <tr class="prop"> |
|---|
| 67 | <td valign="top" class="name"> |
|---|
| 68 | <label for="leadPerson">Lead Person:</label> |
|---|
| 69 | </td> |
|---|
| 70 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'leadPerson','errors')}"> |
|---|
| 71 | <g:select optionKey="id" from="${Person.list()}" name="leadPerson.id" value="${taskInstance?.leadPerson?.id}" ></g:select> |
|---|
| 72 | <g:helpBalloon code="task.leadPerson" /> |
|---|
| 73 | </td> |
|---|
| 74 | </tr> |
|---|
| 75 | |
|---|
| 76 | <tr class="prop"> |
|---|
| 77 | <td valign="top" class="name"> |
|---|
| 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"> |
|---|
| 87 | <label for="taskStatus">Task Status:</label> |
|---|
| 88 | </td> |
|---|
| 89 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskStatus','errors')}"> |
|---|
| 90 | <g:select optionKey="id" from="${TaskStatus.list()}" name="taskStatus.id" value="${taskInstance?.taskStatus?.id}" ></g:select> |
|---|
| 91 | </td> |
|---|
| 92 | </tr> |
|---|
| 93 | |
|---|
| 94 | <tr class="prop"> |
|---|
| 95 | <td valign="top" class="name"> |
|---|
| 96 | <label for="isActive">Is Active:</label> |
|---|
| 97 | </td> |
|---|
| 98 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'isActive','errors')}"> |
|---|
| 99 | <g:checkBox name="isActive" value="${taskInstance?.isActive}" ></g:checkBox> |
|---|
| 100 | </td> |
|---|
| 101 | </tr> |
|---|
| 102 | |
|---|
| 103 | <tr class="prop"> |
|---|
| 104 | <td valign="top" class="name"> |
|---|
| 105 | <label for="isApproved">Is Approved:</label> |
|---|
| 106 | </td> |
|---|
| 107 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'isApproved','errors')}"> |
|---|
| 108 | <g:checkBox name="isApproved" value="${taskInstance?.isApproved}" ></g:checkBox> |
|---|
| 109 | </td> |
|---|
| 110 | </tr> |
|---|
| 111 | |
|---|
| 112 | <tr class="prop"> |
|---|
| 113 | <td valign="top" class="name"> |
|---|
| 114 | <label for="isScheduled">Is Scheduled:</label> |
|---|
| 115 | </td> |
|---|
| 116 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'isScheduled','errors')}"> |
|---|
| 117 | <g:checkBox name="isScheduled" value="${taskInstance?.isScheduled}" ></g:checkBox> |
|---|
| 118 | </td> |
|---|
| 119 | </tr> |
|---|
| 120 | |
|---|
| 121 | <tr class="prop"> |
|---|
| 122 | <td valign="top" class="name"> |
|---|
| 123 | <label for="parentTask">Parent Task:</label> |
|---|
| 124 | </td> |
|---|
| 125 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'parentTask','errors')}"> |
|---|
| 126 | <g:select optionKey="id" from="${Task.list()}" name="parentTask.id" value="${taskInstance?.parentTask?.id}" noSelection="['null':'']"></g:select> |
|---|
| 127 | </td> |
|---|
| 128 | </tr> |
|---|
| 129 | |
|---|
| 130 | <tr class="prop"> |
|---|
| 131 | <td valign="top" class="name"> |
|---|
| 132 | <label for="taskGroup">Task Group:</label> |
|---|
| 133 | </td> |
|---|
| 134 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskGroup','errors')}"> |
|---|
| 135 | <g:select optionKey="id" from="${TaskGroup.list()}" name="taskGroup.id" value="${taskInstance?.taskGroup?.id}" ></g:select> |
|---|
| 136 | </td> |
|---|
| 137 | </tr> |
|---|
| 138 | |
|---|
| 139 | <tr class="prop"> |
|---|
| 140 | <td valign="top" class="name"> |
|---|
| 141 | <label for="taskType">Task Type:</label> |
|---|
| 142 | </td> |
|---|
| 143 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskType','errors')}"> |
|---|
| 144 | <g:select optionKey="id" from="${TaskType.list()}" name="taskType.id" value="${taskInstance?.taskType?.id}" ></g:select> |
|---|
| 145 | </td> |
|---|
| 146 | </tr> |
|---|
| 147 | |
|---|
| 148 | </tbody> |
|---|
| 149 | </table> |
|---|
| 150 | </div> |
|---|
| 151 | <div class="buttons"> |
|---|
| 152 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
|---|
| 153 | </div> |
|---|
| 154 | </g:form> |
|---|
| 155 | </div> |
|---|
| 156 | </body> |
|---|
| 157 | </html> |
|---|