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" |
---|
47 | from="${Person.list().sort { p1, p2 -> p1.firstName.compareToIgnoreCase(p2.firstName) }}" |
---|
48 | name="person.id" |
---|
49 | value="${assignedPersonInstance?.person?.id}" |
---|
50 | onchange="${remoteFunction(action:'groupsForPerson', update:'groupsForPerson', params: '\'person.id=\' + this.value' )}"> |
---|
51 | </g:select> |
---|
52 | </td> |
---|
53 | </tr> |
---|
54 | |
---|
55 | <tr class="prop"> |
---|
56 | <td valign="top" class="name"> |
---|
57 | <label for="durationHour">Estimated Duration:</label> |
---|
58 | </td> |
---|
59 | <td valign="top" class="value"> |
---|
60 | <input class="time ${hasErrors(bean:assignedPersonInstance,field:'estimatedHour','errors')}" |
---|
61 | type="text" id="estimatedHour" name="estimatedHour" |
---|
62 | value="${fieldValue(bean:assignedPersonInstance,field:'estimatedHour')}" /> |
---|
63 | : |
---|
64 | <input class="time ${hasErrors(bean:assignedPersonInstance,field:'estimatedMinute','errors')}" |
---|
65 | type="text" id="estimatedMinute" name="estimatedMinute" |
---|
66 | value="${fieldValue(bean:assignedPersonInstance,field:'estimatedMinute')}" /> |
---|
67 | <g:helpBalloon code="assignedPerson.estimatedDuration" /> |
---|
68 | </td> |
---|
69 | </tr> |
---|
70 | |
---|
71 | </tbody> |
---|
72 | </table> |
---|
73 | </div> |
---|
74 | <div class="buttons"> |
---|
75 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
76 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
77 | </div> |
---|
78 | </g:form> |
---|
79 | |
---|
80 | <br /> |
---|
81 | |
---|
82 | <div id="groupsForPerson" class="dialog"> |
---|
83 | <g:render template="groupsForPerson" /> |
---|
84 | </div> |
---|
85 | |
---|
86 | </div> |
---|
87 | </body> |
---|
88 | </html> |
---|