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 Site</title> |
---|
8 | </head> |
---|
9 | <body> |
---|
10 | <div class="nav"> |
---|
11 | <span class="menuButton"><g:link class="list" action="list">Site List</g:link></span> |
---|
12 | <span class="menuButton"><g:link class="create" action="create">New Site</g:link></span> |
---|
13 | </div> |
---|
14 | <div class="body"> |
---|
15 | <h1>Edit Site</h1> |
---|
16 | <g:if test="${flash.message}"> |
---|
17 | <div class="message">${flash.message}</div> |
---|
18 | </g:if> |
---|
19 | <g:hasErrors bean="${siteInstance}"> |
---|
20 | <div class="errors"> |
---|
21 | <g:renderErrors bean="${siteInstance}" as="list" /> |
---|
22 | </div> |
---|
23 | </g:hasErrors> |
---|
24 | <g:form method="post" > |
---|
25 | <input type="hidden" name="id" value="${siteInstance?.id}" /> |
---|
26 | <input type="hidden" name="version" value="${siteInstance?.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:siteInstance,field:'name','errors')}"> |
---|
36 | <input type="text" class="description" maxlength="50" id="name" name="name" value="${fieldValue(bean:siteInstance,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:siteInstance,field:'description','errors')}"> |
---|
45 | <input type="text" class="description" maxlength="75" id="description" name="description" value="${fieldValue(bean:siteInstance,field:'description')}"/> |
---|
46 | </td> |
---|
47 | </tr> |
---|
48 | |
---|
49 | <tr class="prop"> |
---|
50 | <td valign="top" class="name"> |
---|
51 | <label for="comment">Comment:</label> |
---|
52 | </td> |
---|
53 | <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'comment','errors')}"> |
---|
54 | <textarea rows="5" cols="40" name="comment">${fieldValue(bean:siteInstance, field:'comment')}</textarea> |
---|
55 | </td> |
---|
56 | </tr> |
---|
57 | |
---|
58 | <tr class="prop"> |
---|
59 | <td valign="top" class="name"> |
---|
60 | <label for="isActive">Is Active:</label> |
---|
61 | </td> |
---|
62 | <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'isActive','errors')}"> |
---|
63 | <g:checkBox name="isActive" value="${siteInstance?.isActive}" ></g:checkBox> |
---|
64 | </td> |
---|
65 | </tr> |
---|
66 | |
---|
67 | <tr class="prop"> |
---|
68 | <td valign="top" class="name"> |
---|
69 | <label for="inventoryStores">Inventory Stores:</label> |
---|
70 | </td> |
---|
71 | <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'inventoryStores','errors')}"> |
---|
72 | |
---|
73 | <ul> |
---|
74 | <g:each var="i" in="${siteInstance?.inventoryStores?}"> |
---|
75 | <li><g:link controller="inventoryStoreDetailed" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> |
---|
76 | </g:each> |
---|
77 | </ul> |
---|
78 | <g:link controller="inventoryStoreDetailed" params="['site.id':siteInstance?.id]" action="create">Add InventoryStore</g:link> |
---|
79 | |
---|
80 | </td> |
---|
81 | </tr> |
---|
82 | |
---|
83 | <tr class="prop"> |
---|
84 | <td valign="top" class="name"> |
---|
85 | <label for="sections">Sections:</label> |
---|
86 | </td> |
---|
87 | <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'sections','errors')}"> |
---|
88 | |
---|
89 | <ul> |
---|
90 | <g:each var="s" in="${siteInstance?.sections?}"> |
---|
91 | <li><g:link controller="sectionDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> |
---|
92 | </g:each> |
---|
93 | </ul> |
---|
94 | <g:link controller="sectionDetailed" params="['site.id':siteInstance?.id]" action="create">Add Section</g:link> |
---|
95 | |
---|
96 | </td> |
---|
97 | </tr> |
---|
98 | |
---|
99 | <tr class="prop"> |
---|
100 | <td valign="top" class="name"> |
---|
101 | <label for="siteExtendedAttributes">Site Extended Attributes:</label> |
---|
102 | </td> |
---|
103 | <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'siteExtendedAttributes','errors')}"> |
---|
104 | |
---|
105 | <ul> |
---|
106 | <g:each var="s" in="${siteInstance?.siteExtendedAttributes?}"> |
---|
107 | <li><g:link controller="siteExtendedAttributeDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> |
---|
108 | </g:each> |
---|
109 | </ul> |
---|
110 | <g:link controller="siteExtendedAttributeDetailed" params="['site.id':siteInstance?.id]" action="create">Add SiteExtendedAttribute</g:link> |
---|
111 | |
---|
112 | </td> |
---|
113 | </tr> |
---|
114 | |
---|
115 | </tbody> |
---|
116 | </table> |
---|
117 | </div> |
---|
118 | <div class="buttons"> |
---|
119 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
120 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
121 | </div> |
---|
122 | </g:form> |
---|
123 | </div> |
---|
124 | </body> |
---|
125 | </html> |
---|