source: branches/features/taskProcedureRework/grails-app/views/taskProcedureDetailed/edit.gsp @ 776

Last change on this file since 776 was 776, checked in by gav, 14 years ago

TaskProcedure? improvements, filter assemblies, pre populate a maintenanceAction for each assembly at creation.

File size: 1.9 KB
Line 
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        <nav:resources override="true"/>
9    </head>
10    <body>
11        <div class="nav">
12            <nav:renderSubItems group="navAlt"/>
13        </div>
14        <div class="body">
15            <g:render template="/shared/messages" />
16
17            <g:hasErrors bean="${taskProcedureInstance}">
18                <div class="errors">
19                    <g:renderErrors bean="${taskProcedureInstance}" as="list" />
20                </div>
21            </g:hasErrors>
22
23            <g:form method="post" >
24                <input type="hidden" name="id" value="${taskProcedureInstance?.id}" />
25                <input type="hidden" name="version" value="${taskProcedureInstance?.version}" />
26
27                <g:render template="taskProcedure" model="['taskProcedureInstance': taskProcedureInstance]" />
28
29                <div class="buttons">
30                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
31                    <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span>
32                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
33                </div>
34            </g:form>
35        </div>
36        <table style="display:none;">
37            <g:render template="maintenanceAction" model="['tp': null,
38                                                                                                'ma': null,
39                                                                                                'i': '_clone',
40                                                                                                'assemblies': assemblies]" />
41        </table>
42    </body>
43</html>
Note: See TracBrowser for help on using the repository browser.