Last change
on this file since 323 was
321,
checked in by tabma, 13 years ago
|
- identifying columns get stored using 'name' attribute of entities as identifier
|
-
Property svn:keywords set to
Date Rev Author
|
File size:
1.5 KB
|
Line | |
---|
1 | <% |
---|
2 | /** |
---|
3 | * Preview template which will display cells and columns from a matrix datasource |
---|
4 | * |
---|
5 | * @author Tjeerd Abma |
---|
6 | * @since 20100129 |
---|
7 | * @package importer |
---|
8 | * |
---|
9 | * Revision information: |
---|
10 | * $Rev: 321 $ |
---|
11 | * $Author: duh $ |
---|
12 | * $Date: 2010-03-31 12:02:35 +0000 (wo, 31 mrt 2010) $ |
---|
13 | */ |
---|
14 | %> |
---|
15 | <g:form name="previewform" action="savepreview"> |
---|
16 | <table> |
---|
17 | <tr> |
---|
18 | <td>Identifier:</td> |
---|
19 | <g:each var="column" in="${header}"> |
---|
20 | <td> |
---|
21 | <g:radio name="identifier" value="${column.value.index}"/> |
---|
22 | </td> |
---|
23 | </g:each> |
---|
24 | </td> |
---|
25 | </tr> |
---|
26 | <tr> |
---|
27 | <td>Columnname:</td> |
---|
28 | <g:each var="column" in="${header}"> |
---|
29 | <td class="header"> |
---|
30 | <b>${column.value.name}</b> |
---|
31 | </td> |
---|
32 | </g:each> |
---|
33 | </tr> |
---|
34 | |
---|
35 | <tr> |
---|
36 | <td>Fieldtype:</td> |
---|
37 | <g:each var="column" in="${header}"> |
---|
38 | <td class="header"> |
---|
39 | <importer:templatefieldtypeSelect selected="${column.value.templatefieldtype}" name="templatefieldtype" customvalue="${column.key.toString()}"/> |
---|
40 | </td> |
---|
41 | </g:each> |
---|
42 | </tr> |
---|
43 | |
---|
44 | <tr> |
---|
45 | <td>Entity:</td> |
---|
46 | <g:each var="column" in="${header}"> |
---|
47 | <td class="header"> |
---|
48 | <importer:entitySelect name="entity" customvalue="${column.key.toString()}"/> |
---|
49 | </td> |
---|
50 | </g:each> |
---|
51 | </tr> |
---|
52 | |
---|
53 | <g:each var="row" in="${datamatrix}"> |
---|
54 | <tr> |
---|
55 | <td>Value</td> |
---|
56 | <g:each var="cell" in="${row}"> |
---|
57 | <td class="datamatrix"> |
---|
58 | <g:if test="${cell.toString()==''}">.</g:if> |
---|
59 | <g:else><importer:displayCell cell="${cell}"/></g:else> |
---|
60 | </td> |
---|
61 | </g:each> |
---|
62 | </tr> |
---|
63 | </g:each> |
---|
64 | <tr> |
---|
65 | <td align="right" colspan="${datamatrix.length}"><input type="submit" value="Next"></td> |
---|
66 | </tr> |
---|
67 | </table> |
---|
68 | </g:form> |
---|
Note: See
TracBrowser
for help on using the repository browser.