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

Last change on this file since 1525 was 1525, checked in by t.w.abma@…, 10 years ago
  • Importer tests on hold due to missing parse() method in Template domain
  • ImportMappings? and MappingColumns? are now persisted and can be loaded, todo: null-entities? and lazy loading issue
  • Property svn:keywords set to Rev Author Date
File size: 2.8 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: 1525 $
12         * $Author: t.w.abma@umcutrecht.nl $
13         * $Date: 2011-02-15 16:12:25 +0000 (di, 15 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_id" from="${importer_importmappings}" noSelection="['':'-Select mapping-']" optionValue="name" optionKey="id"/>
37              </div>
38            </td>           
39            <g:each var="mappingcolumn" in="${importer_header}">
40              <!-- set selected values based on submitted columnproperties, actually refresh -->
41              <g:if test="${importer_columnproperty}">
42                <g:set var="selected" value="${importer_columnproperty.index['' + mappingcolumn.index + '']}"/>
43              </g:if>
44              <g:else>
45                <g:set var="selected" value="${mappingcolumn.property}"/>
46              </g:else>
47
48                          <td class="header" width="200px">
49                                <b>${mappingcolumn.name}</b>
50                  <importer:propertyChooser name="columnproperty" mappingcolumn="${mappingcolumn}" matchvalue="${mappingcolumn.name}" selected="${selected}" fuzzymatching="${importer_fuzzymatching}" template_id="${importer_template_id}" "allfieldtypes="true"/>
51                          </td>                                 
52            </g:each>
53                </tr>
54
55        <g:each var="row" in="${session.importer_datamatrix}">
56                <tr>
57                  <td class="datamatrix">                   
58                  </td>
59                    <g:each var="cell" in="${row}">
60                        <td class="datamatrix">
61                            <g:if test="${cell.toString()==''}">.</g:if>
62                            <g:else><importer:displayCell cell="${cell}"/></g:else>
63                        </td>
64                    </g:each>
65                </tr>
66                </g:each>
67         
68    </table>
Note: See TracBrowser for help on using the repository browser.