-
Notifications
You must be signed in to change notification settings - Fork 2
/
show.gsp
54 lines (46 loc) · 2.28 KB
/
show.gsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<%@ page import="structurededitor.Game" %>
<!doctype html>
<html>
<head>
<meta name="layout" content="main">
<g:set var="entityName" value="${message(code: 'game.label', default: 'Game')}" />
<title><g:message code="default.show.label" args="[entityName]" /></title>
</head>
<body>
<a href="#show-game" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content…"/></a>
<div class="nav" role="navigation">
<ul>
<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
</ul>
</div>
<div id="show-game" class="content scaffold-show" role="main">
<h1><g:message code="default.show.label" args="[entityName]" /></h1>
<g:if test="${flash.message}">
<div class="message" role="status">${flash.message}</div>
</g:if>
<ol class="property-list game">
<g:if test="${gameInstance?.name}">
<li class="fieldcontain">
<span id="name-label" class="property-label"><g:message code="game.name.label" default="Name" /></span>
<span class="property-value" aria-labelledby="name-label"><g:fieldValue bean="${gameInstance}" field="name"/></span>
</li>
</g:if>
<g:if test="${gameInstance?.goal}">
<li class="fieldcontain">
<span id="goal-label" class="property-label"><g:message code="game.goal.label" default="Goal" /></span>
<span class="property-value" aria-labelledby="goal-label"><g:fieldValue bean="${gameInstance}" field="goal"/></span>
</li>
</g:if>
</ol>
<g:form>
<fieldset class="buttons">
<g:hiddenField name="id" value="${gameInstance?.id}" />
<g:link class="edit" action="edit" id="${gameInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
<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?')}');" />
</fieldset>
</g:form>
</div>
</body>
</html>