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 AssignedPerson</title> |
---|
8 | </head> |
---|
9 | <body> |
---|
10 | <div class="nav"> |
---|
11 | <h1>Edit Assigned Person</h1> |
---|
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="${assignedPersonInstance}"> |
---|
18 | <div class="errors"> |
---|
19 | <g:renderErrors bean="${assignedPersonInstance}" as="list" /> |
---|
20 | </div> |
---|
21 | </g:hasErrors> |
---|
22 | <g:form method="post" > |
---|
23 | <g:hiddenField name="id" value="${assignedPersonInstance?.id}" /> |
---|
24 | <g:hiddenField name="task.id" value="${assignedPersonInstance?.task?.id}" /> |
---|
25 | <g:hiddenField name="version" value="${assignedPersonInstance?.version}" /> |
---|
26 | <div class="dialog"> |
---|
27 | <table> |
---|
28 | <tbody> |
---|
29 | |
---|
30 | <tr class="prop"> |
---|
31 | <td valign="top" class="name"> |
---|
32 | <label for="task">Task:</label> |
---|
33 | </td> |
---|
34 | <td valign="top" class="name"> |
---|
35 | <g:link controller="taskDetailed" action="show" id="${assignedPersonInstance.task.id}" > |
---|
36 | ${assignedPersonInstance?.task.encodeAsHTML()} |
---|
37 | </g:link> |
---|
38 | </td> |
---|
39 | </tr> |
---|
40 | |
---|
41 | <tr class="prop"> |
---|
42 | <td valign="top" class="name"> |
---|
43 | <label for="person">Person:</label> |
---|
44 | </td> |
---|
45 | <td valign="top" class="value ${hasErrors(bean:assignedPersonInstance,field:'person','errors')}"> |
---|
46 | <g:select optionKey="id" from="${Person.list()}" name="person.id" value="${assignedPersonInstance?.person?.id}" ></g:select> |
---|
47 | </td> |
---|
48 | </tr> |
---|
49 | |
---|
50 | <tr class="prop"> |
---|
51 | <td valign="top" class="name"> |
---|
52 | <label for="durationHour">Estimated Duration:</label> |
---|
53 | </td> |
---|
54 | <td valign="top" class="value"> |
---|
55 | <input class="time ${hasErrors(bean:assignedPersonInstance,field:'estimatedHour','errors')}" |
---|
56 | type="text" id="estimatedHour" name="estimatedHour" |
---|
57 | value="${fieldValue(bean:assignedPersonInstance,field:'estimatedHour')}" /> |
---|
58 | : |
---|
59 | <input class="time ${hasErrors(bean:assignedPersonInstance,field:'estimatedMinute','errors')}" |
---|
60 | type="text" id="estimatedMinute" name="estimatedMinute" |
---|
61 | value="${fieldValue(bean:assignedPersonInstance,field:'estimatedMinute')}" /> |
---|
62 | <g:helpBalloon code="assignedPerson.estimatedDuration" /> |
---|
63 | </td> |
---|
64 | </tr> |
---|
65 | |
---|
66 | </tbody> |
---|
67 | </table> |
---|
68 | </div> |
---|
69 | <div class="buttons"> |
---|
70 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
71 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
72 | </div> |
---|
73 | </g:form> |
---|
74 | </div> |
---|
75 | </body> |
---|
76 | </html> |
---|