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

Last change on this file since 1171 was 1171, checked in by t.w.abma@…, 13 years ago
  • added add / modify to date template chooser
  • added some JS to handle select boxes, when choosing study the study chooser dropdown disappears
  • added encryption to select box, necessary to let the template add/remove popup work correctly
  • added "encrypted" variable to Config, used by the date template dropdown
  • Property svn:keywords set to Author Date Rev
File size: 1.6 KB
Line 
1<%
2        /**
3         * Properties template which shows entities and allows to assign properties to columns
4         *
5         * @author Tjeerd Abma
6         * @since 20100210
7         * @package importer
8         *
9         * Revision information:
10         * $Rev: 1171 $
11         * $Author: t.w.abma@umcutrecht.nl $
12         * $Date: 2010-11-18 14:20:10 +0000 (do, 18 nov 2010) $
13         */
14%>
15<g:form name="propertiesform" action="saveProperties">
16    <table>
17          <g:each var="stdentity" in ="${standardentities}">           
18              <% if (selectedentities.any { it.name.toLowerCase() == stdentity.value.entity.toLowerCase() } && stdentity.value.entity!="") { %>
19              <tr><td colspan="2"><h4>${stdentity.value.name}</h4></td></tr>         
20                <tr>
21                <g:each var="selentity" in="${selectedentities}">                   
22                    <g:if test="${selentity.name.toLowerCase()==stdentity.value.entity.toLowerCase()}">
23                            <td class="header" width="200px">
24                                <b>${header[selentity.columnindex.toInteger()].name}</b>
25                                <importer:propertyChooser name="columnproperty" mappingcolumn="${header[selentity.columnindex.toInteger()]}" matchvalue="${header[selentity.columnindex.toInteger()].name}" allfieldtypes="${allfieldtypes}"/>
26                            </td>                                       
27                    </g:if>
28                </g:each>
29                </tr>
30                <g:each var="row" in="${datamatrix}">
31                <tr>
32                    <g:each var="cell" in="${row}">
33                        <td class="datamatrix">
34                            <g:if test="${cell.toString()==''}">.</g:if>
35                            <g:else><importer:displayCell cell="${cell}"/></g:else>
36                        </td>
37                    </g:each>
38                </tr>
39                </g:each>
40                <tr>
41                  <td colspan="${header.size()}">
42                      <hr />
43                  </td>
44                </tr>
45          <% } %> <!-- end of JSP if-->
46          </g:each>     
47        <tr>
48            <td>
49                <input type="hidden" name="layout" value="${layout}">
50                <input type="submit" name="savebutton" value="Next"/>
51            </td>
52        </tr>
53    </table>   
54</g:form>
Note: See TracBrowser for help on using the repository browser.