[242] | 1 | |
---|
| 2 | |
---|
| 3 | <html> |
---|
| 4 | <head> |
---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
| 6 | <meta name="layout" content="main" /> |
---|
[256] | 7 | <title>Create AssignedGroup</title> |
---|
[242] | 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" > |
---|
[247] | 23 | <g:hiddenField name="task.id" value="${assignedGroupInstance?.task?.id}" /> |
---|
[242] | 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')}"> |
---|
[254] | 44 | <g:select optionKey="id" |
---|
| 45 | from="${PersonGroup.list().sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" |
---|
| 46 | name="personGroup.id" |
---|
| 47 | value="${assignedGroupInstance?.personGroup?.id}" |
---|
| 48 | onchange="${remoteFunction(action:'personsInGroup', update:'personsInGroup', params: '\'personGroup.id=\' + this.value' )}"> |
---|
| 49 | </g:select> |
---|
[242] | 50 | </td> |
---|
| 51 | </tr> |
---|
| 52 | |
---|
| 53 | <tr class="prop"> |
---|
| 54 | <td valign="top" class="name"> |
---|
| 55 | <label for="durationHour">Estimated Duration:</label> |
---|
| 56 | </td> |
---|
| 57 | |
---|
| 58 | <td valign="top" class="value"> |
---|
| 59 | <input class="time ${hasErrors(bean:assignedGroupInstance,field:'estimatedHour','errors')}" |
---|
| 60 | type="text" id="estimatedHour" name="estimatedHour" |
---|
| 61 | value="${fieldValue(bean:assignedGroupInstance,field:'estimatedHour')}" /> |
---|
| 62 | : |
---|
| 63 | <input class="time ${hasErrors(bean:assignedGroupInstance,field:'estimatedMinute','errors')}" |
---|
| 64 | type="text" id="estimatedMinute" name="estimatedMinute" |
---|
| 65 | value="${fieldValue(bean:assignedGroupInstance,field:'estimatedMinute')}" /> |
---|
| 66 | <g:helpBalloon code="assignedGroup.estimatedDuration" /> |
---|
| 67 | </td> |
---|
| 68 | </tr> |
---|
| 69 | |
---|
| 70 | </tbody> |
---|
| 71 | </table> |
---|
| 72 | </div> |
---|
[254] | 73 | |
---|
[242] | 74 | <div class="buttons"> |
---|
| 75 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
| 76 | </div> |
---|
| 77 | </g:form> |
---|
[254] | 78 | |
---|
| 79 | <br /> |
---|
| 80 | |
---|
| 81 | <div id="personsInGroup" class="dialog"> |
---|
| 82 | <g:render template="personsInGroup" /> |
---|
| 83 | </div> |
---|
| 84 | |
---|
[242] | 85 | </div> |
---|
| 86 | </body> |
---|
| 87 | </html> |
---|