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