[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" /> |
---|
| 7 | <title>Edit AssignedGroup</title> |
---|
| 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
| 11 | <h1>Edit 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 method="post" > |
---|
[247] | 23 | <g:hiddenField name="id" value="${assignedGroupInstance?.id}" /> |
---|
| 24 | <g:hiddenField name="task.id" value="${assignedGroupInstance?.task?.id}" /> |
---|
| 25 | <g:hiddenField name="version" value="${assignedGroupInstance?.version}" /> |
---|
[242] | 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="${assignedGroupInstance.task.id}" > |
---|
| 36 | ${assignedGroupInstance?.task.encodeAsHTML()} |
---|
| 37 | </g:link> |
---|
| 38 | </td> |
---|
| 39 | </tr> |
---|
| 40 | |
---|
| 41 | <tr class="prop"> |
---|
| 42 | <td valign="top" class="name"> |
---|
| 43 | <label for="personGroup">Group:</label> |
---|
| 44 | </td> |
---|
| 45 | <td valign="top" class="value ${hasErrors(bean:assignedGroupInstance,field:'personGroup','errors')}"> |
---|
[254] | 46 | <g:select optionKey="id" |
---|
| 47 | from="${PersonGroup.list().sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }}" |
---|
| 48 | name="personGroup.id" |
---|
| 49 | value="${assignedGroupInstance?.personGroup?.id}" |
---|
| 50 | onchange="${remoteFunction(action:'personsInGroup', update:'personsInGroup', params: '\'personGroup.id=\' + this.value' )}"> |
---|
| 51 | </g:select> |
---|
[242] | 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:assignedGroupInstance,field:'estimatedHour','errors')}" |
---|
| 61 | type="text" id="estimatedHour" name="estimatedHour" |
---|
| 62 | value="${fieldValue(bean:assignedGroupInstance,field:'estimatedHour')}" /> |
---|
| 63 | : |
---|
| 64 | <input class="time ${hasErrors(bean:assignedGroupInstance,field:'estimatedMinute','errors')}" |
---|
| 65 | type="text" id="estimatedMinute" name="estimatedMinute" |
---|
| 66 | value="${fieldValue(bean:assignedGroupInstance,field:'estimatedMinute')}" /> |
---|
| 67 | <g:helpBalloon code="assignedGroup.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> |
---|
[254] | 79 | |
---|
| 80 | <br /> |
---|
| 81 | |
---|
| 82 | <div id="personsInGroup" class="dialog"> |
---|
| 83 | <g:render template="personsInGroup" /> |
---|
| 84 | </div> |
---|
| 85 | |
---|
[242] | 86 | </div> |
---|
| 87 | </body> |
---|
| 88 | </html> |
---|