source: trunk/grails-app/views/importer/common/_properties_horizontal.gsp @ 1514

Last change on this file since 1514 was 1514, checked in by t.w.abma@…, 10 years ago
  • removed popup solution for properties and changed it into simple "save" method to step 2 of importer wizard
  • Property svn:keywords set to Rev Author Date
File size: 2.3 KB
Line 
1<%@ page import="org.dbnp.gdt.GdtService" %>
2<%
3        /**
4         * Properties template which shows entities and allows to assign properties to columns
5         *
6         * @author Tjeerd Abma
7         * @since 20100210
8         * @package importer
9         *
10         * Revision information:
11         * $Rev: 1514 $
12         * $Author: t.w.abma@umcutrecht.nl $
13         * $Date: 2011-02-10 15:30:16 +0000 (do, 10 feb 2011) $
14         */
15%>
16
17
18<!-- saveproperties action was defined in the form -->
19  ${flash.mappingname}
20    <table>
21          <g:each var="stdentity" in ="${GdtService.cachedEntities}">
22              <% if (importer_selectedentities.any { it.name.toLowerCase() == stdentity.entity.toLowerCase() } && stdentity.entity!="") { %>
23           
24              <tr><td colspan="3"><h4>${stdentity.name}</h4></td></tr>
25                <tr>
26            <td class="header" width="55px">
27              <input class="buttonsmall" id="clearselect" type="button" value="Clear" name="clearselect">
28              <input class="buttonsmall" id="fuzzymatchselect" type="button" value="Match" name="fuzzymatchselect">
29              <input class="buttonsmall" id="savepropertiesbutton" type="button" value="Save" name="savepropertiesbutton">
30              <div id="savemapping" style="display:none">
31                Give current mapping a name and press Save:
32                <input type="text" name="mappingname" size="20" id="mappingname">
33              </div>
34            </td>
35            <g:each var="selentity" in="${importer_selectedentities}">
36              <g:if test="${selentity.name.toLowerCase()==stdentity.entity.toLowerCase()}">
37                            <td class="header" width="200px">
38                                <b>${importer_header[selentity.columnindex.toInteger()].name}</b>
39                  <importer:propertyChooser name="columnproperty" mappingcolumn="${importer_header[selentity.columnindex.toInteger()]}" matchvalue="${importer_header[selentity.columnindex.toInteger()].name}" fuzzymatching="${importer_fuzzymatching}" template_id="${importer_template_id}" allfieldtypes="true"/>
40                            </td>                                       
41              </g:if>
42            </g:each>
43                </tr>
44
45        <g:each var="row" in="${session.importer_datamatrix}">
46                <tr>
47                  <td class="datamatrix">                   
48                  </td>
49                    <g:each var="cell" in="${row}">
50                        <td class="datamatrix">
51                            <g:if test="${cell.toString()==''}">.</g:if>
52                            <g:else><importer:displayCell cell="${cell}"/></g:else>
53                        </td>
54                    </g:each>
55                </tr>
56                </g:each>
57
58          <% }  %> <!-- end of JSP if-->
59          </g:each>
60    </table>
Note: See TracBrowser for help on using the repository browser.