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 id='createTaskForm' name='createTaskForm' action="save" method="post" > |
---|
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="${new Date()}" /> |
---|
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="${new Date()}" /> |
---|
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" from="${Person.list()}" name="leadPerson.id" value="${taskInstance?.leadPerson?.id}" ></g:select> |
---|
74 | <g:helpBalloon code="task.leadPerson" /> |
---|
75 | </td> |
---|
76 | </tr> |
---|
77 | |
---|
78 | <tr class="prop"> |
---|
79 | <td valign="top" class="name"> |
---|
80 | <label for="taskPriority">Task Priority:</label> |
---|
81 | </td> |
---|
82 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskPriority','errors')}"> |
---|
83 | <g:select optionKey="id" from="${TaskPriority.list()}" name="taskPriority.id" value="${taskInstance?.taskPriority?.id}" ></g:select> |
---|
84 | </td> |
---|
85 | </tr> |
---|
86 | |
---|
87 | <tr class="prop"> |
---|
88 | <td valign="top" class="name"> |
---|
89 | <label for="taskStatus">Task Status:</label> |
---|
90 | </td> |
---|
91 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskStatus','errors')}"> |
---|
92 | <g:select optionKey="id" from="${TaskStatus.list()}" name="taskStatus.id" value="${taskInstance?.taskStatus?.id}" ></g:select> |
---|
93 | </td> |
---|
94 | </tr> |
---|
95 | |
---|
96 | <tr class="prop"> |
---|
97 | <td valign="top" class="name"> |
---|
98 | <label for="isActive">Is Active:</label> |
---|
99 | </td> |
---|
100 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'isActive','errors')}"> |
---|
101 | <g:checkBox name="isActive" value="${taskInstance?.isActive}" ></g:checkBox> |
---|
102 | </td> |
---|
103 | </tr> |
---|
104 | |
---|
105 | <tr class="prop"> |
---|
106 | <td valign="top" class="name"> |
---|
107 | <label for="isApproved">Is Approved:</label> |
---|
108 | </td> |
---|
109 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'isApproved','errors')}"> |
---|
110 | <g:checkBox name="isApproved" value="${taskInstance?.isApproved}" ></g:checkBox> |
---|
111 | </td> |
---|
112 | </tr> |
---|
113 | |
---|
114 | <tr class="prop"> |
---|
115 | <td valign="top" class="name"> |
---|
116 | <label for="isScheduled">Is Scheduled:</label> |
---|
117 | </td> |
---|
118 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'isScheduled','errors')}"> |
---|
119 | <g:checkBox name="isScheduled" value="${taskInstance?.isScheduled}" ></g:checkBox> |
---|
120 | </td> |
---|
121 | </tr> |
---|
122 | |
---|
123 | <tr class="prop"> |
---|
124 | <td valign="top" class="name"> |
---|
125 | <label for="parentTask">Parent Task:</label> |
---|
126 | </td> |
---|
127 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'parentTask','errors')}"> |
---|
128 | <g:select optionKey="id" from="${Task.list()}" name="parentTask.id" value="${taskInstance?.parentTask?.id}" noSelection="['null':'']"></g:select> |
---|
129 | </td> |
---|
130 | </tr> |
---|
131 | |
---|
132 | <tr class="prop"> |
---|
133 | <td valign="top" class="name"> |
---|
134 | <label for="taskGroup">Task Group:</label> |
---|
135 | </td> |
---|
136 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskGroup','errors')}"> |
---|
137 | <g:select optionKey="id" from="${TaskGroup.list()}" name="taskGroup.id" value="${taskInstance?.taskGroup?.id}" ></g:select> |
---|
138 | </td> |
---|
139 | </tr> |
---|
140 | |
---|
141 | <tr class="prop"> |
---|
142 | <td valign="top" class="name"> |
---|
143 | <label for="taskType">Task Type:</label> |
---|
144 | </td> |
---|
145 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskType','errors')}"> |
---|
146 | <g:select optionKey="id" from="${TaskType.list()}" name="taskType.id" value="${taskInstance?.taskType?.id}" ></g:select> |
---|
147 | </td> |
---|
148 | </tr> |
---|
149 | |
---|
150 | </tbody> |
---|
151 | </table> |
---|
152 | </div> |
---|
153 | <div class="buttons"> |
---|
154 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
155 | </div> |
---|
156 | </g:form> |
---|
157 | </div> |
---|
158 | </body> |
---|
159 | </html> |
---|