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')}"> |
---|
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> |
---|
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')}"> |
---|
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}" |
---|
91 | noSelection="['null':'--None--']"></g:select> |
---|
92 | <g:helpBalloon code="task.primaryAsset" /> |
---|
93 | </td> |
---|
94 | </tr> |
---|
95 | |
---|
96 | <tr class="prop"> |
---|
97 | <td valign="top" class="name"> |
---|
98 | <label for="taskPriority">Task Priority:</label> |
---|
99 | </td> |
---|
100 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskPriority','errors')}"> |
---|
101 | <g:select optionKey="id" |
---|
102 | from="${unscheduledTaskPriorities}" |
---|
103 | name="taskPriority.id" |
---|
104 | value="${taskInstance?.taskPriority?.id}" > |
---|
105 | </g:select> |
---|
106 | </td> |
---|
107 | </tr> |
---|
108 | |
---|
109 | <tr class="prop"> |
---|
110 | <td valign="top" class="name"> |
---|
111 | <label for="taskGroup">Task Group:</label> |
---|
112 | </td> |
---|
113 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskGroup','errors')}"> |
---|
114 | <g:select optionKey="id" |
---|
115 | from="${TaskGroup.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" |
---|
116 | name="taskGroup.id" |
---|
117 | value="${taskInstance?.taskGroup?.id}" > |
---|
118 | </g:select> |
---|
119 | </td> |
---|
120 | </tr> |
---|
121 | |
---|
122 | <tr class="prop"> |
---|
123 | <td valign="top" class="name"> |
---|
124 | <label for="taskType">Task Type:</label> |
---|
125 | </td> |
---|
126 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskType','errors')}"> |
---|
127 | ${taskInstance.taskType.encodeAsHTML()} |
---|
128 | </td> |
---|
129 | </tr> |
---|
130 | |
---|
131 | </tbody> |
---|
132 | </table> |
---|
133 | </div> |
---|
134 | <div class="buttons"> |
---|
135 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
136 | </div> |
---|
137 | </g:form> |
---|
138 | </div> |
---|
139 | </body> |
---|
140 | </html> |
---|