source: trunk/grails-app/views/sectionExtendedAttributeDetailed/create.gsp @ 413

Last change on this file since 413 was 413, checked in by gav, 14 years ago

Change views to use shared messages: ExtendedAttribute views for Asset, AssetSubItem?, Department, Section, Site.

File size: 3.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>Create SectionExtendedAttribute</title>
8    </head>
9    <body>
10        <div class="nav">
11            <h1>Create Section Extended Attribute</h1>
12        </div>
13        <div class="body">
14            <g:render template="/shared/messages" />
15            <g:hasErrors bean="${sectionExtendedAttributeInstance}">
16            <div class="errors">
17                <g:renderErrors bean="${sectionExtendedAttributeInstance}" as="list" />
18            </div>
19            </g:hasErrors>
20            <g:form action="save" method="post" >
21                <div class="dialog">
22                    <table>
23                        <tbody>
24                       
25                            <tr class="prop">
26                                <td valign="top" class="name">
27                                    <label for="value">Value:</label>
28                                </td>
29                                <td valign="top" class="value ${hasErrors(bean:sectionExtendedAttributeInstance,field:'value','errors')}">
30                                    <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:sectionExtendedAttributeInstance,field:'value')}"/>
31                                </td>
32                            </tr>
33                       
34                            <tr class="prop">
35                                <td valign="top" class="name">
36                                    <label for="isActive">Is Active:</label>
37                                </td>
38                                <td valign="top" class="value ${hasErrors(bean:sectionExtendedAttributeInstance,field:'isActive','errors')}">
39                                    <g:checkBox name="isActive" value="${sectionExtendedAttributeInstance?.isActive}" ></g:checkBox>
40                                </td>
41                            </tr>
42                       
43                            <tr class="prop">
44                                <td valign="top" class="name">
45                                    <label for="extendedAttributeType">Extended Attribute Type:</label>
46                                </td>
47                                <td valign="top" class="value ${hasErrors(bean:sectionExtendedAttributeInstance,field:'extendedAttributeType','errors')}">
48                                    <g:select optionKey="id" from="${ExtendedAttributeType.list()}" name="extendedAttributeType.id" value="${sectionExtendedAttributeInstance?.extendedAttributeType?.id}" ></g:select>
49                                </td>
50                            </tr>
51                       
52                            <tr class="prop">
53                                <td valign="top" class="name">
54                                    <label for="section">Section:</label>
55                                </td>
56                                <td valign="top" class="value ${hasErrors(bean:sectionExtendedAttributeInstance,field:'section','errors')}">
57                                    <g:select optionKey="id" from="${Section.list()}" name="section.id" value="${sectionExtendedAttributeInstance?.section?.id}" ></g:select>
58                                </td>
59                            </tr>
60                       
61                        </tbody>
62                    </table>
63                </div>
64                <div class="buttons">
65                    <span class="button"><input class="save" type="submit" value="Create" /></span>
66                </div>
67            </g:form>
68        </div>
69    </body>
70</html>
Note: See TracBrowser for help on using the repository browser.