[116] | 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> |
---|
[385] | 8 | <nav:resources override="true"/> |
---|
[116] | 9 | </head> |
---|
| 10 | <body> |
---|
| 11 | <div class="nav"> |
---|
[385] | 12 | <nav:renderSubItems group="navAlt"/> |
---|
[116] | 13 | </div> |
---|
| 14 | <div class="body"> |
---|
[357] | 15 | <g:render template="/shared/messages" /> |
---|
[116] | 16 | <g:hasErrors bean="${siteInstance}"> |
---|
| 17 | <div class="errors"> |
---|
| 18 | <g:renderErrors bean="${siteInstance}" as="list" /> |
---|
| 19 | </div> |
---|
| 20 | </g:hasErrors> |
---|
| 21 | <g:form method="post" > |
---|
| 22 | <input type="hidden" name="id" value="${siteInstance?.id}" /> |
---|
| 23 | <input type="hidden" name="version" value="${siteInstance?.version}" /> |
---|
| 24 | <div class="dialog"> |
---|
| 25 | <table> |
---|
| 26 | <tbody> |
---|
| 27 | |
---|
| 28 | <tr class="prop"> |
---|
| 29 | <td valign="top" class="name"> |
---|
| 30 | <label for="name">Name:</label> |
---|
| 31 | </td> |
---|
| 32 | <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'name','errors')}"> |
---|
[332] | 33 | <input type="text" class="description" maxlength="50" id="name" name="name" value="${fieldValue(bean:siteInstance,field:'name')}"/> |
---|
[116] | 34 | </td> |
---|
| 35 | </tr> |
---|
| 36 | |
---|
| 37 | <tr class="prop"> |
---|
| 38 | <td valign="top" class="name"> |
---|
| 39 | <label for="description">Description:</label> |
---|
| 40 | </td> |
---|
| 41 | <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'description','errors')}"> |
---|
[332] | 42 | <input type="text" class="description" maxlength="75" id="description" name="description" value="${fieldValue(bean:siteInstance,field:'description')}"/> |
---|
[116] | 43 | </td> |
---|
| 44 | </tr> |
---|
| 45 | |
---|
| 46 | <tr class="prop"> |
---|
| 47 | <td valign="top" class="name"> |
---|
[332] | 48 | <label for="comment">Comment:</label> |
---|
| 49 | </td> |
---|
| 50 | <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'comment','errors')}"> |
---|
| 51 | <textarea rows="5" cols="40" name="comment">${fieldValue(bean:siteInstance, field:'comment')}</textarea> |
---|
| 52 | </td> |
---|
| 53 | </tr> |
---|
| 54 | |
---|
| 55 | <tr class="prop"> |
---|
| 56 | <td valign="top" class="name"> |
---|
[268] | 57 | <label for="isActive">Is Active:</label> |
---|
[163] | 58 | </td> |
---|
[268] | 59 | <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'isActive','errors')}"> |
---|
| 60 | <g:checkBox name="isActive" value="${siteInstance?.isActive}" ></g:checkBox> |
---|
[163] | 61 | </td> |
---|
| 62 | </tr> |
---|
| 63 | |
---|
| 64 | <tr class="prop"> |
---|
| 65 | <td valign="top" class="name"> |
---|
[273] | 66 | <label for="inventoryStores">Inventory Stores:</label> |
---|
| 67 | </td> |
---|
| 68 | <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'inventoryStores','errors')}"> |
---|
| 69 | |
---|
| 70 | <ul> |
---|
| 71 | <g:each var="i" in="${siteInstance?.inventoryStores?}"> |
---|
[289] | 72 | <li><g:link controller="inventoryStoreDetailed" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> |
---|
[273] | 73 | </g:each> |
---|
| 74 | </ul> |
---|
[410] | 75 | <g:link controller="inventoryStoreDetailed" params="['site.id':siteInstance?.id]" action="create">+Add Inventory Store</g:link> |
---|
[273] | 76 | |
---|
| 77 | </td> |
---|
| 78 | </tr> |
---|
[402] | 79 | |
---|
[273] | 80 | <tr class="prop"> |
---|
| 81 | <td valign="top" class="name"> |
---|
[402] | 82 | <label for="addresses">Contact:</label> |
---|
| 83 | </td> |
---|
| 84 | <td valign="top" class="value"> |
---|
| 85 | <ul> |
---|
| 86 | <g:each var="i" in="${siteInstance?.contacts}"> |
---|
| 87 | <li><g:link controller="contactDetailed" action="show" id="${i.id}"> |
---|
| 88 | ${i?.encodeAsHTML()} |
---|
| 89 | </g:link></li> |
---|
| 90 | </g:each> |
---|
| 91 | </ul> |
---|
| 92 | <g:link controller="contactDetailed" params="['site.id':siteInstance?.id]" action="create">+Add Contact</g:link> |
---|
| 93 | </td> |
---|
| 94 | </tr> |
---|
| 95 | |
---|
| 96 | <tr class="prop"> |
---|
| 97 | <td valign="top" class="name"> |
---|
[397] | 98 | <label for="addresses">Addresses:</label> |
---|
| 99 | </td> |
---|
| 100 | <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'addresses','errors')}"> |
---|
| 101 | |
---|
| 102 | <ul> |
---|
| 103 | <g:each var="i" in="${siteInstance?.addresses?}"> |
---|
| 104 | <li><g:link controller="addressDetailed" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> |
---|
| 105 | </g:each> |
---|
| 106 | </ul> |
---|
[402] | 107 | <g:link controller="addressDetailed" params="['site.id':siteInstance?.id]" action="create">+Add Address</g:link> |
---|
[397] | 108 | |
---|
| 109 | </td> |
---|
| 110 | </tr> |
---|
| 111 | |
---|
| 112 | <tr class="prop"> |
---|
| 113 | <td valign="top" class="name"> |
---|
[268] | 114 | <label for="sections">Sections:</label> |
---|
[116] | 115 | </td> |
---|
[268] | 116 | <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'sections','errors')}"> |
---|
[116] | 117 | |
---|
| 118 | <ul> |
---|
[268] | 119 | <g:each var="s" in="${siteInstance?.sections?}"> |
---|
[289] | 120 | <li><g:link controller="sectionDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> |
---|
[116] | 121 | </g:each> |
---|
| 122 | </ul> |
---|
[410] | 123 | <g:link controller="sectionDetailed" params="['site.id':siteInstance?.id]" action="create">+Add Section</g:link> |
---|
[116] | 124 | |
---|
| 125 | </td> |
---|
| 126 | </tr> |
---|
| 127 | |
---|
| 128 | <tr class="prop"> |
---|
| 129 | <td valign="top" class="name"> |
---|
[268] | 130 | <label for="siteExtendedAttributes">Site Extended Attributes:</label> |
---|
[116] | 131 | </td> |
---|
[268] | 132 | <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'siteExtendedAttributes','errors')}"> |
---|
[122] | 133 | |
---|
| 134 | <ul> |
---|
[268] | 135 | <g:each var="s" in="${siteInstance?.siteExtendedAttributes?}"> |
---|
[289] | 136 | <li><g:link controller="siteExtendedAttributeDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> |
---|
[122] | 137 | </g:each> |
---|
| 138 | </ul> |
---|
[410] | 139 | <g:link controller="siteExtendedAttributeDetailed" params="['site.id':siteInstance?.id]" action="create">+Add Extended Attribute</g:link> |
---|
[122] | 140 | |
---|
| 141 | </td> |
---|
| 142 | </tr> |
---|
| 143 | |
---|
[116] | 144 | </tbody> |
---|
| 145 | </table> |
---|
| 146 | </div> |
---|
| 147 | <div class="buttons"> |
---|
| 148 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
[385] | 149 | <span class="button"><g:actionSubmit class="cancel" value="Cancel" action="Show"/></span> |
---|
[116] | 150 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 151 | </div> |
---|
| 152 | </g:form> |
---|
| 153 | </div> |
---|
| 154 | </body> |
---|
| 155 | </html> |
---|