| [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" /> | 
|---|
| [178] | 7 |         <title>Create Task</title> | 
|---|
| [66] | 8 |     </head> | 
|---|
 | 9 |     <body> | 
|---|
 | 10 |         <div class="nav"> | 
|---|
 | 11 |             <span class="menuButton"><g:link class="list" action="list">Task List</g:link></span> | 
|---|
 | 12 |         </div> | 
|---|
 | 13 |         <div class="body"> | 
|---|
 | 14 |             <h1>Create Task</h1> | 
|---|
 | 15 |             <g:if test="${flash.message}"> | 
|---|
 | 16 |             <div class="message">${flash.message}</div> | 
|---|
 | 17 |             </g:if> | 
|---|
 | 18 |             <g:hasErrors bean="${taskInstance}"> | 
|---|
 | 19 |             <div class="errors"> | 
|---|
 | 20 |                 <g:renderErrors bean="${taskInstance}" as="list" /> | 
|---|
 | 21 |             </div> | 
|---|
 | 22 |             </g:hasErrors> | 
|---|
 | 23 |             <g:form action="save" method="post" > | 
|---|
 | 24 |                 <div class="dialog"> | 
|---|
 | 25 |                     <table> | 
|---|
 | 26 |                         <tbody> | 
|---|
 | 27 |                          | 
|---|
 | 28 |                             <tr class="prop"> | 
|---|
 | 29 |                                 <td valign="top" class="name"> | 
|---|
| [131] | 30 |                                     <label for="description">Description:</label> | 
|---|
 | 31 |                                 </td> | 
|---|
 | 32 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'description','errors')}"> | 
|---|
 | 33 |                                     <input type="text" maxlength="75" id="description" name="description" value="${fieldValue(bean:taskInstance,field:'description')}"/> | 
|---|
 | 34 |                                 </td> | 
|---|
 | 35 |                             </tr>  | 
|---|
 | 36 |                          | 
|---|
 | 37 |                             <tr class="prop"> | 
|---|
 | 38 |                                 <td valign="top" class="name"> | 
|---|
 | 39 |                                     <label for="comment">Comment:</label> | 
|---|
 | 40 |                                 </td> | 
|---|
 | 41 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'comment','errors')}"> | 
|---|
 | 42 |                                     <input type="text" id="comment" name="comment" value="${fieldValue(bean:taskInstance,field:'comment')}"/> | 
|---|
 | 43 |                                 </td> | 
|---|
 | 44 |                             </tr>  | 
|---|
 | 45 |                          | 
|---|
 | 46 |                             <tr class="prop"> | 
|---|
 | 47 |                                 <td valign="top" class="name"> | 
|---|
| [66] | 48 |                                     <label for="targetStartDate">Target Start Date:</label> | 
|---|
 | 49 |                                 </td> | 
|---|
 | 50 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetStartDate','errors')}"> | 
|---|
| [178] | 51 |                                     <g:datePicker name="targetStartDate" value="${taskInstance?.targetStartDate}" precision="minute" ></g:datePicker> | 
|---|
| [66] | 52 |                                 </td> | 
|---|
 | 53 |                             </tr>  | 
|---|
 | 54 |                          | 
|---|
 | 55 |                             <tr class="prop"> | 
|---|
 | 56 |                                 <td valign="top" class="name"> | 
|---|
| [131] | 57 |                                     <label for="targetCompletionDate">Target Completion Date:</label> | 
|---|
| [66] | 58 |                                 </td> | 
|---|
| [131] | 59 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetCompletionDate','errors')}"> | 
|---|
| [178] | 60 |                                     <g:datePicker name="targetCompletionDate" value="${taskInstance?.targetCompletionDate}" precision="minute" ></g:datePicker> | 
|---|
| [66] | 61 |                                 </td> | 
|---|
 | 62 |                             </tr>  | 
|---|
 | 63 |                          | 
|---|
 | 64 |                             <tr class="prop"> | 
|---|
 | 65 |                                 <td valign="top" class="name"> | 
|---|
 | 66 |                                     <label for="leadPerson">Lead Person:</label> | 
|---|
 | 67 |                                 </td> | 
