source: trunk/grails-app/views/person/show.gsp @ 150

Last change on this file since 150 was 150, checked in by gav, 15 years ago

Add params.message to Person create and edit views.
Code format to 4 spaces, no tabs.

File size: 3.1 KB
RevLine 
[59]1<head>
[150]2    <meta name="layout" content="main" />
3    <title>Show Person</title>
[147]4    <nav:resources override="true"/>
[59]5</head>
6
7<body>
8
[150]9    <div class="nav">
[147]10        <nav:renderSubItems group="navAlt"/>
[150]11    </div>
[59]12
[150]13    <div class="body">
14        <g:if test="${flash.message}">
15        <div class="message">${flash.message}</div>
16        </g:if>
17        <div class="dialog">
18            <table>
19            <tbody>
[59]20
[150]21                <tr class="prop">
22                    <td valign="top" class="name">ID:</td>
23                    <td valign="top" class="value">${person.id}</td>
24                </tr>
[59]25
[150]26                <tr class="prop">
27                    <td valign="top" class="name">Login Name:</td>
28                    <td valign="top" class="value">${person.loginName?.encodeAsHTML()}</td>
29                </tr>
[59]30
[150]31                <tr class="prop">
32                    <td valign="top" class="name">First Name:</td>
33                    <td valign="top" class="value">${person.firstName?.encodeAsHTML()}</td>
34                </tr>
[59]35
36                <tr class="prop">
37                    <td valign="top" class="name">Last Name:</td>
38                    <td valign="top" class="value">${person.lastName?.encodeAsHTML()}</td>
39                </tr>
40
[150]41                <tr class="prop">
42                    <td valign="top" class="name">isActive:</td>
43                    <td valign="top" class="value">${person.isActive}</td>
44                </tr>
[59]45
[150]46                <tr class="prop">
47                    <td valign="top" class="name">Description:</td>
48                    <td valign="top" class="value">${person.description?.encodeAsHTML()}</td>
49                </tr>
[59]50
[150]51                <tr class="prop">
52                    <td valign="top" class="name">Email:</td>
53                    <td valign="top" class="value">${person.email?.encodeAsHTML()}</td>
54                </tr>
[59]55
[150]56                <tr class="prop">
57                    <td valign="top" class="name">Show Email:</td>
58                    <td valign="top" class="value">${person.emailShow}</td>
59                </tr>
[59]60
61                <tr class="prop">
62                    <td valign="top" class="name">Employee ID:</td>
63                    <td valign="top" class="value">${person.employeeID}</td>
64                </tr>
65
[150]66                <tr class="prop">
67                    <td valign="top" class="name">Authorities:</td>
68                    <td valign="top" class="value">
69                        <ul>
70                        <g:each in="${roleNames}" var='name'>
71                            <li>${name}</li>
72                        </g:each>
73                        </ul>
74                    </td>
75                </tr>
[59]76
[150]77            </tbody>
78            </table>
79        </div>
[59]80
[150]81        <div class="buttons">
82            <g:form>
83                <input type="hidden" name="id" value="${person.id}" />
84                <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
85                <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
86            </g:form>
87        </div>
[59]88
[150]89    </div>
[59]90</body>
Note: See TracBrowser for help on using the repository browser.