source: trunk/grails-app/views/costCodeDetailed/show.gsp

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

Domain change: Add PurchasingGroup?.
Logic and views to suite.

File size: 2.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 CostCode</title>
8        <nav:resources override="true"/>
9    </head>
10    <body>
11        <div class="nav">
12            <nav:renderSubItems group="navAlt"/>
13        </div>
14        <div class="body">
15            <g:render template="/shared/messages" />
16            <div class="dialog">
17                <table>
18                    <tbody>
19
20                   
21                        <tr class="prop">
22                            <td valign="top" class="name">Id:</td>
23                           
24                            <td valign="top" class="value">${fieldValue(bean:costCodeInstance, field:'id')}</td>
25                           
26                        </tr>
27                   
28                        <tr class="prop">
29                            <td valign="top" class="name">Name:</td>
30                           
31                            <td valign="top" class="value">${fieldValue(bean:costCodeInstance, field:'name')}</td>
32                           
33                        </tr>
34                   
35                        <tr class="prop">
36                            <td valign="top" class="name">Purchasing Group:</td>
37                            <td valign="top" class="value">
38                                <g:link controller="purchasingGroupDetailed" action="show" id="${costCodeInstance?.purchasingGroup?.id}">
39                                    ${costCodeInstance?.purchasingGroup?.encodeAsHTML()}
40                                </g:link>
41                            </td>
42                        </tr>
43                   
44                        <tr class="prop">
45                            <td valign="top" class="name">Description:</td>
46                           
47                            <td valign="top" class="value">${fieldValue(bean:costCodeInstance, field:'description')}</td>
48                           
49                        </tr>
50                   
51                        <tr class="prop">
52                            <td valign="top" class="name">Is Active:</td>
53                           
54                            <td valign="top" class="value">${fieldValue(bean:costCodeInstance, field:'isActive')}</td>
55                           
56                        </tr>
57                   
58                    </tbody>
59                </table>
60            </div>
61            <div class="buttons">
62                <g:form>
63                    <input type="hidden" name="id" value="${costCodeInstance?.id}" />
64                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
65                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
66                </g:form>
67            </div>
68        </div>
69    </body>
70</html>
Note: See TracBrowser for help on using the repository browser.