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 DepartmentExtendedAttribute</title> |
---|
8 | </head> |
---|
9 | <body> |
---|
10 | <div class="nav"> |
---|
11 | <h1>Create Department Extended Attribute</h1> |
---|
12 | </div> |
---|
13 | <div class="body"> |
---|
14 | <g:render template="/shared/messages" /> |
---|
15 | <g:hasErrors bean="${departmentExtendedAttributeInstance}"> |
---|
16 | <div class="errors"> |
---|
17 | <g:renderErrors bean="${departmentExtendedAttributeInstance}" 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:departmentExtendedAttributeInstance,field:'value','errors')}"> |
---|
30 | <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:departmentExtendedAttributeInstance,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:departmentExtendedAttributeInstance,field:'isActive','errors')}"> |
---|
39 | <g:checkBox name="isActive" value="${departmentExtendedAttributeInstance?.isActive}" ></g:checkBox> |
---|
40 | </td> |
---|
41 | </tr> |
---|
42 | |
---|
43 | <tr class="prop"> |
---|
44 | <td valign="top" class="name"> |
---|
45 | <label for="department">Department:</label> |
---|
46 | </td> |
---|
47 | <td valign="top" class="value ${hasErrors(bean:departmentExtendedAttributeInstance,field:'department','errors')}"> |
---|
48 | <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${departmentExtendedAttributeInstance?.department?.id}" ></g:select> |
---|
49 | </td> |
---|
50 | </tr> |
---|
51 | |
---|
52 | <tr class="prop"> |
---|
53 | <td valign="top" class="name"> |
---|
54 | <label for="extendedAttributeType">Extended Attribute Type:</label> |
---|
55 | </td> |
---|
56 | <td valign="top" class="value ${hasErrors(bean:departmentExtendedAttributeInstance,field:'extendedAttributeType','errors')}"> |
---|
57 | <g:select optionKey="id" from="${ExtendedAttributeType.list()}" name="extendedAttributeType.id" value="${departmentExtendedAttributeInstance?.extendedAttributeType?.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> |
---|