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

Last change on this file since 397 was 397, checked in by gav, 14 years ago

Add address feature.

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