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

Last change on this file since 169 was 169, checked in by tabma, 10 years ago
  • created taglibrary for importer and first implementation detection of (cell) datatypes
  • Property svn:keywords set to Date Author Rev
File size: 911 bytes
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: 169 $
11         * $Author: tabma $
12         * $Date: 2010-02-03 14:50:14 +0000 (wo, 03 feb 2010) $
13         */
14%>
15<g:form name="previewform" action="accept">
16    <table>
17      <tr>
18        <g:each var="column" in="${header}">       
19          <td>${column.value}<br />
20              <importer:celltypeselector selected="${column.celltype}" name="celltype[${column.columnindex}]"/>
21            </td>
22        </g:each>
23      </tr>
24        <g:each var="row" in="${datamatrix}">
25            <tr>
26                <g:each var="column" in="${row}">
27                    <td>
28                        <g:if test="${column.toString()==''}">.</g:if>
29                        <g:else>${column.toString()}</g:else>
30                    </td>
31                </g:each>
32            </tr>
33        </g:each>
34      <tr>
35          <td align="right" colspan="${datamatrix.length}"><input type="submit" value="Accept"></td>
36      </tr>
37  </table>
38  </g:form>
Note: See TracBrowser for help on using the repository browser.