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