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

Last change on this file since 1511 was 1511, checked in by t.w.abma@…, 9 years ago
  • added initial property manager (load/save import mappings) just in case
  • Property svn:keywords set to Rev Author Date
File size: 2.1 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: 1511 $
12         * $Author: t.w.abma@umcutrecht.nl $
13         * $Date: 2011-02-09 19:55:29 +0000 (wo, 09 feb 2011) $
14         */
15%>
16
17<!-- saveproperties action was defined in the form -->
18    <table>
19          <g:each var="stdentity" in ="${GdtService.cachedEntities}">
20              <% if (importer_selectedentities.any { it.name.toLowerCase() == stdentity.entity.toLowerCase() } && stdentity.entity!="") { %>
21           
22              <tr><td colspan="3"><h4>${stdentity.name}</h4></td></tr>
23                <tr>
24            <td class="header" width="25px">
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 class="buttonsmall" id="savepropertiesbutton" type="button" value="Save" name="savepropertiesbutton"> -->
28            </td>
29            <g:each var="selentity" in="${importer_selectedentities}">
30              <g:if test="${selentity.name.toLowerCase()==stdentity.entity.toLowerCase()}">
31                            <td class="header" width="200px">
32                                <b>${importer_header[selentity.columnindex.toInteger()].name}</b>
33                  <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"/>
34                            </td>                                       
35              </g:if>
36            </g:each>
37                </tr>
38
39        <g:each var="row" in="${session.importer_datamatrix}">
40                <tr>
41                  <td class="datamatrix">                   
42                  </td>
43                    <g:each var="cell" in="${row}">
44                        <td class="datamatrix">
45                            <g:if test="${cell.toString()==''}">.</g:if>
46                            <g:else><importer:displayCell cell="${cell}"/></g:else>
47                        </td>
48                    </g:each>
49                </tr>
50                </g:each>
51
52          <% }  %> <!-- end of JSP if-->
53          </g:each>
54    </table>
Note: See TracBrowser for help on using the repository browser.