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

Last change on this file since 773 was 773, checked in by gav, 9 years ago

Add cancel button to TaskProcedure edit view.

File size: 1.6 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, 'ma': null, 'i': '_clone']" />
38        </table>
39    </body>
40</html>
Note: See TracBrowser for help on using the repository browser.