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

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

Run generate-all on all controllers and views except Person and Authority.
Extensive work on Asset domain and application now compiles and runs well.
Update BootStrap? to suite.

File size: 5.4 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="maintenanceActions">Maintenance Actions:</label>
75                                </td>
76                                <td valign="top" class="value ${hasErrors(bean:subAssemblyInstance,field:'maintenanceActions','errors')}">
77                                   
78<ul>
79<g:each var="m" in="${subAssemblyInstance?.maintenanceActions?}">
80    <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
81</g:each>
82</ul>
83<g:link controller="maintenanceAction" params="['subAssembly.id':subAssemblyInstance?.id]" action="create">Add MaintenanceAction</g:link>
84
85                                </td>
86                            </tr>
87                       
88                            <tr class="prop">
89                                <td valign="top" class="name">
90                                    <label for="name">Name:</label>
91                                </td>
92                                <td valign="top" class="value ${hasErrors(bean:subAssemblyInstance,field:'name','errors')}">
93                                    <input type="text" id="name" name="name" value="${fieldValue(bean:subAssemblyInstance,field:'name')}"/>
94                                </td>
95                            </tr>
96                       
97                        </tbody>
98                    </table>
99                </div>
100                <div class="buttons">
101                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
102                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
103                </div>
104            </g:form>
105        </div>
106    </body>
107</html>
Note: See TracBrowser for help on using the repository browser.