|---|
 | 68 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'leadPerson','errors')}"> | 
|---|
 | 69 |                                     <g:select optionKey="id" from="${Person.list()}" name="leadPerson.id" value="${taskInstance?.leadPerson?.id}" ></g:select> | 
|---|
 | 70 |                                 </td> | 
|---|
 | 71 |                             </tr>  | 
|---|
 | 72 |                          | 
|---|
 | 73 |                             <tr class="prop"> | 
|---|
 | 74 |                                 <td valign="top" class="name"> | 
|---|
| [70] | 75 |                                     <label for="taskPriority">Task Priority:</label> | 
|---|
 | 76 |                                 </td> | 
|---|
 | 77 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskPriority','errors')}"> | 
|---|
 | 78 |                                     <g:select optionKey="id" from="${TaskPriority.list()}" name="taskPriority.id" value="${taskInstance?.taskPriority?.id}" ></g:select> | 
|---|
 | 79 |                                 </td> | 
|---|
 | 80 |                             </tr>  | 
|---|
 | 81 |                          | 
|---|
 | 82 |                             <tr class="prop"> | 
|---|
 | 83 |                                 <td valign="top" class="name"> | 
|---|
| [66] | 84 |                                     <label for="taskStatus">Task Status:</label> | 
|---|
 | 85 |                                 </td> | 
|---|
 | 86 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskStatus','errors')}"> | 
|---|
 | 87 |                                     <g:select optionKey="id" from="${TaskStatus.list()}" name="taskStatus.id" value="${taskInstance?.taskStatus?.id}" ></g:select> | 
|---|
 | 88 |                                 </td> | 
|---|
 | 89 |                             </tr>  | 
|---|
 | 90 |                          | 
|---|
 | 91 |                             <tr class="prop"> | 
|---|
 | 92 |                                 <td valign="top" class="name"> | 
|---|
| [69] | 93 |                                     <label for="parentTask">Parent Task:</label> | 
|---|
 | 94 |                                 </td> | 
|---|
 | 95 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'parentTask','errors')}"> | 
|---|
 | 96 |                                     <g:select optionKey="id" from="${Task.list()}" name="parentTask.id" value="${taskInstance?.parentTask?.id}" noSelection="['null':'']"></g:select> | 
|---|
 | 97 |                                 </td> | 
|---|
 | 98 |                             </tr>  | 
|---|
 | 99 |                          | 
|---|
 | 100 |                             <tr class="prop"> | 
|---|
 | 101 |                                 <td valign="top" class="name"> | 
|---|
| [131] | 102 |                                     <label for="primaryAsset">Primary Asset:</label> | 
|---|
| [66] | 103 |                                 </td> | 
|---|
| [131] | 104 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'primaryAsset','errors')}"> | 
|---|
 | 105 |                                     <g:select optionKey="id" from="${Asset.list()}" name="primaryAsset.id" value="${taskInstance?.primaryAsset?.id}" noSelection="['null':'']"></g:select> | 
|---|
| [66] | 106 |                                 </td> | 
|---|
 | 107 |                             </tr>  | 
|---|
 | 108 |                          | 
|---|
 | 109 |                             <tr class="prop"> | 
|---|
 | 110 |                                 <td valign="top" class="name"> | 
|---|
| [131] | 111 |                                     <label for="taskRecurringSchedule">Task Recurring Schedule:</label> | 
|---|
| [122] | 112 |                                 </td> | 
|---|
| [131] | 113 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskRecurringSchedule','errors')}"> | 
|---|
 | 114 |                                     <g:select optionKey="id" from="${TaskRecurringSchedule.list()}" name="taskRecurringSchedule.id" value="${taskInstance?.taskRecurringSchedule?.id}" noSelection="['null':'']"></g:select> | 
|---|
| [122] | 115 |                                 </td> | 
|---|
 | 116 |                             </tr>  | 
|---|
 | 117 |                          | 
|---|
 | 118 |                             <tr class="prop"> | 
|---|
 | 119 |                                 <td valign="top" class="name"> | 
|---|
| [131] | 120 |                                     <label for="taskProcedure">Task Procedure:</label> | 
|---|
 | 121 |                                 </td> | 
