source: trunk/src/grails-app/views/entryType/edit.gsp @ 22

Last change on this file since 22 was 22, checked in by gavin, 15 years ago

Delete typeOfClass * and add openMim logo again.

File size: 3.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 EntryType</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">EntryType List</g:link></span>
13            <span class="menuButton"><g:link class="create" action="create">New EntryType</g:link></span>
14        </div>
15        <div class="body">
16            <h1>Edit EntryType</h1>
17            <g:if test="${flash.message}">
18            <div class="message">${flash.message}</div>
19            </g:if>
20            <g:hasErrors bean="${entryTypeInstance}">
21            <div class="errors">
22                <g:renderErrors bean="${entryTypeInstance}" as="list" />
23            </div>
24            </g:hasErrors>
25            <g:form method="post" >
26                <input type="hidden" name="id" value="${entryTypeInstance?.id}" />
27                <div class="dialog">
28                    <table>
29                        <tbody>
30                       
31                            <tr class="prop">
32                                <td valign="top" class="name">
33                                    <label for="description">Description:</label>
34                                </td>
35                                <td valign="top" class="value ${hasErrors(bean:entryTypeInstance,field:'description','errors')}">
36                                    <input type="text" id="description" name="description" value="${fieldValue(bean:entryTypeInstance,field:'description')}"/>
37                                </td>
38                            </tr>
39                       
40                            <tr class="prop">
41                                <td valign="top" class="name">
42                                    <label for="entry">Entry:</label>
43                                </td>
44                                <td valign="top" class="value ${hasErrors(bean:entryTypeInstance,field:'entry','errors')}">
45                                    <g:select optionKey="id" from="${Entry.list()}" name="entry.id" value="${entryTypeInstance?.entry?.id}" ></g:select>
46                                </td>
47                            </tr>
48                       
49                            <tr class="prop">
50                                <td valign="top" class="name">
51                                    <label for="isActive">Is Active:</label>
52                                </td>
53                                <td valign="top" class="value ${hasErrors(bean:entryTypeInstance,field:'isActive','errors')}">
54                                    <g:checkBox name="isActive" value="${entryTypeInstance?.isActive}" ></g:checkBox>
55                                </td>
56                            </tr>
57                       
58                            <tr class="prop">
59                                <td valign="top" class="name">
60                                    <label for="name">Name:</label>
61                                </td>
62                                <td valign="top" class="value ${hasErrors(bean:entryTypeInstance,field:'name','errors')}">
63                                    <input type="text" id="name" name="name" value="${fieldValue(bean:entryTypeInstance,field:'name')}"/>
64                                </td>
65                            </tr>
66                       
67                        </tbody>
68                    </table>
69                </div>
70                <div class="buttons">
71                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
72                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
73                </div>
74            </g:form>
75        </div>
76    </body>
77</html>
Note: See TracBrowser for help on using the repository browser.