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

Last change on this file since 203 was 203, checked in by tabma, 13 years ago
  • rewrote to HashMap? based columns (columns are always unique, storing in array tricky/redundancy)
  • entities can be chosen in the preview
  • properties page shows columns grouped per entity
  • properties page allows mapping of column to property (TODO: get all fields per entity)
File size: 739 bytes
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<%@
33 def a = new Column(value:"value", name:"naam")
34 println a.name
35%>
36</body>
37</html>
Note: See TracBrowser for help on using the repository browser.