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