source: trunk/grails-app/views/addressDetailed/show.gsp @ 722

Last change on this file since 722 was 722, checked in by gav, 13 years ago

Domain change: as per ticket #97 - Drop the entire Manufacturer domain concept.

File size: 5.3 KB
Line 
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>Show Address</title>
8    </head>
9    <body>
10        <div class="nav">
11            <h1>Show Address</h1>
12        </div>
13        <div class="body">
14            <g:render template="/shared/messages" />
15            <div class="dialog">
16                <table>
17                    <tbody>
18
19                   
20                        <tr class="prop">
21                            <td valign="top" class="name">Id:</td>
22                           
23                            <td valign="top" class="value">${fieldValue(bean:addressInstance, field:'id')}</td>
24                           
25                        </tr>
26                           
27                            <g:if test="${addressInstance.supplier}">
28                                <tr class="prop">
29                                    <td valign="top" class="name">Supplier:</td>
30                                   
31                                    <td valign="top" class="value"><g:link controller="supplierDetailed" action="show" id="${addressInstance.supplier.id}">${addressInstance.supplier.encodeAsHTML()}</g:link></td>
32                                   
33                                </tr>
34                            </g:if>
35                           
36                            <g:if test="${addressInstance.person}">
37                                <tr class="prop">
38                                    <td valign="top" class="name">Person:</td>
39                                   
40                                    <td valign="top" class="value"><g:link controller="person" action="show" id="${addressInstance.person.id}">${addressInstance.person.encodeAsHTML()}</g:link></td>
41                                   
42                                </tr>
43                            </g:if>
44                           
45                            <g:if test="${addressInstance.site}">
46                                <tr class="prop">
47                                    <td valign="top" class="name">Site:</td>
48                                   
49                                    <td valign="top" class="value"><g:link controller="siteDetailed" action="show" id="${addressInstance.site.id}">${addressInstance.site.encodeAsHTML()}</g:link></td>
50                                   
51                                </tr>
52                            </g:if>
53                   
54                        <tr class="prop">
55                            <td valign="top" class="name">Address Type:</td>
56                           
57                            <td valign="top" class="value">${addressInstance?.addressType?.encodeAsHTML()}</td>
58                           
59                        </tr>
60                   
61                        <tr class="prop">
62                            <td valign="top" class="name">Street1:</td>
63                           
64                            <td valign="top" class="value">${fieldValue(bean:addressInstance, field:'street1')}</td>
65                           
66                        </tr>
67                   
68                        <tr class="prop">
69                            <td valign="top" class="name">Street2:</td>
70                           
71                            <td valign="top" class="value">${fieldValue(bean:addressInstance, field:'street2')}</td>
72                           
73                        </tr>
74                   
75                        <tr class="prop">
76                            <td valign="top" class="name">City:</td>
77                           
78                            <td valign="top" class="value">${fieldValue(bean:addressInstance, field:'city')}</td>
79                           
80                        </tr>
81                   
82                        <tr class="prop">
83                            <td valign="top" class="name">State:</td>
84                           
85                            <td valign="top" class="value">${fieldValue(bean:addressInstance, field:'state')}</td>
86                           
87                        </tr>
88                   
89                        <tr class="prop">
90                            <td valign="top" class="name">Post Code:</td>
91                           
92                            <td valign="top" class="value">${fieldValue(bean:addressInstance, field:'postCode')}</td>
93                           
94                        </tr>
95                   
96                        <tr class="prop">
97                            <td valign="top" class="name">Country:</td>
98                           
99                            <td valign="top" class="value">${fieldValue(bean:addressInstance, field:'country')}</td>
100                           
101                        </tr>
102                   
103                    </tbody>
104                </table>
105            </div>
106            <div class="buttons">
107                <g:form>
108                    <input type="hidden" name="id" value="${addressInstance?.id}" />
109                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
110                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
111                </g:form>
112            </div>
113        </div>
114    </body>
115</html>
Note: See TracBrowser for help on using the repository browser.