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:render template="/shared/messages" /> |
---|
15 | <g:hasErrors bean="${taskInstance}"> |
---|
16 | <div class="errors"> |
---|
17 | <g:renderErrors bean="${taskInstance}" as="list" /> |
---|
18 | </div> |
---|
19 | </g:hasErrors> |
---|
20 | |
---|
21 | <g:form action="save" method="post" name="createTaskForm"> |
---|
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')}"> |
---|
31 | <input type="text" class="description" maxlength="75" id="description" name="description" value="${fieldValue(bean:taskInstance,field:'description')}"/> |
---|
32 | <g:helpBalloon class="helpballoon" code="task.description" /> |
---|
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')}"> |
---|
41 | <textarea rows="5" cols="40" name="comment">${fieldValue(bean:taskInstance, field:'comment')}</textarea> |
---|
42 | <g:helpBalloon class="helpballoon" code="task.comment" /> |
---|
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')}"> |
---|
51 | <richui:dateChooser name="targetStartDate" format="dd-MM-yyyy" value="${taskInstance.targetStartDate}" /> |
---|
52 | <g:helpBalloon class="helpballoon" code="task.targetStartDate" /> |
---|
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')}"> |
---|
61 | <richui:dateChooser name="targetCompletionDate" format="dd-MM-yyyy" value="${taskInstance.targetCompletionDate}" /> |
---|
62 | <g:helpBalloon class="helpballoon" code="task.targetCompletionDate" /> |
---|
63 | </td> |
---|
64 | </tr> |
---|
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')}"> |
---|
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> |
---|
76 | <g:helpBalloon code="task.leadPerson" /> |
---|
77 | </td> |
---|
78 | </tr> |
---|
79 | |
---|
80 | <tr class="prop"> |
---|
81 | <td valign="top" class="name"> |
---|
82 | <label for="primaryAsset">Primary Asset:</label> |
---|
83 | </td> |
---|
84 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'primaryAsset','errors')}"> |
---|
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> |
---|
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" |
---|
101 | from="${Asset.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" |
---|
102 | size="5" multiple="yes" optionKey="id" |
---|
103 | value="${taskInstance?.associatedAssets?.id}" noSelection="['':'--None--']" > |
---|
104 | </g:select> |
---|
105 | <g:helpBalloon code="task.associatedAssets" /> |
---|
106 | </td> |
---|
107 | </tr> |
---|
108 | |
---|
109 | <tr class="prop"> |
---|
110 | <td valign="top" class="name"> |
---|
111 | <label for="taskPriority">Task Priority:</label> |
---|
112 | </td> |
---|
113 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskPriority','errors')}"> |
---|
114 | <g:select optionKey="id" |
---|
115 | from="${scheduledTaskPriorities}" |
---|
116 | name="taskPriority.id" |
---|
117 | value="${taskInstance?.taskPriority?.id}" > |
---|
118 | </g:select> |
---|
119 | </td> |
---|
120 | </tr> |
---|
121 | |
---|
122 | <tr class="prop"> |
---|
123 | <td valign="top" class="name"> |
---|
124 | <label for="scheduled">Scheduled:</label> |
---|
125 | </td> |
---|
126 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'scheduled','errors')}"> |
---|
127 | <g:checkBox name="scheduled" value="${taskInstance?.scheduled}" ></g:checkBox> |
---|
128 | </td> |
---|
129 | </tr> |
---|
130 | |
---|
131 | <tr class="prop"> |
---|
132 | <td valign="top" class="name"> |
---|
133 | <label for="taskGroup">Task Group:</label> |
---|
134 | </td> |
---|
135 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskGroup','errors')}"> |
---|
136 | <g:select optionKey="id" |
---|
137 | from="${TaskGroup.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" |
---|
138 | name="taskGroup.id" |
---|
139 | value="${taskInstance?.taskGroup?.id}" > |
---|
140 | </g:select> |
---|
141 | </td> |
---|
142 | </tr> |
---|
143 | |
---|
144 | <tr class="prop"> |
---|
145 | <td valign="top" class="name"> |
---|
146 | <label for="taskType">Task Type:</label> |
---|
147 | </td> |
---|
148 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskType','errors')}"> |
---|
149 | <g:select optionKey="id" |
---|
150 | from="${scheduledTaskTypes}" |
---|
151 | name="taskType.id" |
---|
152 | value="${taskInstance?.taskType?.id}" > |
---|
153 | </g:select> |
---|
154 | </td> |
---|
155 | </tr> |
---|
156 | |
---|
157 | </tbody> |
---|
158 | </table> |
---|
159 | </div> |
---|
160 | <div class="buttons"> |
---|
161 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
162 | </div> |
---|
163 | </g:form> |
---|
164 | </div> |
---|
165 | </body> |
---|
166 | </html> |
---|