[84] | 1 | <html> |
---|
| 2 | <head> |
---|
| 3 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
| 4 | <meta name="layout" content="main" /> |
---|
[139] | 5 | <title>Create Task</title> |
---|
| 6 | <nav:resources override="true"/> |
---|
[145] | 7 | <resource:dateChooser /> |
---|
[84] | 8 | </head> |
---|
[140] | 9 | <body onload="document.createTaskForm.description.focus();"> |
---|
[84] | 10 | <div class="nav"> |
---|
[139] | 11 | <nav:renderSubItems group="nav"/> |
---|
[84] | 12 | </div> |
---|
| 13 | <div class="body"> |
---|
[482] | 14 | <g:render template="/shared/messages" /> |
---|
[84] | 15 | <g:hasErrors bean="${taskInstance}"> |
---|
| 16 | <div class="errors"> |
---|
| 17 | <g:renderErrors bean="${taskInstance}" as="list" /> |
---|
| 18 | </div> |
---|
| 19 | </g:hasErrors> |
---|
[145] | 20 | |
---|
[313] | 21 | <g:form action="save" method="post" name="createTaskForm"> |
---|
[84] | 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')}"> |
---|
[134] | 31 | <input type="text" class="description" maxlength="75" id="description" name="description" value="${fieldValue(bean:taskInstance,field:'description')}"/> |
---|
[106] | 32 | <g:helpBalloon class="helpballoon" code="task.description" /> |
---|
[84] | 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')}"> |
---|
[134] | 41 | <textarea rows="5" cols="40" name="comment">${fieldValue(bean:taskInstance, field:'comment')}</textarea> |
---|
[106] | 42 | <g:helpBalloon class="helpballoon" code="task.comment" /> |
---|
[84] | 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')}"> |
---|
[214] | 51 | <richui:dateChooser name="targetStartDate" format="dd-MM-yyyy" value="${taskInstance.targetStartDate}" /> |
---|
[106] | 52 | <g:helpBalloon class="helpballoon" code="task.targetStartDate" /> |
---|
[84] | 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')}"> |
---|
[214] | 61 | <richui:dateChooser name="targetCompletionDate" format="dd-MM-yyyy" value="${taskInstance.targetCompletionDate}" /> |
---|
[106] | 62 | <g:helpBalloon class="helpballoon" code="task.targetCompletionDate" /> |
---|
[84] | 63 | </td> |
---|
[168] | 64 | </tr> |
---|
[84] | 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')}"> |
---|
[487] | 71 | <g:select optionKey="id" |
---|
| 72 | from="${Person.findAllByIsActive(true).sort { p1, p2 -> p1.firstName.compareToIgnoreCase(p2.firstName) }}" |
---|
| 73 | name="leadPerson.id" |
---|
| 74 | value="${taskInstance?.leadPerson?.id}" > |
---|
| 75 | </g:select> |
---|
[106] | 76 | <g:helpBalloon code="task.leadPerson" /> |
---|
[84] | 77 | </td> |
---|
[168] | 78 | </tr> |
---|
[84] | 79 | |
---|
| 80 | <tr class="prop"> |
---|
| 81 | <td valign="top" class="name"> |
---|
[168] | 82 | <label for="primaryAsset">Primary Asset:</label> |
---|
| 83 | </td> |
---|
| 84 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'primaryAsset','errors')}"> |
---|
[487] | 85 | <g:select optionKey="id" |
---|
| 86 | from="${Asset.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" |
---|
| 87 | name="primaryAsset.id" |
---|
| 88 | value="${taskInstance?.primaryAsset?.id}" |
---|
| 89 | noSelection="['null':'--None--']" > |
---|
| 90 | </g:select> |
---|
[168] | 91 | <g:helpBalloon code="task.primaryAsset" /> |
---|
| 92 | </td> |
---|
| 93 | </tr> |
---|
| 94 | |
---|
| 95 | <tr class="prop"> |
---|
| 96 | <td valign="top" class="name"> |
---|
| 97 | <label for="associatedAssets">Associated Assets:</label> |
---|
| 98 | </td> |
---|
| 99 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'associatedAssets','errors')}"> |
---|
| 100 | <g:select id="associatedAssets" name="associatedAssets" |
---|
[487] | 101 | from="${Asset.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" |
---|
[168] | 102 | size="5" multiple="yes" optionKey="id" |
---|
[487] | 103 | value="${taskInstance?.associatedAssets?.id}" noSelection="['':'--None--']" > |
---|
| 104 | </g:select> |
---|
[168] | 105 | <g:helpBalloon code="task.associatedAssets" /> |
---|
| 106 | </td> |
---|
| 107 | </tr> |
---|
| 108 | |
---|
| 109 | <tr class="prop"> |
---|
| 110 | <td valign="top" class="name"> |
---|
[84] | 111 | <label for="taskPriority">Task Priority:</label> |
---|
| 112 | </td> |
---|
| 113 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskPriority','errors')}"> |
---|
[487] | 114 | <g:select optionKey="id" |
---|
| 115 | from="${scheduledTaskPriorities}" |
---|
| 116 | name="taskPriority.id" |
---|
| 117 | value="${taskInstance?.taskPriority?.id}" > |
---|
| 118 | </g:select> |
---|
[84] | 119 | </td> |
---|
[181] | 120 | </tr> |
---|
[84] | 121 | |
---|
| 122 | <tr class="prop"> |
---|
| 123 | <td valign="top" class="name"> |
---|
| 124 | <label for="taskGroup">Task Group:</label> |
---|
| 125 | </td> |
---|
| 126 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskGroup','errors')}"> |
---|
[487] | 127 | <g:select optionKey="id" |
---|
| 128 | from="${TaskGroup.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" |
---|
| 129 | name="taskGroup.id" |
---|
[590] | 130 | value="${taskInstance?.taskGroup?.id}" noSelection="['':'--None--']" > |
---|
[487] | 131 | </g:select> |
---|
[84] | 132 | </td> |
---|
| 133 | </tr> |
---|
| 134 | |
---|
| 135 | <tr class="prop"> |
---|
| 136 | <td valign="top" class="name"> |
---|
| 137 | <label for="taskType">Task Type:</label> |
---|
| 138 | </td> |
---|
| 139 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskType','errors')}"> |
---|
[487] | 140 | <g:select optionKey="id" |
---|
| 141 | from="${scheduledTaskTypes}" |
---|
| 142 | name="taskType.id" |
---|
| 143 | value="${taskInstance?.taskType?.id}" > |
---|
| 144 | </g:select> |
---|
[84] | 145 | </td> |
---|
| 146 | </tr> |
---|
| 147 | |
---|
[592] | 148 | <tr class="prop"> |
---|
| 149 | <td valign="top" class="name"> |
---|
| 150 | <label for="isActive">Safety Requirement:</label> |
---|
| 151 | </td> |
---|
| 152 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'safetyRequirement','errors')}"> |
---|
| 153 | <g:checkBox name="safetyRequirement" value="${taskInstance?.safetyRequirement}" ></g:checkBox> |
---|
| 154 | <g:helpBalloon code="task.safetyRequirement" /> |
---|
| 155 | </td> |
---|
| 156 | </tr> |
---|
| 157 | |
---|
| 158 | <tr class="prop"> |
---|
| 159 | <td valign="top" class="name"> |
---|
| 160 | <label for="isActive">Mandatory/Regulatory:</label> |
---|
| 161 | </td> |
---|
| 162 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'mandatoryRegulatory','errors')}"> |
---|
| 163 | <g:checkBox name="mandatoryRegulatory" value="${taskInstance?.mandatoryRegulatory}" ></g:checkBox> |
---|
| 164 | <g:helpBalloon code="task.mandatoryRegulatory" /> |
---|
| 165 | </td> |
---|
| 166 | </tr> |
---|
| 167 | |
---|
| 168 | <tr class="prop"> |
---|
| 169 | <td valign="top" class="name"> |
---|
| 170 | <label for="isActive">Positive Fault:</label> |
---|
| 171 | </td> |
---|
| 172 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'positiveFault','errors')}"> |
---|
| 173 | <g:checkBox name="positiveFault" value="${taskInstance?.positiveFault}" ></g:checkBox> |
---|
| 174 | <g:helpBalloon code="task.positiveFault" /> |
---|
| 175 | </td> |
---|
| 176 | </tr> |
---|
| 177 | |
---|
[84] | 178 | </tbody> |
---|
| 179 | </table> |
---|
| 180 | </div> |
---|
| 181 | <div class="buttons"> |
---|
[85] | 182 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
[84] | 183 | </div> |
---|
| 184 | </g:form> |
---|
| 185 | </div> |
---|
| 186 | </body> |
---|
| 187 | </html> |
---|