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"><g:link class="list" action="list">SystemSection List</g:link></span> |
---|
12 | <span class="menuButton"><g:link class="create" action="create">New SystemSection</g:link></span> |
---|
13 | </div> |
---|
14 | <div class="body"> |
---|
15 | <h1>Edit SystemSection</h1> |
---|
16 | <g:if test="${flash.message}"> |
---|
17 | <div class="message">${flash.message}</div> |
---|
18 | </g:if> |
---|
19 | <g:hasErrors bean="${systemSectionInstance}"> |
---|
20 | <div class="errors"> |
---|
21 | <g:renderErrors bean="${systemSectionInstance}" as="list" /> |
---|
22 | </div> |
---|
23 | </g:hasErrors> |
---|
24 | <g:form method="post" > |
---|
25 | <input type="hidden" name="id" value="${systemSectionInstance?.id}" /> |
---|
26 | <input type="hidden" name="version" value="${systemSectionInstance?.version}" /> |
---|
27 | <div class="dialog"> |
---|
28 | <table> |
---|
29 | <tbody> |
---|
30 | |
---|
31 | <tr class="prop"> |
---|
32 | <td valign="top" class="name"> |
---|
33 | <label for="name">Name:</label> |
---|
34 | </td> |
---|
35 | <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'name','errors')}"> |
---|
36 | <input type="text" id="name" name="name" value="${fieldValue(bean:systemSectionInstance,field:'name')}"/> |
---|
37 | </td> |
---|
38 | </tr> |
---|
39 | |
---|
40 | <tr class="prop"> |
---|
41 | <td valign="top" class="name"> |
---|
42 | <label for="description">Description:</label> |
---|
43 | </td> |
---|
44 | <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'description','errors')}"> |
---|
45 | <input type="text" id="description" name="description" value="${fieldValue(bean:systemSectionInstance,field:'description')}"/> |
---|
46 | </td> |
---|
47 | </tr> |
---|
48 | |
---|
49 | <tr class="prop"> |
---|
50 | <td valign="top" class="name"> |
---|
51 | <label for="costCode">Cost Code:</label> |
---|
52 | </td> |
---|
53 | <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'costCode','errors')}"> |
---|
54 | <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:systemSectionInstance,field:'costCode')}"/> |
---|
55 | </td> |
---|
56 | </tr> |
---|
57 | |
---|
58 | <tr class="prop"> |
---|
59 | <td valign="top" class="name"> |
---|
60 | <label for="department">Department:</label> |
---|
61 | </td> |
---|
62 | <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'department','errors')}"> |
---|
63 | <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${systemSectionInstance?.department?.id}" ></g:select> |
---|
64 | </td> |
---|
65 | </tr> |
---|
66 | |
---|
67 | <tr class="prop"> |
---|
68 | <td valign="top" class="name"> |
---|
69 | <label for="site">Site:</label> |
---|
70 | </td> |
---|
71 | <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'site','errors')}"> |
---|
72 | <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${systemSectionInstance?.site?.id}" ></g:select> |
---|
73 | </td> |
---|
74 | </tr> |
---|
75 | |
---|
76 | <tr class="prop"> |
---|
77 | <td valign="top" class="name"> |
---|
78 | <label for="isActive">Is Active:</label> |
---|
79 | </td> |
---|
80 | <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'isActive','errors')}"> |
---|
81 | <g:checkBox name="isActive" value="${systemSectionInstance?.isActive}" ></g:checkBox> |
---|
82 | </td> |
---|
83 | </tr> |
---|
84 | |
---|
85 | <tr class="prop"> |
---|
86 | <td valign="top" class="name"> |
---|
87 | <label for="assets">Assets:</label> |
---|
88 | </td> |
---|
89 | <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'assets','errors')}"> |
---|
90 | |
---|
91 | <ul> |
---|
92 | <g:each var="a" in="${systemSectionInstance?.assets?}"> |
---|
93 | <li><g:link controller="assetDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> |
---|
94 | </g:each> |
---|
95 | </ul> |
---|
96 | <g:link controller="assetDetailed" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add Asset</g:link> |
---|
97 | |
---|
98 | </td> |
---|
99 | </tr> |
---|
100 | |
---|
101 | <tr class="prop"> |
---|
102 | <td valign="top" class="name"> |
---|
103 | <label for="maintenanceActions">Maintenance Actions:</label> |
---|
104 | </td> |
---|
105 | <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'maintenanceActions','errors')}"> |
---|
106 | |
---|
107 | <ul> |
---|
108 | <g:each var="m" in="${systemSectionInstance?.maintenanceActions?}"> |
---|
109 | <li><g:link controller="maintenanceActionDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> |
---|
110 | </g:each> |
---|
111 | </ul> |
---|
112 | <g:link controller="maintenanceActionDetailed" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add MaintenanceAction</g:link> |
---|
113 | |
---|
114 | </td> |
---|
115 | </tr> |
---|
116 | |
---|
117 | </tbody> |
---|
118 | </table> |
---|
119 | </div> |
---|
120 | <div class="buttons"> |
---|
121 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
122 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
123 | </div> |
---|
124 | </g:form> |
---|
125 | </div> |
---|
126 | </body> |
---|
127 | </html> |
---|