

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Show Contact</title>
    </head>
    <body>
        <div class="nav">
            <h1>Show Contact</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:contactInstance, field:'id')}</td>
                        </tr>

                        <g:if test="${contactInstance.manufacturer}">
                            <tr class="prop">
                                <td valign="top" class="name">Manufacturer:</td>

                                <td valign="top" class="value"><g:link controller="manufacturerDetailed" action="show" id="${contactInstance.manufacturer.id}">${contactInstance.manufacturer.encodeAsHTML()}</g:link></td>

                            </tr>
                        </g:if>

                        <g:if test="${contactInstance.supplier}">
                            <tr class="prop">
                                <td valign="top" class="name">Supplier:</td>

                                <td valign="top" class="value"><g:link controller="supplierDetailed" action="show" id="${contactInstance.supplier.id}">${contactInstance.supplier.encodeAsHTML()}</g:link></td>

                            </tr>
                        </g:if>

                        <g:if test="${contactInstance.person}">
                            <tr class="prop">
                                <td valign="top" class="name">Person:</td>

                                <td valign="top" class="value"><g:link controller="person" action="show" id="${contactInstance.person.id}">${contactInstance.person.encodeAsHTML()}</g:link></td>

                            </tr>
                        </g:if>

                        <g:if test="${contactInstance.site}">
                            <tr class="prop">
                                <td valign="top" class="name">Site:</td>

                                <td valign="top" class="value"><g:link controller="siteDetailed" action="show" id="${contactInstance.site.id}">${contactInstance.site.encodeAsHTML()}</g:link></td>

                            </tr>
                        </g:if>

                        <tr class="prop">
                            <td valign="top" class="name">Contact Type:</td>
                            <td valign="top" class="value">${fieldValue(bean:contactInstance, field:'contactType')}</td>
                        </tr>

                        <tr class="prop">
                            <td valign="top" class="name">Value:</td>
                            <td valign="top" class="value">${fieldValue(bean:contactInstance, field:'value')}</td>
                        </tr>

                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <input type="hidden" name="id" value="${contactInstance?.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>
