[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>Create 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> |
---|
[84] | 13 | </div> |
---|
| 14 | <div class="body"> |
---|
| 15 | <h1>Create 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 action="save" method="post" > |
---|
| 25 | <div class="dialog"> |
---|
| 26 | <table> |
---|
| 27 | <tbody> |
---|
| 28 | |
---|
| 29 | <tr class="prop"> |
---|
| 30 | <td valign="top" class="name"> |
---|
| 31 | <label for="description">Description:</label> |
---|
| 32 | </td> |
---|
| 33 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'description','errors')}"> |
---|
[91] | 34 | <input type="text" style="width:450px" maxlength="75" id="description" name="description" value="${fieldValue(bean:taskInstance,field:'description')}"/> |
---|
[106] | 35 | <g:helpBalloon class="helpballoon" code="task.description" /> |
---|
[84] | 36 | </td> |
---|
| 37 | </tr> |
---|
| 38 | |
---|
| 39 | <tr class="prop"> |
---|
| 40 | <td valign="top" class="name"> |
---|
| 41 | <label for="comment">Comment:</label> |
---|
| 42 | </td> |
---|
| 43 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'comment','errors')}"> |
---|
| 44 | <textarea style="width:450px" rows="5" cols="40" name="comment">${fieldValue(bean:taskInstance, field:'comment')}</textarea> |
---|
[106] | 45 | <g:helpBalloon class="helpballoon" code="task.comment" /> |
---|
[84] | 46 | </td> |
---|
| 47 | </tr> |
---|
| 48 | |
---|
| 49 | <tr class="prop"> |
---|
| 50 | <td valign="top" class="name"> |
---|
| 51 | <label for="targetStartDate">Target Start Date:</label> |
---|
| 52 | </td> |
---|
| 53 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetStartDate','errors')}"> |
---|
| 54 | <g:datePicker name="targetStartDate" value="${taskInstance?.targetStartDate}" precision="day"></g:datePicker> |
---|
[106] | 55 | <g:helpBalloon class="helpballoon" code="task.targetStartDate" /> |
---|
[84] | 56 | </td> |
---|
| 57 | </tr> |
---|
| 58 | |
---|
| 59 | <tr class="prop"> |
---|
| 60 | <td valign="top" class="name"> |
---|
| 61 | <label for="targetCompletionDate">Target Completion Date:</label> |
---|
| 62 | </td> |
---|
| 63 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetCompletionDate','errors')}"> |
---|
| 64 | <g:datePicker name="targetCompletionDate" value="${taskInstance?.targetCompletionDate}" precision="day"></g:datePicker> |
---|
[106] | 65 | <g:helpBalloon class="helpballoon" code="task.targetCompletionDate" /> |
---|
[84] | 66 | </td> |
---|
| 67 | </tr> |
---|
| 68 | |
---|
| 69 | <tr class="prop"> |
---|
| 70 | <td valign="top" class="name"> |
---|
| 71 | <label for="leadPerson">Lead Person:</label> |
---|
| 72 | </td> |
---|
| 73 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'leadPerson','errors')}"> |
---|
| 74 | <g:select optionKey="id" from="${Person.list()}" name="leadPerson.id" value="${taskInstance?.leadPerson?.id}" ></g:select> |
---|
[106] | 75 | <g:helpBalloon code="task.leadPerson" /> |
---|
[84] | 76 | </td> |
---|
| 77 | </tr> |
---|
| 78 | |
---|
| 79 | <tr class="prop"> |
---|
| 80 | <td valign="top" class="name"> |
---|
| 81 | <label for="taskPriority">Task Priority:</label> |
---|
| 82 | </td> |
---|
| 83 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskPriority','errors')}"> |
---|
| 84 | <g:select optionKey="id" from="${TaskPriority.list()}" name="taskPriority.id" value="${taskInstance?.taskPriority?.id}" ></g:select> |
---|
| 85 | </td> |
---|
| 86 | </tr> |
---|
| 87 | |
---|
| 88 | <tr class="prop"> |
---|
| 89 | <td valign="top" class="name"> |
---|
| 90 | <label for="taskStatus">Task Status:</label> |
---|
| 91 | </td> |
---|
| 92 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskStatus','errors')}"> |
---|
| 93 | <g:select optionKey="id" from="${TaskStatus.list()}" name="taskStatus.id" value="${taskInstance?.taskStatus?.id}" ></g:select> |
---|
| 94 | </td> |
---|
| 95 | </tr> |
---|
| 96 | |
---|
| 97 | <tr class="prop"> |
---|
| 98 | <td valign="top" class="name"> |
---|
| 99 | <label for="isActive">Is Active:</label> |
---|
| 100 | </td> |
---|
| 101 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'isActive','errors')}"> |
---|
| 102 | <g:checkBox name="isActive" value="${taskInstance?.isActive}" ></g:checkBox> |
---|
| 103 | </td> |
---|
| 104 | </tr> |
---|
| 105 | |
---|
| 106 | <tr class="prop"> |
---|
| 107 | <td valign="top" class="name"> |
---|
| 108 | <label for="isApproved">Is Approved:</label> |
---|
| 109 | </td> |
---|
| 110 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'isApproved','errors')}"> |
---|
| 111 | <g:checkBox name="isApproved" value="${taskInstance?.isApproved}" ></g:checkBox> |
---|
| 112 | </td> |
---|
| 113 | </tr> |
---|
| 114 | |
---|
| 115 | <tr class="prop"> |
---|
| 116 | <td valign="top" class="name"> |
---|
| 117 | <label for="isScheduled">Is Scheduled:</label> |
---|
| 118 | </td> |
---|
| 119 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'isScheduled','errors')}"> |
---|
| 120 | <g:checkBox name="isScheduled" value="${taskInstance?.isScheduled}" ></g:checkBox> |
---|
| 121 | </td> |
---|
| 122 | </tr> |
---|
| 123 | |
---|
| 124 | <tr class="prop"> |
---|
| 125 | <td valign="top" class="name"> |
---|
| 126 | <label for="parentTask">Parent Task:</label> |
---|
| 127 | </td> |
---|
| 128 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'parentTask','errors')}"> |
---|
| 129 | <g:select optionKey="id" from="${Task.list()}" name="parentTask.id" value="${taskInstance?.parentTask?.id}" noSelection="['null':'']"></g:select> |
---|
| 130 | </td> |
---|
| 131 | </tr> |
---|
| 132 | |
---|
| 133 | <tr class="prop"> |
---|
| 134 | <td valign="top" class="name"> |
---|
| 135 | <label for="taskGroup">Task Group:</label> |
---|
| 136 | </td> |
---|
| 137 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskGroup','errors')}"> |
---|
| 138 | <g:select optionKey="id" from="${TaskGroup.list()}" name="taskGroup.id" value="${taskInstance?.taskGroup?.id}" ></g:select> |
---|
| 139 | </td> |
---|
| 140 | </tr> |
---|
| 141 | |
---|
| 142 | <tr class="prop"> |
---|
| 143 | <td valign="top" class="name"> |
---|
| 144 | <label for="taskType">Task Type:</label> |
---|
| 145 | </td> |
---|
| 146 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskType','errors')}"> |
---|
| 147 | <g:select optionKey="id" from="${TaskType.list()}" name="taskType.id" value="${taskInstance?.taskType?.id}" ></g:select> |
---|
| 148 | </td> |
---|
| 149 | </tr> |
---|
| 150 | |
---|
| 151 | </tbody> |
---|
| 152 | </table> |
---|
| 153 | </div> |
---|
| 154 | <div class="buttons"> |
---|
[85] | 155 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
[84] | 156 | </div> |
---|
| 157 | </g:form> |
---|
| 158 | </div> |
---|
| 159 | </body> |
---|
| 160 | </html> |
---|