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