source: trunk/grails-app/views/importer/common/_preview.gsp @ 256

Last change on this file since 256 was 256, checked in by tabma, 14 years ago
  • Template enums now used instead of POI Celltypes
  • Property svn:keywords set to Author Rev Date
File size: 1.3 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: 256 $
11         * $Author: tabma $
12         * $Date: 2010-03-11 10:48:16 +0000 (do, 11 mrt 2010) $
13         */
14%>
15<g:form name="previewform" action="savepreview">
16    <table>
17        <tr>
18          <td>Columnname:</td>
19          <g:each var="column" in="${header}">
20              <td class="header">
21                  <b>${column.value.name}</b>
22              </td>
23          </g:each>
24        </tr>
25
26        <tr>
27            <td>Celltype:</td>
28            <g:each var="column" in="${header}">
29                <td class="header">
30                    <importer:templatefieldtypeSelect selected="${column.value.templatefieldtype}" name="templatefieldtype" customvalue="${column.key.toString()}"/>
31                </td>
32            </g:each>
33        </tr>
34       
35        <tr>
36            <td>Entity:</td>
37            <g:each var="column" in="${header}">
38                <td class="header">
39                    <importer:entitySelect name="entity" customvalue="${column.key.toString()}"/>
40                </td>
41            </g:each>
42        </tr>
43
44        <g:each var="row" in="${datamatrix}">
45            <tr>
46                <td>Value</td>
47                <g:each var="column" in="${row}">
48                    <td class="datamatrix">
49                        <g:if test="${column.toString()==''}">.</g:if>
50                        <g:else>${column.toString()}</g:else>
51                    </td>
52                </g:each>
53            </tr>
54        </g:each>
55        <tr>
56            <td align="right" colspan="${datamatrix.length}"><input type="submit" value="Next"></td>
57        </tr>
58  </table>
59  </g:form>
Note: See TracBrowser for help on using the repository browser.