source: trunk/grails-app/views/sandbox/index.gsp

Last change on this file was 1430, checked in by work@…, 8 years ago
  • set keyword expansion
  • Property svn:keywords set to Rev Author Date
File size: 1.1 KB
Line 
1<%--
2  Created by IntelliJ IDEA.
3  User: kees
4  Date: 28-jan-2010
5  Time: 14:36:03
6
7  The sandbox is meant for internal communication over code examples etc.
8--%>
9<%@ page contentType="text/html;charset=UTF-8" %>
10<html>
11<head><title>Sandbox</title></head>
12<body>
13<h1>Sandbox</h1>
14<h2>Subject Template fields demo</h2>
15<table>
16        <tr>
17                <td>Name</td>
18        <g:each in="${fields}" var="field">
19                <td>${field.name} (${field.type})</td>
20        </g:each>
21        </tr>
22        <g:each in="${subjects}" var="subject">
23                <tr>
24                        <td>${subject.name}</td>
25                <g:each in="${fields}" var="field">
26                        <td>${subject.getFieldValue(field.name)}</td>
27                </g:each>
28                </tr>
29        </g:each>
30</tr>
31</table>
32<h2>Subject Fields</h2>
33<table>
34        <tr>
35                <td>Source</td>
36                <td>Name</td>
37                <td>Type</td>
38        </tr>
39        <g:each in="${subject.giveDomainFields()}" var="field">
40            <tr>
41                    <td>Domain field</td>
42                        <td>${field.key}</td>
43                         <td>${field.value}</td>
44                </tr>
45        </g:each>
46        <g:each in="${subject.giveFields()}" var="field">
47            <tr>
48                        <td>Template field</td>
49                    <td>${field.name}</td>
50                         <td>${field.type}</td>
51                </tr>
52        </g:each>
53
54</table>
55</body>
56</html>
Note: See TracBrowser for help on using the repository browser.