[133] | 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 TaskProcedure</title> |
---|
[147] | 8 | <nav:resources override="true"/> |
---|
[133] | 9 | </head> |
---|
| 10 | <body> |
---|
| 11 | <div class="nav"> |
---|
[147] | 12 | <nav:renderSubItems group="navAlt"/> |
---|
[133] | 13 | </div> |
---|
| 14 | <div class="body"> |
---|
| 15 | <g:if test="${flash.message}"> |
---|
| 16 | <div class="message">${flash.message}</div> |
---|
| 17 | </g:if> |
---|
| 18 | <g:hasErrors bean="${taskProcedureInstance}"> |
---|
| 19 | <div class="errors"> |
---|
| 20 | <g:renderErrors bean="${taskProcedureInstance}" as="list" /> |
---|
| 21 | </div> |
---|
| 22 | </g:hasErrors> |
---|
| 23 | <g:form method="post" > |
---|
| 24 | <input type="hidden" name="id" value="${taskProcedureInstance?.id}" /> |
---|
| 25 | <input type="hidden" name="version" value="${taskProcedureInstance?.version}" /> |
---|
| 26 | <div class="dialog"> |
---|
| 27 | <table> |
---|
| 28 | <tbody> |
---|
| 29 | |
---|
| 30 | <tr class="prop"> |
---|
| 31 | <td valign="top" class="name"> |
---|
| 32 | <label for="name">Name:</label> |
---|
| 33 | </td> |
---|
| 34 | <td valign="top" class="value ${hasErrors(bean:taskProcedureInstance,field:'name','errors')}"> |
---|
[134] | 35 | <input type="text" class="description" maxlength="75" id="name" name="name" value="${fieldValue(bean:taskProcedureInstance,field:'name')}"/> |
---|
[133] | 36 | </td> |
---|
| 37 | </tr> |
---|
| 38 | |
---|
| 39 | <tr class="prop"> |
---|
| 40 | <td valign="top" class="name"> |
---|
| 41 | <label for="description">Description:</label> |
---|
| 42 | </td> |
---|
| 43 | <td valign="top" class="value ${hasErrors(bean:taskProcedureInstance,field:'description','errors')}"> |
---|
[134] | 44 | <input type="text" class="description" maxlength="100" id="description" name="description" value="${fieldValue(bean:taskProcedureInstance,field:'description')}"/> |
---|
[133] | 45 | </td> |
---|
| 46 | </tr> |
---|
| 47 | |
---|
| 48 | <tr class="prop"> |
---|
| 49 | <td valign="top" class="name"> |
---|
| 50 | <label for="isActive">Is Active:</label> |
---|
| 51 | </td> |
---|
| 52 | <td valign="top" class="value ${hasErrors(bean:taskProcedureInstance,field:'isActive','errors')}"> |
---|
| 53 | <g:checkBox name="isActive" value="${taskProcedureInstance?.isActive}" ></g:checkBox> |
---|
| 54 | </td> |
---|
| 55 | </tr> |
---|
| 56 | |
---|
| 57 | <tr class="prop"> |
---|
| 58 | <td valign="top" class="name"> |
---|
| 59 | <label for="maintenanceActions">Maintenance Actions:</label> |
---|
| 60 | </td> |
---|
| 61 | <td valign="top" class="value ${hasErrors(bean:taskProcedureInstance,field:'maintenanceActions','errors')}"> |
---|
| 62 | |
---|
| 63 | <ul> |
---|
| 64 | <g:each var="m" in="${taskProcedureInstance?.maintenanceActions?}"> |
---|
| 65 | <li><g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> |
---|
| 66 | </g:each> |
---|
| 67 | </ul> |
---|
| 68 | <g:link controller="maintenanceActionDetailed" params="['taskProcedure.id':taskProcedureInstance?.id]" action="create">Add MaintenanceAction</g:link> |
---|
| 69 | |
---|
| 70 | </td> |
---|
| 71 | </tr> |
---|
| 72 | |
---|
| 73 | <tr class="prop"> |
---|
| 74 | <td valign="top" class="name"> |
---|
| 75 | <label for="tasks">Tasks:</label> |
---|
| 76 | </td> |
---|
| 77 | <td valign="top" class="value ${hasErrors(bean:taskProcedureInstance,field:'tasks','errors')}"> |
---|
| 78 | |
---|
| 79 | <ul> |
---|
| 80 | <g:each var="t" in="${taskProcedureInstance?.tasks?}"> |
---|
| 81 | <li><g:link controller="taskDetailed" action="show" id="${t.id}">${t?.encodeAsHTML()}</g:link></li> |
---|
| 82 | </g:each> |
---|
| 83 | </ul> |
---|
| 84 | <g:link controller="taskDetailed" params="['taskProcedure.id':taskProcedureInstance?.id]" action="create">Add Task</g:link> |
---|
| 85 | |
---|
| 86 | </td> |
---|
| 87 | </tr> |
---|
| 88 | |
---|
| 89 | </tbody> |
---|
| 90 | </table> |
---|
| 91 | </div> |
---|
| 92 | <div class="buttons"> |
---|
| 93 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
| 94 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 95 | </div> |
---|
| 96 | </g:form> |
---|
| 97 | </div> |
---|
| 98 | </body> |
---|
| 99 | </html> |
---|