source: trunk/grails-app/views/componentItem/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 ComponentItem</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">ComponentItem List</g:link></span>
13            <span class="menuButton"><g:link class="create" action="create">New ComponentItem</g:link></span>
14        </div>
15        <div class="body">
16            <h1>Edit ComponentItem</h1>
17            <g:if test="${flash.message}">
18            <div class="message">${flash.message}</div>
19            </g:if>
20            <g:hasErrors bean="${componentItemInstance}">
21            <div class="errors">
22                <g:renderErrors bean="${componentItemInstance}" as="list" />
23            </div>
24            </g:hasErrors>
25            <g:form method="post" >
26                <input type="hidden" name="id" value="${componentItemInstance?.id}" />
27                <input type="hidden" name="version" value="${componentItemInstance?.version}" />
28                <div class="dialog">
29                    <table>
30                        <tbody>
31                       
32                            <tr class="prop">
33                                <td valign="top" class="name">
34                                    <label for="description">Description:</label>
35                                </td>
36                                <td valign="top" class="value ${hasErrors(bean:componentItemInstance,field:'description','errors')}">
37                                    <input type="text" id="description" name="description" value="${fieldValue(bean:componentItemInstance,field:'description')}"/>
38                                </td>
39                            </tr>
40                       
41                            <tr class="prop">
42                                <td valign="top" class="name">
43                                    <label for="fmeaNumber">Fmea Number:</label>
44                                </td>
45                                <td valign="top" class="value ${hasErrors(bean:componentItemInstance,field:'fmeaNumber','errors')}">
46                                    <input type="text" id="fmeaNumber" name="fmeaNumber" value="${fieldValue(bean:componentItemInstance,field:'fmeaNumber')}" />
47                                </td>
48                            </tr>
49                       
50                            <tr class="prop">
51                                <td valign="top" class="name">
52                                    <label for="isActive">Is Active:</label>
53                                </td>
54                                <td valign="top" class="value ${hasErrors(bean:componentItemInstance,field:'isActive','errors')}">
55                                    <g:checkBox name="isActive" value="${componentItemInstance?.isActive}" ></g:checkBox>
56                                </td>
57                            </tr>
58                       
59                            <tr class="prop">
60                                <td valign="top" class="name">
61                                    <label for="lifeplan">Lifeplan:</label>
62                                </td>
63                                <td valign="top" class="value ${hasErrors(bean:componentItemInstance,field:'lifeplan','errors')}">
64                                    <g:select optionKey="id" from="${LifePlan.list()}" name="lifeplan.id" value="${componentItemInstance?.lifeplan?.id}" ></g:select>
65                                </td>
66                            </tr>
67                       
68                            <tr class="prop">
69                                <td valign="top" class="name">
70                                    <label for="name">Name:</label>
71                                </td>
72                                <td valign="top" class="value ${hasErrors(bean:componentItemInstance,field:'name','errors')}">
73                                    <input type="text" id="name" name="name" value="${fieldValue(bean:componentItemInstance,field:'name')}"/>
74                                </td>
75                            </tr>
76                       
77                            <tr class="prop">
78                                <td valign="top" class="name">
79                                    <label for="subAssemblies">Sub Assemblies:</label>
80                                </td>
81                                <td valign="top" class="value ${hasErrors(bean:componentItemInstance,field:'subAssemblies','errors')}">
82                                   
83                                </td>
84                            </tr>
85                       
86                        </tbody>
87                    </table>
88                </div>
89                <div class="buttons">
90                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
91                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
92                </div>
93            </g:form>
94        </div>
95    </body>
96</html>
Note: See TracBrowser for help on using the repository browser.