[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"> |
---|
[872] | 28 | <label for="primaryAsset">Asset:</label> |
---|
| 29 | </td> |
---|
| 30 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'primaryAsset','errors')}"> |
---|
| 31 | <g:select optionKey="id" |
---|
| 32 | from="${Asset.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" |
---|
| 33 | name="primaryAsset.id" |
---|
| 34 | value="${taskInstance?.primaryAsset?.id}" |
---|
| 35 | noSelection="['null':/${g.message(code:'default.none.select.text')}/]"> |
---|
| 36 | </g:select> |
---|
| 37 | <g:helpBalloon code="task.primaryAsset" /> |
---|
| 38 | </td> |
---|
| 39 | </tr> |
---|
| 40 | |
---|
| 41 | <tr class="prop"> |
---|
| 42 | <td valign="top" class="name"> |
---|
[84] | 43 | <label for="description">Description:</label> |
---|
| 44 | </td> |
---|
| 45 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'description','errors')}"> |
---|
[134] | 46 | <input type="text" class="description" maxlength="75" id="description" name="description" value="${fieldValue(bean:taskInstance,field:'description')}"/> |
---|
[106] | 47 | <g:helpBalloon class="helpballoon" code="task.description" /> |
---|
[84] | 48 | </td> |
---|
| 49 | </tr> |
---|
| 50 | |
---|
| 51 | <tr class="prop"> |
---|
| 52 | <td valign="top" class="name"> |
---|
| 53 | <label for="comment">Comment:</label> |
---|
| 54 | </td> |
---|
| 55 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'comment','errors')}"> |
---|
[134] | 56 | <textarea rows="5" cols="40" name="comment">${fieldValue(bean:taskInstance, field:'comment')}</textarea> |
---|
[106] | 57 | <g:helpBalloon class="helpballoon" code="task.comment" /> |
---|
[84] | 58 | </td> |
---|
| 59 | </tr> |
---|
| 60 | |
---|
| 61 | <tr class="prop"> |
---|
| 62 | <td valign="top" class="name"> |
---|
| 63 | <label for="targetStartDate">Target Start Date:</label> |
---|
| 64 | </td> |
---|
| 65 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetStartDate','errors')}"> |
---|
[214] | 66 | <richui:dateChooser name="targetStartDate" format="dd-MM-yyyy" value="${taskInstance.targetStartDate}" /> |
---|
[106] | 67 | <g:helpBalloon class="helpballoon" code="task.targetStartDate" /> |
---|
[84] | 68 | </td> |
---|
| 69 | </tr> |
---|
| 70 | |
---|
| 71 | <tr class="prop"> |
---|
| 72 | <td valign="top" class="name"> |
---|
| 73 | <label for="targetCompletionDate">Target Completion Date:</label> |
---|
| 74 | </td> |
---|
| 75 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetCompletionDate','errors')}"> |
---|
[214] | 76 | <richui:dateChooser name="targetCompletionDate" format="dd-MM-yyyy" value="${taskInstance.targetCompletionDate}" /> |
---|
[106] | 77 | <g:helpBalloon class="helpballoon" code="task.targetCompletionDate" /> |
---|
[84] | 78 | </td> |
---|
[168] | 79 | </tr> |
---|
[84] | 80 | |
---|
| 81 | <tr class="prop"> |
---|
| 82 | <td valign="top" class="name"> |
---|
| 83 | <label for="leadPerson">Lead Person:</label> |
---|
| 84 | </td> |
---|
| 85 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'leadPerson','errors')}"> |
---|
[487] | 86 | <g:select optionKey="id" |
---|
| 87 | from="${Person.findAllByIsActive(true).sort { p1, p2 -> p1.firstName.compareToIgnoreCase(p2.firstName) }}" |
---|
| 88 | name="leadPerson.id" |
---|
| 89 | value="${taskInstance?.leadPerson?.id}" > |
---|
| 90 | </g:select> |
---|
[106] | 91 | <g:helpBalloon code="task.leadPerson" /> |
---|
[84] | 92 | </td> |
---|
[168] | 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" |
---|
[601] | 103 | value="${taskInstance?.associatedAssets?.id}" |
---|
| 104 | noSelection="['':/${g.message(code:'default.none.select.text')}/]"> |
---|
[487] | 105 | </g:select> |
---|
[168] | 106 | <g:helpBalloon code="task.associatedAssets" /> |
---|
| 107 | </td> |
---|
| 108 | </tr> |
---|
| 109 | |
---|
| 110 | <tr class="prop"> |
---|
| 111 | <td valign="top" class="name"> |
---|
[84] | 112 | <label for="taskPriority">Task Priority:</label> |
---|
| 113 | </td> |
---|
| 114 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskPriority','errors')}"> |
---|
[487] | 115 | <g:select optionKey="id" |
---|
| 116 | from="${scheduledTaskPriorities}" |
---|
| 117 | name="taskPriority.id" |
---|
| 118 | value="${taskInstance?.taskPriority?.id}" > |
---|
| 119 | </g:select> |
---|
[84] | 120 | </td> |
---|
[181] | 121 | </tr> |
---|
[84] | 122 | |
---|
| 123 | <tr class="prop"> |
---|
| 124 | <td valign="top" class="name"> |
---|
| 125 | <label for="taskGroup">Task Group:</label> |
---|
| 126 | </td> |
---|
| 127 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskGroup','errors')}"> |
---|
[487] | 128 | <g:select optionKey="id" |
---|
| 129 | from="${TaskGroup.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" |
---|
| 130 | name="taskGroup.id" |
---|
[601] | 131 | value="${taskInstance?.taskGroup?.id}" |
---|
| 132 | noSelection="['null':/${g.message(code:'default.please.select.text')}/]"> |
---|
[487] | 133 | </g:select> |
---|
[84] | 134 | </td> |
---|
| 135 | </tr> |
---|
| 136 | |
---|
| 137 | <tr class="prop"> |
---|
| 138 | <td valign="top" class="name"> |
---|
| 139 | <label for="taskType">Task Type:</label> |
---|
| 140 | </td> |
---|
| 141 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskType','errors')}"> |
---|
[487] | 142 | <g:select optionKey="id" |
---|
| 143 | from="${scheduledTaskTypes}" |
---|
| 144 | name="taskType.id" |
---|
[601] | 145 | value="${taskInstance?.taskType?.id}" |
---|
| 146 | noSelection="['null':/${g.message(code:'default.please.select.text')}/]"> |
---|
[487] | 147 | </g:select> |
---|
[84] | 148 | </td> |
---|
| 149 | </tr> |
---|
| 150 | |
---|
[592] | 151 | <tr class="prop"> |
---|
| 152 | <td valign="top" class="name"> |
---|
[728] | 153 | <label for="safetyRequirement">Safety:</label> |
---|
[592] | 154 | </td> |
---|
| 155 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'safetyRequirement','errors')}"> |
---|
| 156 | <g:checkBox name="safetyRequirement" value="${taskInstance?.safetyRequirement}" ></g:checkBox> |
---|
| 157 | <g:helpBalloon code="task.safetyRequirement" /> |
---|
| 158 | </td> |
---|
| 159 | </tr> |
---|
| 160 | |
---|
| 161 | <tr class="prop"> |
---|
| 162 | <td valign="top" class="name"> |
---|
[728] | 163 | <label for="regulatoryRequirement">Regulatory:</label> |
---|
[592] | 164 | </td> |
---|
[728] | 165 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'regulatoryRequirement','errors')}"> |
---|
| 166 | <g:checkBox name="regulatoryRequirement" value="${taskInstance?.regulatoryRequirement}" ></g:checkBox> |
---|
| 167 | <g:helpBalloon code="task.regulatoryRequirement" /> |
---|
[592] | 168 | </td> |
---|
| 169 | </tr> |
---|
| 170 | |
---|
| 171 | <tr class="prop"> |
---|
| 172 | <td valign="top" class="name"> |
---|
[728] | 173 | <label for="mandatoryRequirement">Mandatory:</label> |
---|
[592] | 174 | </td> |
---|
[728] | 175 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'mandatoryRequirement','errors')}"> |
---|
| 176 | <g:checkBox name="mandatoryRequirement" value="${taskInstance?.mandatoryRequirement}" ></g:checkBox> |
---|
| 177 | <g:helpBalloon code="task.mandatoryRequirement" /> |
---|
| 178 | </td> |
---|
| 179 | </tr> |
---|
| 180 | |
---|
| 181 | <tr class="prop"> |
---|
| 182 | <td valign="top" class="name"> |
---|
| 183 | <label for="positiveFault">Positive Fault:</label> |
---|
| 184 | </td> |
---|
[592] | 185 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'positiveFault','errors')}"> |
---|
| 186 | <g:checkBox name="positiveFault" value="${taskInstance?.positiveFault}" ></g:checkBox> |
---|
| 187 | <g:helpBalloon code="task.positiveFault" /> |
---|
| 188 | </td> |
---|
| 189 | </tr> |
---|
| 190 | |
---|
[84] | 191 | </tbody> |
---|
| 192 | </table> |
---|
| 193 | </div> |
---|
| 194 | <div class="buttons"> |
---|
[85] | 195 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
[84] | 196 | </div> |
---|
| 197 | </g:form> |
---|
| 198 | </div> |
---|
| 199 | </body> |
---|
| 200 | </html> |
---|