[118] | 1 | |
---|
| 2 | |
---|
| 3 | <html> |
---|
| 4 | <head> |
---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
| 6 | <meta name="layout" content="main" /> |
---|
[122] | 7 | <title>Edit Period</title> |
---|
[118] | 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
[122] | 11 | <span class="menuButton"><g:link class="list" action="list">Period List</g:link></span> |
---|
| 12 | <span class="menuButton"><g:link class="create" action="create">New Period</g:link></span> |
---|
[118] | 13 | </div> |
---|
| 14 | <div class="body"> |
---|
[122] | 15 | <h1>Edit Period</h1> |
---|
[118] | 16 | <g:if test="${flash.message}"> |
---|
| 17 | <div class="message">${flash.message}</div> |
---|
| 18 | </g:if> |
---|
[122] | 19 | <g:hasErrors bean="${periodInstance}"> |
---|
[118] | 20 | <div class="errors"> |
---|
[122] | 21 | <g:renderErrors bean="${periodInstance}" as="list" /> |
---|
[118] | 22 | </div> |
---|
| 23 | </g:hasErrors> |
---|
| 24 | <g:form method="post" > |
---|
[122] | 25 | <input type="hidden" name="id" value="${periodInstance?.id}" /> |
---|
| 26 | <input type="hidden" name="version" value="${periodInstance?.version}" /> |
---|
[118] | 27 | <div class="dialog"> |
---|
| 28 | <table> |
---|
| 29 | <tbody> |
---|
| 30 | |
---|
| 31 | <tr class="prop"> |
---|
| 32 | <td valign="top" class="name"> |
---|
[122] | 33 | <label for="isActive">Is Active:</label> |
---|
[118] | 34 | </td> |
---|
[122] | 35 | <td valign="top" class="value ${hasErrors(bean:periodInstance,field:'isActive','errors')}"> |
---|
| 36 | <g:checkBox name="isActive" value="${periodInstance?.isActive}" ></g:checkBox> |
---|
[118] | 37 | </td> |
---|
| 38 | </tr> |
---|
| 39 | |
---|
| 40 | <tr class="prop"> |
---|
| 41 | <td valign="top" class="name"> |
---|
[122] | 42 | <label for="period">Period:</label> |
---|
[118] | 43 | </td> |
---|
[122] | 44 | <td valign="top" class="value ${hasErrors(bean:periodInstance,field:'period','errors')}"> |
---|
| 45 | <input type="text" id="period" name="period" value="${fieldValue(bean:periodInstance,field:'period')}"/> |
---|
[118] | 46 | </td> |
---|
| 47 | </tr> |
---|
| 48 | |
---|
| 49 | <tr class="prop"> |
---|
| 50 | <td valign="top" class="name"> |
---|
[134] | 51 | <label for="taskRecurringSchedules">Task Recurring Schedules:</label> |
---|
[118] | 52 | </td> |
---|
[134] | 53 | <td valign="top" class="value ${hasErrors(bean:periodInstance,field:'taskRecurringSchedules','errors')}"> |
---|
[118] | 54 | |
---|
| 55 | <ul> |
---|
[134] | 56 | <g:each var="t" in="${periodInstance?.taskRecurringSchedules?}"> |
---|
| 57 | <li><g:link controller="taskRecurringSchedule" action="show" id="${t.id}">${t?.encodeAsHTML()}</g:link></li> |
---|
[118] | 58 | </g:each> |
---|
| 59 | </ul> |
---|
[134] | 60 | <g:link controller="taskRecurringSchedule" params="['period.id':periodInstance?.id]" action="create">Add TaskRecurringSchedule</g:link> |
---|
[118] | 61 | |
---|
| 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> |
---|