[268] | 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 DepartmentExtendedAttribute</title> |
---|
| 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
[413] | 11 | <h1>Edit Department Extended Attribute</h1> |
---|
[268] | 12 | </div> |
---|
| 13 | <div class="body"> |
---|
[413] | 14 | <g:render template="/shared/messages" /> |
---|
[268] | 15 | <g:hasErrors bean="${departmentExtendedAttributeInstance}"> |
---|
| 16 | <div class="errors"> |
---|
| 17 | <g:renderErrors bean="${departmentExtendedAttributeInstance}" as="list" /> |
---|
| 18 | </div> |
---|
| 19 | </g:hasErrors> |
---|
| 20 | <g:form method="post" > |
---|
| 21 | <input type="hidden" name="id" value="${departmentExtendedAttributeInstance?.id}" /> |
---|
| 22 | <input type="hidden" name="version" value="${departmentExtendedAttributeInstance?.version}" /> |
---|
| 23 | <div class="dialog"> |
---|
| 24 | <table> |
---|
| 25 | <tbody> |
---|
| 26 | |
---|
| 27 | <tr class="prop"> |
---|
| 28 | <td valign="top" class="name"> |
---|
| 29 | <label for="value">Value:</label> |
---|
| 30 | </td> |
---|
| 31 | <td valign="top" class="value ${hasErrors(bean:departmentExtendedAttributeInstance,field:'value','errors')}"> |
---|
| 32 | <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:departmentExtendedAttributeInstance,field:'value')}"/> |
---|
| 33 | </td> |
---|
| 34 | </tr> |
---|
| 35 | |
---|
| 36 | <tr class="prop"> |
---|
| 37 | <td valign="top" class="name"> |
---|
| 38 | <label for="isActive">Is Active:</label> |
---|
| 39 | </td> |
---|
| 40 | <td valign="top" class="value ${hasErrors(bean:departmentExtendedAttributeInstance,field:'isActive','errors')}"> |
---|
| 41 | <g:checkBox name="isActive" value="${departmentExtendedAttributeInstance?.isActive}" ></g:checkBox> |
---|
| 42 | </td> |
---|
| 43 | </tr> |
---|
| 44 | |
---|
| 45 | <tr class="prop"> |
---|
| 46 | <td valign="top" class="name"> |
---|
| 47 | <label for="department">Department:</label> |
---|
| 48 | </td> |
---|
| 49 | <td valign="top" class="value ${hasErrors(bean:departmentExtendedAttributeInstance,field:'department','errors')}"> |
---|
| 50 | <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${departmentExtendedAttributeInstance?.department?.id}" ></g:select> |
---|
| 51 | </td> |
---|
| 52 | </tr> |
---|
| 53 | |
---|
| 54 | <tr class="prop"> |
---|
| 55 | <td valign="top" class="name"> |
---|
| 56 | <label for="extendedAttributeType">Extended Attribute Type:</label> |
---|
| 57 | </td> |
---|
| 58 | <td valign="top" class="value ${hasErrors(bean:departmentExtendedAttributeInstance,field:'extendedAttributeType','errors')}"> |
---|
| 59 | <g:select optionKey="id" from="${ExtendedAttributeType.list()}" name="extendedAttributeType.id" value="${departmentExtendedAttributeInstance?.extendedAttributeType?.id}" ></g:select> |
---|
| 60 | </td> |
---|
| 61 | </tr> |
---|
| 62 | |
---|
| 63 | </tbody> |
---|
| 64 | </table> |
---|
| 65 | </div> |
---|
| 66 | <div class="buttons"> |
---|
| 67 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
[413] | 68 | <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span> |
---|
[268] | 69 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 70 | </div> |
---|
| 71 | </g:form> |
---|
| 72 | </div> |
---|
| 73 | </body> |
---|
| 74 | </html> |
---|