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