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

Last change on this file since 1515 was 1515, checked in by t.w.abma@…, 10 years ago
  • added load/save button to mappings page
  • fuzzy button applies fuzzy matching
  • fixed bug when pressing save didn't remember selected properties and went into "fuzzy mode"
  • importmapping instance is stored, but adding the mappingcolumns is the last "todo"
  • Property svn:keywords set to Rev Author Date
File size: 2.5 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: 1515 $
12         * $Author: t.w.abma@umcutrecht.nl $
13         * $Date: 2011-02-11 13:59:27 +0000 (vr, 11 feb 2011) $
14         */
15%>
16
17
18<!-- saveproperties action was defined in the form --> 
19  ${mappingname}
20
21    <table>
22              <tr><td colspan="3"><h4>defaultentity</h4></td></tr>
23                <tr>
24            <td class="header" width="55px">
25              <input class="buttonsmall" id="clearselect" type="button" value="Clear" name="clearselect">
26              <input class="buttonsmall" id="fuzzymatchselect" type="button" value="Match" name="fuzzymatchselect">
27              <input type="hidden" name="fuzzymatching" id="fuzzymatching" value="false">
28              <input class="buttonsmall" id="savepropertiesbutton" type="button" value="Save" name="savepropertiesbutton">
29              <input class="buttonsmall" id="loadpropertiesbutton" type="button" value="Load" name="loadpropertiesbutton">
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              <div id="loadmapping" style="display:none">
35                Select an existing mapping and press Load:
36                <g:select name="importmapping" from="${importer_importmappings}" optionValue="name"/>
37              </div>
38            </td>           
39            <g:each var="mappingcolumn" in="${importer_header}">
40              <g:if test="${importer_columnproperty}">
41                <g:set var="selected" value="${importer_columnproperty.index['' + mappingcolumn.index + '']}"/>
42              </g:if>
43
44                          <td class="header" width="200px">
45                                <b>${mappingcolumn.name}</b>
46                  <importer:propertyChooser name="columnproperty" mappingcolumn="${mappingcolumn}" matchvalue="${mappingcolumn.name}" selected="${selected}" fuzzymatching="${importer_fuzzymatching}" template_id="${importer_template_id}" "allfieldtypes="true"/>
47                          </td>                                 
48            </g:each>
49                </tr>
50
51        <g:each var="row" in="${session.importer_datamatrix}">
52                <tr>
53                  <td class="datamatrix">                   
54                  </td>
55                    <g:each var="cell" in="${row}">
56                        <td class="datamatrix">
57                            <g:if test="${cell.toString()==''}">.</g:if>
58                            <g:else><importer:displayCell cell="${cell}"/></g:else>
59                        </td>
60                    </g:each>
61                </tr>
62                </g:each>
63         
64    </table>
Note: See TracBrowser for help on using the repository browser.