[433] | 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 | <resource:dateChooser /> |
---|
| 8 | </head> |
---|
| 9 | <body onload="document.createTaskForm.description.focus();"> |
---|
| 10 | <div class="nav"> |
---|
| 11 | <nav:renderSubItems group="nav"/> |
---|
| 12 | </div> |
---|
| 13 | <div class="body"> |
---|
| 14 | <g:if test="${flash.message}"> |
---|
| 15 | <div class="message">${flash.message}</div> |
---|
| 16 | </g:if> |
---|
| 17 | <g:hasErrors bean="${taskInstance}"> |
---|
| 18 | <div class="errors"> |
---|
| 19 | <g:renderErrors bean="${taskInstance}" as="list" /> |
---|
| 20 | </div> |
---|
| 21 | </g:hasErrors> |
---|
| 22 | |
---|
| 23 | <g:form action="saveUnscheduled" method="post" name="createTaskForm"> |
---|
| 24 | <div class="dialog"> |
---|
| 25 | <table> |
---|
| 26 | <tbody> |
---|
| 27 | |
---|
| 28 | <tr class="prop"> |
---|
| 29 | <td valign="top" class="name"> |
---|
| 30 | <label for="description">Description:</label> |
---|
| 31 | </td> |
---|
| 32 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'description','errors')}"> |
---|
| 33 | <input type="text" class="description" maxlength="75" id="description" name="description" value="${fieldValue(bean:taskInstance,field:'description')}"/> |
---|
| 34 | <g:helpBalloon class="helpballoon" code="task.description" /> |
---|
| 35 | </td> |
---|
| 36 | </tr> |
---|
| 37 | |
---|
| 38 | <tr class="prop"> |
---|
| 39 | <td valign="top" class="name"> |
---|
| 40 | <label for="comment">Comment:</label> |
---|
| 41 | </td> |
---|
| 42 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'comment','errors')}"> |
---|
| 43 | <textarea rows="5" cols="40" name="comment">${fieldValue(bean:taskInstance, field:'comment')}</textarea> |
---|
| 44 | <g:helpBalloon class="helpballoon" code="task.comment" /> |
---|
| 45 | </td> |
---|
| 46 | </tr> |
---|
| 47 | |
---|
| 48 | <tr class="prop"> |
---|
| 49 | <td valign="top" class="name"> |
---|
| 50 | <label for="targetStartDate">Target Start Date:</label> |
---|
| 51 | </td> |
---|
| 52 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetStartDate','errors')}"> |
---|
| 53 | <richui:dateChooser name="targetStartDate" format="dd-MM-yyyy" value="${taskInstance.targetStartDate}" /> |
---|
| 54 | <g:helpBalloon class="helpballoon" code="task.targetStartDate" /> |
---|
| 55 | </td> |
---|
| 56 | </tr> |
---|
| 57 | |
---|
| 58 | <tr class="prop"> |
---|
| 59 | <td valign="top" class="name"> |
---|
| 60 | <label for="targetCompletionDate">Target Completion Date:</label> |
---|
| 61 | </td> |
---|
| 62 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetCompletionDate','errors')}"> |
---|
| 63 | <richui:dateChooser name="targetCompletionDate" format="dd-MM-yyyy" value="${taskInstance.targetCompletionDate}" /> |
---|
| 64 | <g:helpBalloon class="helpballoon" code="task.targetCompletionDate" /> |
---|
| 65 | </td> |
---|
| 66 | </tr> |
---|
| 67 | |
---|
| 68 | <tr class="prop"> |
---|
| 69 | <td valign="top" class="name"> |
---|
| 70 | <label for="leadPerson">Lead Person:</label> |
---|
| 71 | </td> |
---|
| 72 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'leadPerson','errors')}"> |
---|
[487] | 73 | <g:select optionKey="id" |
---|
| 74 | from="${Person.findAllByIsActive(true).sort { p1, p2 -> p1.firstName.compareToIgnoreCase(p2.firstName) }}" |
---|
| 75 | name="leadPerson.id" |
---|
| 76 | value="${taskInstance?.leadPerson?.id}" > |
---|
| 77 | </g:select> |
---|
[433] | 78 | <g:helpBalloon code="task.leadPerson" /> |
---|
| 79 | </td> |
---|
| 80 | </tr> |
---|
| 81 | |
---|
| 82 | <tr class="prop"> |
---|
| 83 | <td valign="top" class="name"> |
---|
| 84 | <label for="primaryAsset">Asset:</label> |
---|
| 85 | </td> |
---|
| 86 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'primaryAsset','errors')}"> |
---|
[487] | 87 | <g:select optionKey="id" |
---|
| 88 | from="${Asset.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" |
---|
| 89 | name="primaryAsset.id" |
---|
| 90 | value="${taskInstance?.primaryAsset?.id}" |
---|
[601] | 91 | noSelection="['null':/${g.message(code:'default.none.select.text')}/]"> |
---|
| 92 | </g:select> |
---|
[433] | 93 | <g:helpBalloon code="task.primaryAsset" /> |
---|
| 94 | </td> |
---|
| 95 | </tr> |
---|
| 96 | |
---|
| 97 | <tr class="prop"> |
---|
| 98 | <td valign="top" class="name"> |
---|
| 99 | <label for="taskPriority">Task Priority:</label> |
---|
| 100 | </td> |
---|
| 101 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskPriority','errors')}"> |
---|
[487] | 102 | <g:select optionKey="id" |
---|
| 103 | from="${unscheduledTaskPriorities}" |
---|
| 104 | name="taskPriority.id" |
---|
| 105 | value="${taskInstance?.taskPriority?.id}" > |
---|
| 106 | </g:select> |
---|
[433] | 107 | </td> |
---|
| 108 | </tr> |
---|
| 109 | |
---|
| 110 | <tr class="prop"> |
---|
| 111 | <td valign="top" class="name"> |
---|
| 112 | <label for="taskGroup">Task Group:</label> |
---|
| 113 | </td> |
---|
| 114 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskGroup','errors')}"> |
---|
[487] | 115 | <g:select optionKey="id" |
---|
| 116 | from="${TaskGroup.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" |
---|
| 117 | name="taskGroup.id" |
---|
[601] | 118 | value="${taskInstance?.taskGroup?.id}" |
---|
| 119 | noSelection="['null':/${g.message(code:'default.please.select.text')}/]"> |
---|
[487] | 120 | </g:select> |
---|
[433] | 121 | </td> |
---|
| 122 | </tr> |
---|
| 123 | |
---|
| 124 | <tr class="prop"> |
---|
| 125 | <td valign="top" class="name"> |
---|
| 126 | <label for="taskType">Task Type:</label> |
---|
| 127 | </td> |
---|
| 128 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskType','errors')}"> |
---|
| 129 | ${taskInstance.taskType.encodeAsHTML()} |
---|
| 130 | </td> |
---|
| 131 | </tr> |
---|
| 132 | |
---|
[592] | 133 | <tr class="prop"> |
---|
| 134 | <td valign="top" class="name"> |
---|
[728] | 135 | <label for="safetyRequirement">Safety Requirement:</label> |
---|
[592] | 136 | </td> |
---|
| 137 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'safetyRequirement','errors')}"> |
---|
| 138 | <g:checkBox name="safetyRequirement" value="${taskInstance?.safetyRequirement}" ></g:checkBox> |
---|
| 139 | <g:helpBalloon code="task.safetyRequirement" /> |
---|
| 140 | </td> |
---|
| 141 | </tr> |
---|
| 142 | |
---|
| 143 | <tr class="prop"> |
---|
| 144 | <td valign="top" class="name"> |
---|
[728] | 145 | <label for="regulatoryRequirement">Regulatory Requirement:</label> |
---|
[592] | 146 | </td> |
---|
[728] | 147 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'regulatoryRequirement','errors')}"> |
---|
| 148 | <g:checkBox name="regulatoryRequirement" value="${taskInstance?.regulatoryRequirement}" ></g:checkBox> |
---|
| 149 | <g:helpBalloon code="task.regulatoryRequirement" /> |
---|
[592] | 150 | </td> |
---|
| 151 | </tr> |
---|
| 152 | |
---|
[728] | 153 | <tr class="prop"> |
---|
| 154 | <td valign="top" class="name"> |
---|
| 155 | <label for="mandatoryRequirement">Mandatory Requirement:</label> |
---|
| 156 | </td> |
---|
| 157 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'mandatoryRequirement','errors')}"> |
---|
| 158 | <g:checkBox name="mandatoryRequirement" value="${taskInstance?.mandatoryRequirement}" ></g:checkBox> |
---|
| 159 | <g:helpBalloon code="task.mandatoryRequirement" /> |
---|
| 160 | </td> |
---|
| 161 | </tr> |
---|
| 162 | |
---|
[433] | 163 | </tbody> |
---|
| 164 | </table> |
---|
| 165 | </div> |
---|
| 166 | <div class="buttons"> |
---|
| 167 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
| 168 | </div> |
---|
| 169 | </g:form> |
---|
| 170 | </div> |
---|
| 171 | </body> |
---|
| 172 | </html> |
---|