

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Edit TaskProcedure</title>
        <nav:resources override="true"/>
        <g:javascript src="dynamicOneToMany.js" />
    </head>
    <body>
        <div class="nav">
            <nav:renderSubItems group="navAlt"/>
        </div>
        <div class="body">
            <g:render template="/shared/messages" />

            <g:hasErrors bean="${taskProcedureInstance}">
                <div class="errors">
                    <g:renderErrors bean="${taskProcedureInstance}" as="list" />
                </div>
            </g:hasErrors>

            <g:form method="post" >
                <input type="hidden" name="id" value="${taskProcedureInstance?.id}" />
                <input type="hidden" name="version" value="${taskProcedureInstance?.version}" />

                <g:render template="taskProcedure" model="['taskProcedureInstance': taskProcedureInstance]" />

                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
                    <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span>
                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
                </div>
            </g:form>
        </div>
        <table style="display:none;">
            <g:render template="documentReference" model="['docRef': null,
                                                                                                        'i': '_clone']" />
        </table>
        <table style="display:none;">
            <g:render template="maintenanceAction" model="['tp': null,
                                                                                                'ma': null,
                                                                                                'i': '_clone',
                                                                                                'assemblies': assemblies]" />
        </table>
    </body>
</html>
