[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"> |
---|
[151] | 11 | <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span> |
---|
[122] | 12 | <span class="menuButton"><g:link class="list" action="list">Period List</g:link></span> |
---|
| 13 | <span class="menuButton"><g:link class="create" action="create">New Period</g:link></span> |
---|
[118] | 14 | </div> |
---|
| 15 | <div class="body"> |
---|
[122] | 16 | <h1>Edit Period</h1> |
---|
[118] | 17 | <g:if test="${flash.message}"> |
---|
| 18 | <div class="message">${flash.message}</div> |
---|
| 19 | </g:if> |
---|
[122] | 20 | <g:hasErrors bean="${periodInstance}"> |
---|
[118] | 21 | <div class="errors"> |
---|
[122] | 22 | <g:renderErrors bean="${periodInstance}" as="list" /> |
---|
[118] | 23 | </div> |
---|
| 24 | </g:hasErrors> |
---|
| 25 | <g:form method="post" > |
---|
[122] | 26 | <input type="hidden" name="id" value="${periodInstance?.id}" /> |
---|
| 27 | <input type="hidden" name="version" value="${periodInstance?.version}" /> |
---|
[118] | 28 | <div class="dialog"> |
---|
| 29 | <table> |
---|
| 30 | <tbody> |
---|
| 31 | |
---|
| 32 | <tr class="prop"> |
---|
| 33 | <td valign="top" class="name"> |
---|
[122] | 34 | <label for="isActive">Is Active:</label> |
---|
[118] | 35 | </td> |
---|
[122] | 36 | <td valign="top" class="value ${hasErrors(bean:periodInstance,field:'isActive','errors')}"> |
---|
| 37 | <g:checkBox name="isActive" value="${periodInstance?.isActive}" ></g:checkBox> |
---|
[118] | 38 | </td> |
---|
| 39 | </tr> |
---|
| 40 | |
---|
| 41 | <tr class="prop"> |
---|
| 42 | <td valign="top" class="name"> |
---|
[122] | 43 | <label for="period">Period:</label> |
---|
[118] | 44 | </td> |
---|
[122] | 45 | <td valign="top" class="value ${hasErrors(bean:periodInstance,field:'period','errors')}"> |
---|
| 46 | <input type="text" id="period" name="period" value="${fieldValue(bean:periodInstance,field:'period')}"/> |
---|
[118] | 47 | </td> |
---|
| 48 | </tr> |
---|
| 49 | |
---|
| 50 | <tr class="prop"> |
---|
| 51 | <td valign="top" class="name"> |
---|
[134] | 52 | <label for="taskRecurringSchedules">Task Recurring Schedules:</label> |
---|
[118] | 53 | </td> |
---|
[134] | 54 | <td valign="top" class="value ${hasErrors(bean:periodInstance,field:'taskRecurringSchedules','errors')}"> |
---|
[118] | 55 | |
---|
| 56 | <ul> |
---|
[134] | 57 | <g:each var="t" in="${periodInstance?.taskRecurringSchedules?}"> |
---|
| 58 | <li><g:link controller="taskRecurringSchedule" action="show" id="${t.id}">${t?.encodeAsHTML()}</g:link></li> |
---|
[118] | 59 | </g:each> |
---|
| 60 | </ul> |
---|
[134] | 61 | <g:link controller="taskRecurringSchedule" params="['period.id':periodInstance?.id]" action="create">Add TaskRecurringSchedule</g:link> |
---|
[118] | 62 | |
---|
| 63 | </td> |
---|
| 64 | </tr> |
---|
| 65 | |
---|
| 66 | </tbody> |
---|
| 67 | </table> |
---|
| 68 | </div> |
---|
| 69 | <div class="buttons"> |
---|
| 70 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
| 71 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 72 | </div> |
---|
| 73 | </g:form> |
---|
| 74 | </div> |
---|
| 75 | </body> |
---|
| 76 | </html> |
---|