source: trunk/grails-app/views/event/show.gsp @ 154

Last change on this file since 154 was 119, checked in by jahn, 9 years ago

Committed as part of Event editing.

File size: 3.6 KB
Line 
1
2<%@ page import="dbnp.studycapturing.Event" %>
3<html>
4    <head>
5        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6        <meta name="layout" content="main" />
7        <g:set var="entityName" value="${message(code: 'event.label', default: 'Event')}" />
8        <title><g:message code="default.show.label" args="[entityName]" /></title>
9    </head>
10    <body>
11        <div class="nav">
12            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
13            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
14            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
15        </div>
16        <div class="body">
17            <h1><g:message code="default.show.label" args="[entityName]" /></h1>
18            <g:if test="${flash.message}">
19            <div class="message">${flash.message}</div>
20            </g:if>
21            <div class="dialog">
22                <table>
23                    <tbody>
24
25                        <tr class="prop">
26                            <td valign="top" class="name"><g:message code="event.eventDescription.label" default="Event Description" /></td>
27                            <td valign="top" class="value"><g:link controller="eventDescription" action="show" id="${eventInstance?.eventDescription?.id}">${eventInstance?.eventDescription?.name?.encodeAsHTML()}</g:link></td>
28                        </tr>
29
30                        <tr class="prop">
31                            <td valign="top" class="name"><g:message code="event.subject.label" default="Subject" /></td>
32                            <td valign="top" class="value"><g:link controller="subject" action="show" id="${eventInstance?.subject?.id}">${eventInstance?.subject?.name?.encodeAsHTML()}</g:link></td>
33                        </tr>
34
35                        <tr class="prop">
36                            <td valign="top" class="name"><g:message code="event.startTime.label" default="Start Time" /></td>
37                            <td valign="top" class="value"><g:message code="${eventInstance.startTime.toString()}" /></td>
38                        </tr>
39
40                        <tr class="prop">
41                            <td valign="top" class="name"><g:message code="event.endTime.label" default="End Time" /></td>
42                            <td valign="top" class="value"><g:message code="${eventInstance.endTime.toString()}" /></td>
43                        </tr>
44
45                        <tr class="prop">
46                            <td valign="top" class="name"><g:message code="event.duration.label" default="Duration" /></td>
47                            <td valign="top" class="value">${eventInstance.getDurationString()}</td>
48                        </tr>
49                   
50                    </tbody>
51                </table>
52            </div>
53            <div class="buttons">
54                <g:form>
55                    <g:hiddenField name="id" value="${eventInstance?.id}" />
56                    <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
57                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
58                </g:form>
59            </div>
60        </div>
61    </body>
62</html>
Note: See TracBrowser for help on using the repository browser.