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>Edit Task #${taskInstance?.id}</title> |
---|
8 | <nav:resources override="true"/> |
---|
9 | <resource:dateChooser /> |
---|
10 | </head> |
---|
11 | <body> |
---|
12 | <div class="nav"> |
---|
13 | <nav:renderSubItems group="nav"/> |
---|
14 | </div> |
---|
15 | <div class="body"> |
---|
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 method="post" > |
---|
25 | <input type="hidden" name="id" value="${taskInstance?.id}" /> |
---|
26 | <input type="hidden" name="version" value="${taskInstance?.version}" /> |
---|
27 | <div class="dialog"> |
---|
28 | <table> |
---|
29 | <tbody> |
---|
30 | |
---|
31 | <tr class="prop"> |
---|
32 | <td valign="top" class="name"> |
---|
33 | <label for="id">Id:</label> |
---|
34 | </td> |
---|
35 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'id')}</td> |
---|
36 | </tr> |
---|
37 | |
---|
38 | <g:if test="${taskInstance?.parentTask}"> |
---|
39 | <tr class="prop"> |
---|
40 | <td valign="top" class="name">Parent Task:</td> |
---|
41 | |
---|
42 | <td valign="top" class="value"><g:link controller="taskDetailed" action="show" id="${taskInstance.parentTask.id}">${taskInstance.parentTask.encodeAsHTML()}</g:link></td> |
---|
43 | |
---|
44 | </tr> |
---|
45 | </g:if> |
---|
46 | |
---|
47 | <!-- <tr class="prop"> |
---|
48 | <td valign="top" class="name"> |
---|
49 | <label for="parentTask">Parent Task:</label> |
---|
50 | </td> |
---|
51 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'parentTask','errors')}"> |
---|
52 | <g:select optionKey="id" from="${possibleParentList}" name="parentTask.id" value="${taskInstance?.parentTask?.id}" noSelection="['null':'--None--']"></g:select> |
---|
53 | </td> |
---|
54 | </tr>--> |
---|
55 | |
---|
56 | <tr class="prop"> |
---|
57 | <td valign="top" class="name"> |
---|
58 | <label for="description">Description:</label> |
---|
59 | </td> |
---|
60 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'description','errors')}"> |
---|
61 | <input type="text" style="width:450px" maxlength="75" id="description" name="description" value="${fieldValue(bean:taskInstance,field:'description')}"/> |
---|
62 | </td> |
---|
63 | </tr> |
---|
64 | |
---|
65 | <tr class="prop"> |
---|
66 | <td valign="top" class="name"> |
---|
67 | <label for="comment">Comment:</label> |
---|
68 | </td> |
---|
69 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'comment','errors')}"> |
---|
70 | <textarea style="width:450px" rows="5" cols="40" name="comment">${fieldValue(bean:taskInstance, field:'comment')}</textarea> |
---|
71 | </td> |
---|
72 | </tr> |
---|
73 | |
---|
74 | <tr class="prop"> |
---|
75 | <td valign="top" class="name"> |
---|
76 | <label for="targetStartDate">Target Start Date:</label> |
---|
77 | </td> |
---|
78 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetStartDate','errors')}"> |
---|
79 | <richui:dateChooser name="targetStartDate" format="dd-MM-yyyy" value="${taskInstance?.targetStartDate}" /> |
---|
80 | </td> |
---|
81 | </tr> |
---|
82 | |
---|
83 | <tr class="prop"> |
---|
84 | <td valign="top" class="name"> |
---|
85 | <label for="targetCompletionDate">Target Completion Date:</label> |
---|
86 | </td> |
---|
87 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'targetCompletionDate','errors')}"> |
---|
88 | <richui:dateChooser name="targetCompletionDate" format="dd-MM-yyyy" value="${taskInstance?.targetCompletionDate}" /> |
---|
89 | </td> |
---|
90 | </tr> |
---|
91 | |
---|
92 | <tr class="prop"> |
---|
93 | <td valign="top" class="name"> |
---|
94 | <label for="leadPerson">Lead Person:</label> |
---|
95 | </td> |
---|
96 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'leadPerson','errors')}"> |
---|
97 | <g:select optionKey="id" from="${Person.list()}" name="leadPerson.id" value="${taskInstance?.leadPerson?.id}" ></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':'--None--']"></g:select> |
---|
107 | <g:helpBalloon code="task.primaryAsset" /> |
---|
108 | </td> |
---|
109 | </tr> |
---|
110 | |
---|
111 | <tr class="prop"> |
---|
112 | <td valign="top" class="name"> |
---|
113 | <label for="associatedAssets">Associated Assets:</label> |
---|
114 | </td> |
---|
115 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'associatedAssets','errors')}"> |
---|
116 | <g:select id="associatedAssets" name="associatedAssets" |
---|
117 | from="${Asset.list()}" |
---|
118 | optionKey="id" size="5" multiple="yes" |
---|
119 | value="${taskInstance?.associatedAssets.id}" noSelection="['':'--None--']"/> |
---|
120 | <g:helpBalloon class="helpballoon" code="task.associatedAssets" /> |
---|
121 | </td> |
---|
122 | </tr> |
---|
123 | |
---|
124 | <tr class="prop"> |
---|
125 | <td valign="top" class="name"> |
---|
126 | <label for="taskPriority">Task Priority:</label> |
---|
127 | </td> |
---|
128 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskPriority','errors')}"> |
---|
129 | <g:select optionKey="id" from="${TaskPriority.list()}" name="taskPriority.id" value="${taskInstance?.taskPriority?.id}" ></g:select> |
---|
130 | </td> |
---|
131 | </tr> |
---|
132 | |
---|
133 | <tr class="prop"> |
---|
134 | <td valign="top" class="name"> |
---|
135 | <label for="scheduled">Scheduled:</label> |
---|
136 | </td> |
---|
137 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'scheduled','errors')}"> |
---|
138 | <g:checkBox name="scheduled" value="${taskInstance?.scheduled}" ></g:checkBox> |
---|
139 | </td> |
---|
140 | </tr> |
---|
141 | |
---|
142 | <tr class="prop"> |
---|
143 | <td valign="top" class="name"> |
---|
144 | <label for="taskGroup">Task Group:</label> |
---|
145 | </td> |
---|
146 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskGroup','errors')}"> |
---|
147 | <g:select optionKey="id" from="${TaskGroup.list()}" name="taskGroup.id" value="${taskInstance?.taskGroup?.id}" ></g:select> |
---|
148 | </td> |
---|
149 | </tr> |
---|
150 | |
---|
151 | <tr class="prop"> |
---|
152 | <td valign="top" class="name"> |
---|
153 | <label for="taskType">Task Type:</label> |
---|
154 | </td> |
---|
155 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskType','errors')}"> |
---|
156 | <g:select optionKey="id" from="${TaskType.list()}" name="taskType.id" value="${taskInstance?.taskType?.id}" ></g:select> |
---|
157 | </td> |
---|
158 | </tr> |
---|
159 | |
---|
160 | <tr class="prop"> |
---|
161 | <td valign="top" class="name"> |
---|
162 | <label for="assignedPersons">Assigned Groups:</label> |
---|
163 | </td> |
---|
164 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'assignedGroups','errors')}"> |
---|
165 | |
---|
166 | <ul> |
---|
167 | <g:each var="a" in="${taskInstance?.assignedGroups?}"> |
---|
168 | <li><g:link controller="assignedGroupDetailed" action="edit" id="${a.id}" params="['task.id':taskInstance?.id]">${a?.encodeAsHTML()}</g:link></li> |
---|
169 | </g:each> |
---|
170 | </ul> |
---|
171 | |
---|
172 | </td> |
---|
173 | </tr> |
---|
174 | |
---|
175 | <tr class="prop"> |
---|
176 | <td valign="top" class="name"> |
---|
177 | <label for="assignedPersons">Assigned Persons:</label> |
---|
178 | </td> |
---|
179 | <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'assignedPersons','errors')}"> |
---|
180 | |
---|
181 | <ul> |
---|
182 | <g:each var="a" in="${taskInstance?.assignedPersons?}"> |
---|
183 | <li><g:link controller="assignedPersonDetailed" action="edit" id="${a.id}" params="['task.id':taskInstance?.id]">${a?.encodeAsHTML()}</g:link></li> |
---|
184 | </g:each> |
---|
185 | </ul> |
---|
186 | |
---|
187 | </td> |
---|
188 | </tr> |
---|
189 | |
---|
190 | </tbody> |
---|
191 | </table> |
---|
192 | </div> |
---|
193 | <div class="buttons"> |
---|
194 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
195 | <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span> |
---|
196 | <span class="button"><g:actionSubmit class="trash" onclick="return confirm('Are you sure?');" value="Trash" /></span> |
---|
197 | </div> |
---|
198 | </g:form> |
---|
199 | </div> |
---|
200 | </body> |
---|
201 | </html> |
---|