

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Show Address</title>
    </head>
    <body>
        <div class="nav">
            <h1>Show Address</h1>
        </div>
        <div class="body">
            <g:render template="/shared/messages" />
            <div class="dialog">
                <table>
                    <tbody>

                    
                        <tr class="prop">
                            <td valign="top" class="name">Id:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:addressInstance, field:'id')}</td>
                            
                        </tr>
                    
                            <g:if test="${addressInstance.manufacturer}">
                                <tr class="prop">
                                    <td valign="top" class="name">Manufacturer:</td>
                                    
                                    <td valign="top" class="value"><g:link controller="manufacturerDetailed" action="show" id="${addressInstance.manufacturer.id}">${addressInstance.manufacturer.encodeAsHTML()}</g:link></td>
                                    
                                </tr>
                            </g:if>
                            
                            <g:if test="${addressInstance.supplier}">
                                <tr class="prop">
                                    <td valign="top" class="name">Supplier:</td>
                                    
                                    <td valign="top" class="value"><g:link controller="supplierDetailed" action="show" id="${addressInstance.supplier.id}">${addressInstance.supplier.encodeAsHTML()}</g:link></td>
                                    
                                </tr>
                            </g:if>
                            
                            <g:if test="${addressInstance.person}">
                                <tr class="prop">
                                    <td valign="top" class="name">Person:</td>
                                    
                                    <td valign="top" class="value"><g:link controller="person" action="show" id="${addressInstance.person.id}">${addressInstance.person.encodeAsHTML()}</g:link></td>
                                    
                                </tr>
                            </g:if>
                            
                            <g:if test="${addressInstance.site}">
                                <tr class="prop">
                                    <td valign="top" class="name">Site:</td>
                                    
                                    <td valign="top" class="value"><g:link controller="siteDetailed" action="show" id="${addressInstance.site.id}">${addressInstance.site.encodeAsHTML()}</g:link></td>
                                    
                                </tr>
                            </g:if>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Address Type:</td>
                            
                            <td valign="top" class="value">${addressInstance?.addressType?.encodeAsHTML()}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Street1:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:addressInstance, field:'street1')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Street2:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:addressInstance, field:'street2')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">City:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:addressInstance, field:'city')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">State:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:addressInstance, field:'state')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Post Code:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:addressInstance, field:'postCode')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Country:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:addressInstance, field:'country')}</td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <input type="hidden" name="id" value="${addressInstance?.id}" />
                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
                </g:form>
            </div>
        </div>
    </body>
</html>