|---|
 | 122 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskProcedure','errors')}"> | 
|---|
 | 123 |                                     <g:select optionKey="id" from="${TaskProcedure.list()}" name="taskProcedure.id" value="${taskInstance?.taskProcedure?.id}" noSelection="['null':'']"></g:select> | 
|---|
 | 124 |                                 </td> | 
|---|
 | 125 |                             </tr>  | 
|---|
 | 126 |                          | 
|---|
 | 127 |                             <tr class="prop"> | 
|---|
 | 128 |                                 <td valign="top" class="name"> | 
|---|
| [181] | 129 |                                     <label for="approved">Approved:</label> | 
|---|
| [66] | 130 |                                 </td> | 
|---|
| [181] | 131 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'approved','errors')}"> | 
|---|
 | 132 |                                     <g:checkBox name="approved" value="${taskInstance?.approved}" ></g:checkBox> | 
|---|
| [66] | 133 |                                 </td> | 
|---|
 | 134 |                             </tr>  | 
|---|
 | 135 |                          | 
|---|
 | 136 |                             <tr class="prop"> | 
|---|
 | 137 |                                 <td valign="top" class="name"> | 
|---|
| [181] | 138 |                                     <label for="scheduled">Scheduled:</label> | 
|---|
| [66] | 139 |                                 </td> | 
|---|
| [181] | 140 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'scheduled','errors')}"> | 
|---|
 | 141 |                                     <g:checkBox name="scheduled" value="${taskInstance?.scheduled}" ></g:checkBox> | 
|---|
| [66] | 142 |                                 </td> | 
|---|
 | 143 |                             </tr>  | 
|---|
 | 144 |                          | 
|---|
 | 145 |                             <tr class="prop"> | 
|---|
 | 146 |                                 <td valign="top" class="name"> | 
|---|
 | 147 |                                     <label for="taskGroup">Task Group:</label> | 
|---|
 | 148 |                                 </td> | 
|---|
 | 149 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskGroup','errors')}"> | 
|---|
 | 150 |                                     <g:select optionKey="id" from="${TaskGroup.list()}" name="taskGroup.id" value="${taskInstance?.taskGroup?.id}" ></g:select> | 
|---|
 | 151 |                                 </td> | 
|---|
 | 152 |                             </tr>  | 
|---|
 | 153 |                          | 
|---|
| [70] | 154 |                             <tr class="prop"> | 
|---|
 | 155 |                                 <td valign="top" class="name"> | 
|---|
 | 156 |                                     <label for="taskType">Task Type:</label> | 
|---|
 | 157 |                                 </td> | 
|---|
 | 158 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskType','errors')}"> | 
|---|
 | 159 |                                     <g:select optionKey="id" from="${TaskType.list()}" name="taskType.id" value="${taskInstance?.taskType?.id}" ></g:select> | 
|---|
 | 160 |                                 </td> | 
|---|
 | 161 |                             </tr>  | 
|---|
 | 162 |                          | 
|---|
| [181] | 163 |                             <tr class="prop"> | 
|---|
 | 164 |                                 <td valign="top" class="name"> | 
|---|
 | 165 |                                     <label for="trash">Trash:</label> | 
|---|
 | 166 |                                 </td> | 
|---|
 | 167 |                                 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'trash','errors')}"> | 
|---|
 | 168 |                                     <g:checkBox name="trash" value="${taskInstance?.trash}" ></g:checkBox> | 
|---|
 | 169 |                                 </td> | 
|---|
 | 170 |                             </tr>  | 
|---|
 | 171 |                          | 
|---|
| [66] | 172 |                         </tbody> | 
|---|
 | 173 |                     </table> | 
|---|
 | 174 |                 </div> | 
|---|
 | 175 |                 <div class="buttons"> | 
|---|
 | 176 |                     <span class="button"><input class="save" type="submit" value="Create" /></span> | 
|---|
 | 177 |                 </div> | 
|---|
 | 178 |             </g:form> | 
|---|
 | 179 |         </div> | 
|---|
 | 180 |     </body> | 
|---|
 | 181 | </html> | 
|---|