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 SystemSection</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">SystemSection List</g:link></span> |
---|
13 | <span class="menuButton"><g:link class="create" action="create">New SystemSection</g:link></span> |
---|
14 | </div> |
---|
15 | <div class="body"> |
---|
16 | <h1>Edit SystemSection</h1> |
---|
17 | <g:if test="${flash.message}"> |
---|
18 | <div class="message">${flash.message}</div> |
---|
19 | </g:if> |
---|
20 | <g:hasErrors bean="${systemSectionInstance}"> |
---|
21 | <div class="errors"> |
---|
22 | <g:renderErrors bean="${systemSectionInstance}" as="list" /> |
---|
23 | </div> |
---|
24 | </g:hasErrors> |
---|
25 | <g:form method="post" > |
---|
26 | <input type="hidden" name="id" value="${systemSectionInstance?.id}" /> |
---|
27 | <input type="hidden" name="version" value="${systemSectionInstance?.version}" /> |
---|
28 | <div class="dialog"> |
---|
29 | <table> |
---|
30 | <tbody> |
---|
31 | |
---|
32 | <tr class="prop"> |
---|
33 | <td valign="top" class="name"> |
---|
34 | <label for="assetTypes">Asset Types:</label> |
---|
35 | </td> |
---|
36 | <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'assetTypes','errors')}"> |
---|
37 | |
---|
38 | <ul> |
---|
39 | <g:each var="a" in="${systemSectionInstance?.assetTypes?}"> |
---|
40 | <li><g:link controller="assetType" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> |
---|
41 | </g:each> |
---|
42 | </ul> |
---|
43 | <g:link controller="assetType" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add AssetType</g:link> |
---|
44 | |
---|
45 | </td> |
---|
46 | </tr> |
---|
47 | |
---|
48 | <tr class="prop"> |
---|
49 | <td valign="top" class="name"> |
---|
50 | <label for="description">Description:</label> |
---|
51 | </td> |
---|
52 | <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'description','errors')}"> |
---|
53 | <input type="text" id="description" name="description" value="${fieldValue(bean:systemSectionInstance,field:'description')}"/> |
---|
54 | </td> |
---|
55 | </tr> |
---|
56 | |
---|
57 | <tr class="prop"> |
---|
58 | <td valign="top" class="name"> |
---|
59 | <label for="isActive">Is Active:</label> |
---|
60 | </td> |
---|
61 | <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'isActive','errors')}"> |
---|
62 | <g:checkBox name="isActive" value="${systemSectionInstance?.isActive}" ></g:checkBox> |
---|
63 | </td> |
---|
64 | </tr> |
---|
65 | |
---|
66 | <tr class="prop"> |
---|
67 | <td valign="top" class="name"> |
---|
68 | <label for="lifePlans">Life Plans:</label> |
---|
69 | </td> |
---|
70 | <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'lifePlans','errors')}"> |
---|
71 | <g:select name="lifePlans" |
---|
72 | from="${LifePlan.list()}" |
---|
73 | size="5" multiple="yes" optionKey="id" |
---|
74 | value="${systemSectionInstance?.lifePlans}" /> |
---|
75 | |
---|
76 | </td> |
---|
77 | </tr> |
---|
78 | |
---|
79 | <tr class="prop"> |
---|
80 | <td valign="top" class="name"> |
---|
81 | <label for="name">Name:</label> |
---|
82 | </td> |
---|
83 | <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'name','errors')}"> |
---|
84 | <input type="text" id="name" name="name" value="${fieldValue(bean:systemSectionInstance,field:'name')}"/> |
---|
85 | </td> |
---|
86 | </tr> |
---|
87 | |
---|
88 | </tbody> |
---|
89 | </table> |
---|
90 | </div> |
---|
91 | <div class="buttons"> |
---|
92 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
93 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
94 | </div> |
---|
95 | </g:form> |
---|
96 | </div> |
---|
97 | </body> |
---|
98 | </html> |
---|