source: trunk/grails-app/views/subAssembly/edit.gsp @ 118

Last change on this file since 118 was 118, checked in by gav, 15 years ago

First commit of Asset domain, including domain-classes, controllers, views and bootstrap.

File size: 5.1 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 SubAssembly</title>
8    </head>
9    <body>
10        <div class="nav">
11            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
12            <span class="menuButton"><g:link class="list" action="list">SubAssembly List</g:link></span>
13            <span class="menuButton"><g:link class="create" action="create">New SubAssembly</g:link></span>
14        </div>
15        <div class="body">
16            <h1>Edit SubAssembly</h1>
17            <g:if test="${flash.message}">
18            <div class="message">${flash.message}</div>
19            </g:if>
20            <g:hasErrors bean="${subAssemblyInstance}">
21            <div class="errors">
22                <g:renderErrors bean="${subAssemblyInstance}" as="list" />
23            </div>
24            </g:hasErrors>
25            <g:form method="post" >
26                <input type="hidden" name="id" value="${subAssemblyInstance?.id}" />
27                <input type="hidden" name="version" value="${subAssemblyInstance?.version}" />
28                <div class="dialog">
29                    <table>
30                        <tbody>
31                       
32                            <tr class="prop">
33                                <td valign="top" class="name">
34                                    <label for="assemblies">Assemblies:</label>
35                                </td>
36                                <td valign="top" class="value ${hasErrors(bean:subAssemblyInstance,field:'assemblies','errors')}">
37                                   
38                                </td>
39                            </tr>
40                       
41                            <tr class="prop">
42                                <td valign="top" class="name">
43                                    <label for="componentItems">Component Items:</label>
44                                </td>
45                                <td valign="top" class="value ${hasErrors(bean:subAssemblyInstance,field:'componentItems','errors')}">
46                                    <g:select name="componentItems"
47from="${ComponentItem.list()}"
48size="5" multiple="yes" optionKey="id"
49value="${subAssemblyInstance?.componentItems}" />
50
51                                </td>
52                            </tr>
53                       
54                            <tr class="prop">
55                                <td valign="top" class="name">
56                                    <label for="description">Description:</label>
57                                </td>
58                                <td valign="top" class="value ${hasErrors(bean:subAssemblyInstance,field:'description','errors')}">
59                                    <input type="text" id="description" name="description" value="${fieldValue(bean:subAssemblyInstance,field:'description')}"/>
60                                </td>
61                            </tr>
62                       
63                            <tr class="prop">
64                                <td valign="top" class="name">
65                                    <label for="isActive">Is Active:</label>
66                                </td>
67                                <td valign="top" class="value ${hasErrors(bean:subAssemblyInstance,field:'isActive','errors')}">
68                                    <g:checkBox name="isActive" value="${subAssemblyInstance?.isActive}" ></g:checkBox>
69                                </td>
70                            </tr>
71                       
72                            <tr class="prop">
73                                <td valign="top" class="name">
74                                    <label for="lifeplan">Lifeplan:</label>
75                                </td>
76                                <td valign="top" class="value ${hasErrors(bean:subAssemblyInstance,field:'lifeplan','errors')}">
77                                    <g:select optionKey="id" from="${LifePlan.list()}" name="lifeplan.id" value="${subAssemblyInstance?.lifeplan?.id}" ></g:select>
78                                </td>
79                            </tr>
80                       
81                            <tr class="prop">
82                                <td valign="top" class="name">
83                                    <label for="name">Name:</label>
84                                </td>
85                                <td valign="top" class="value ${hasErrors(bean:subAssemblyInstance,field:'name','errors')}">
86                                    <input type="text" id="name" name="name" value="${fieldValue(bean:subAssemblyInstance,field:'name')}"/>
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>
Note: See TracBrowser for help on using the repository browser.