1 | |
---|
2 | |
---|
3 | <html> |
---|
4 | <head> |
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
6 | <meta name="layout" content="main" /> |
---|
7 | <title>Create Task</title> |
---|
8 | </head> |
---|
9 | <body> |
---|
10 | <div class="nav"> |
---|
11 | <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> |
---|
12 | <span class="menuButton"><g:link class="list" action="list">Task List</g:link></span> |
---|
13 | </div> |
---|
14 | <div class="body"> |
---|
15 | <h1>Create Task</h1> |
---|
16 | <g:if test="${flash.message}"> |
---|
17 | <div class="message">${flash.message}</div> |
---|
18 | </g:if> |
---|
19 | <g:hasErrors bean="${taskInstance}"> |
---|
20 | <div class="errors"> |
---|
21 | <g:renderErrors bean="${taskInstance}" as="list" /> |
---|
22 | </div> |
---|
23 | </g:hasErrors> |
---|
24 | <g:form action="save" method="post" > |
---|
25 | <div class="dialog"> |
---|
26 | <table> |
---|
27 | <tbody> |
---|
28 | |
---|
29 | <tr class="prop"> |
---|
30 | <td valign="top" class="name"> |
---|
31 | <label for="description">Description:</label> |
---|
32 | </td> |
---|
33 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'description','errors')}"> |
---|
34 | <input type="text" maxlength="75" id="description" name="description" value="${fieldValue(bean:taskInstance,field:'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 | <input type="text" id="comment" name="comment" value="${fieldValue(bean:taskInstance,field:'comment')}"/> |
---|
44 | </td> |
---|
45 | </tr> |
---|
46 | |
---|
47 | <tr class="prop"> |
---|
48 | <td valign="top" class="name"> |
---|
49 | <label for="targetStartDate">Target Start Date:</label> |
---|
50 | </td> |
---|
51 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetStartDate','errors')}"> |
---|
52 | <g:datePicker name="targetStartDate" value="${taskInstance?.targetStartDate}" ></g:datePicker> |
---|
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 | <g:datePicker name="targetCompletionDate" value="${taskInstance?.targetCompletionDate}" ></g:datePicker> |
---|
62 | </td> |
---|
63 | </tr> |
---|
64 | |
---|
65 | <tr class="prop"> |
---|
66 | <td valign="top" class="name"> |
---|
67 | <label for="leadPerson">Lead Person:</label> |
---|
68 | </td> |
---|
69 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'leadPerson','errors')}"> |
---|
70 | <g:select optionKey="id" from="${Person.list()}" name="leadPerson.id" value="${taskInstance?.leadPerson?.id}" ></g:select> |
---|
71 | </td> |
---|
72 | </tr> |
---|
73 | |
---|
74 | <tr class="prop"> |
---|
75 | <td valign="top" class="name"> |
---|
76 | <label for="taskPriority">Task Priority:</label> |
---|
77 | </td> |
---|
78 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskPriority','errors')}"> |
---|
79 | <g:select optionKey="id" from="${TaskPriority.list()}" name="taskPriority.id" value="${taskInstance?.taskPriority?.id}" ></g:select> |
---|
80 | </td> |
---|
81 | </tr> |
---|
82 | |
---|
83 | <tr class="prop"> |
---|
84 | <td valign="top" class="name"> |
---|
85 | <label for="taskStatus">Task Status:</label> |
---|
86 | </td> |
---|
87 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskStatus','errors')}"> |
---|
88 | <g:select optionKey="id" from="${TaskStatus.list()}" name="taskStatus.id" value="${taskInstance?.taskStatus?.id}" ></g:select> |
---|
89 | </td> |
---|
90 | </tr> |
---|
91 | |
---|
92 | <tr class="prop"> |
---|
93 | <td valign="top" class="name"> |
---|
94 | <label for="parentTask">Parent Task:</label> |
---|
95 | </td> |
---|
96 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'parentTask','errors')}"> |
---|
97 | <g:select optionKey="id" from="${Task.list()}" name="parentTask.id" value="${taskInstance?.parentTask?.id}" noSelection="['null':'']"></g:select> |
---|
98 | </td> |
---|
99 | </tr> |
---|
100 | |
---|
101 | <tr class="prop"> |
---|
102 | <td valign="top" class="name"> |
---|
103 | <label for="primaryAsset">Primary Asset:</label> |
---|
104 | </td> |
---|
105 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'primaryAsset','errors')}"> |
---|
106 | <g:select optionKey="id" from="${Asset.list()}" name="primaryAsset.id" value="${taskInstance?.primaryAsset?.id}" noSelection="['null':'']"></g:select> |
---|
107 | </td> |
---|
108 | </tr> |
---|
109 | |
---|
110 | <tr class="prop"> |
---|
111 | <td valign="top" class="name"> |
---|
112 | <label for="taskRecurringSchedule">Task Recurring Schedule:</label> |
---|
113 | </td> |
---|
114 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskRecurringSchedule','errors')}"> |
---|
115 | <g:select optionKey="id" from="${TaskRecurringSchedule.list()}" name="taskRecurringSchedule.id" value="${taskInstance?.taskRecurringSchedule?.id}" noSelection="['null':'']"></g:select> |
---|
116 | </td> |
---|
117 | </tr> |
---|
118 | |
---|
119 | <tr class="prop"> |
---|
120 | <td valign="top" class="name"> |
---|
121 | <label for="taskProcedure">Task Procedure:</label> |
---|
122 | </td> |
---|
123 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskProcedure','errors')}"> |
---|
124 | <g:select optionKey="id" from="${TaskProcedure.list()}" name="taskProcedure.id" value="${taskInstance?.taskProcedure?.id}" noSelection="['null':'']"></g:select> |
---|
125 | </td> |
---|
126 | </tr> |
---|
127 | |
---|
128 | <tr class="prop"> |
---|
129 | <td valign="top" class="name"> |
---|
130 | <label for="isActive">Is Active:</label> |
---|
131 | </td> |
---|
132 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'isActive','errors')}"> |
---|
133 | <g:checkBox name="isActive" value="${taskInstance?.isActive}" ></g:checkBox> |
---|
134 | </td> |
---|
135 | </tr> |
---|
136 | |
---|
137 | <tr class="prop"> |
---|
138 | <td valign="top" class="name"> |
---|
139 | <label for="isApproved">Is Approved:</label> |
---|
140 | </td> |
---|
141 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'isApproved','errors')}"> |
---|
142 | <g:checkBox name="isApproved" value="${taskInstance?.isApproved}" ></g:checkBox> |
---|
143 | </td> |
---|
144 | </tr> |
---|
145 | |
---|
146 | <tr class="prop"> |
---|
147 | <td valign="top" class="name"> |
---|
148 | <label for="isScheduled">Is Scheduled:</label> |
---|
149 | </td> |
---|
150 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'isScheduled','errors')}"> |
---|
151 | <g:checkBox name="isScheduled" value="${taskInstance?.isScheduled}" ></g:checkBox> |
---|
152 | </td> |
---|
153 | </tr> |
---|
154 | |
---|
155 | <tr class="prop"> |
---|
156 | <td valign="top" class="name"> |
---|
157 | <label for="taskGroup">Task Group:</label> |
---|
158 | </td> |
---|
159 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskGroup','errors')}"> |
---|
160 | <g:select optionKey="id" from="${TaskGroup.list()}" name="taskGroup.id" value="${taskInstance?.taskGroup?.id}" ></g:select> |
---|
161 | </td> |
---|
162 | </tr> |
---|
163 | |
---|
164 | <tr class="prop"> |
---|
165 | <td valign="top" class="name"> |
---|
166 | <label for="taskType">Task Type:</label> |
---|
167 | </td> |
---|
168 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskType','errors')}"> |
---|
169 | <g:select optionKey="id" from="${TaskType.list()}" name="taskType.id" value="${taskInstance?.taskType?.id}" ></g:select> |
---|
170 | </td> |
---|
171 | </tr> |
---|
172 | |
---|
173 | </tbody> |
---|
174 | </table> |
---|
175 | </div> |
---|
176 | <div class="buttons"> |
---|
177 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
178 | </div> |
---|
179 | </g:form> |
---|
180 | </div> |
---|
181 | </body> |
---|
182 | </html> |
---|