[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> |
---|
[754] | 29 | |
---|
[133] | 30 | <tr class="prop"> |
---|
[754] | 31 | <td valign="top" class="name">Id:</td> |
---|
| 32 | <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'id')}</td> |
---|
| 33 | </tr> |
---|
| 34 | |
---|
[133] | 35 | <tr class="prop"> |
---|
| 36 | <td valign="top" class="name"> |
---|
| 37 | <label for="maintenanceActions">Maintenance Actions:</label> |
---|
| 38 | </td> |
---|
| 39 | <td valign="top" class="value ${hasErrors(bean:taskProcedureInstance,field:'maintenanceActions','errors')}"> |
---|
| 40 | |
---|
| 41 | <ul> |
---|
| 42 | <g:each var="m" in="${taskProcedureInstance?.maintenanceActions?}"> |
---|
| 43 | <li><g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> |
---|
| 44 | </g:each> |
---|
| 45 | </ul> |
---|
[410] | 46 | <g:link controller="maintenanceActionDetailed" params="['taskProcedure.id':taskProcedureInstance?.id]" action="create">+Add MaintenanceAction</g:link> |
---|
[133] | 47 | |
---|
| 48 | </td> |
---|
| 49 | </tr> |
---|
| 50 | |
---|
| 51 | <tr class="prop"> |
---|
| 52 | <td valign="top" class="name"> |
---|
| 53 | <label for="tasks">Tasks:</label> |
---|
| 54 | </td> |
---|
| 55 | <td valign="top" class="value ${hasErrors(bean:taskProcedureInstance,field:'tasks','errors')}"> |
---|
| 56 | |
---|
| 57 | <ul> |
---|
| 58 | <g:each var="t" in="${taskProcedureInstance?.tasks?}"> |
---|
| 59 | <li><g:link controller="taskDetailed" action="show" id="${t.id}">${t?.encodeAsHTML()}</g:link></li> |
---|
| 60 | </g:each> |
---|
| 61 | </ul> |
---|
[410] | 62 | <g:link controller="taskDetailed" params="['taskProcedure.id':taskProcedureInstance?.id]" action="create">+Add Task</g:link> |
---|
[133] | 63 | |
---|
| 64 | </td> |
---|
| 65 | </tr> |
---|
| 66 | |
---|
| 67 | </tbody> |
---|
| 68 | </table> |
---|
| 69 | </div> |
---|
| 70 | <div class="buttons"> |
---|
| 71 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
| 72 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 73 | </div> |
---|
| 74 | </g:form> |
---|
| 75 | </div> |
---|
| 76 | </body> |
---|
| 77 | </html> |
---|