source: trunk/grails-app/views/importer/common/_properties.gsp @ 312

Last change on this file since 312 was 312, checked in by tabma, 14 years ago
  • uniquely identified column selection moved to first page and changed to radio
  • Property svn:keywords set to Date Rev Author
File size: 1.3 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: 312 $
11         * $Author: tabma $
12         * $Date: 2010-03-24 15:01:18 +0000 (wo, 24 mrt 2010) $
13         */
14%>
15<g:form name="propertiesform" action="saveproperties">
16    <table>
17          <g:each var="stdentity" in ="${standardentities}">
18              <% if (selectedentities.any { it.type.toInteger() ==stdentity.type.toInteger()} && stdentity.type.toInteger()!=-1) { %>
19              <tr><td colspan="2"><h4>${stdentity.name}</h4></td></tr>
20              <tr>               
21                  <td>Columnname:</td>
22                  <td>Property:</td>
23              </tr>           
24                <g:each var="selentity" in="${selectedentities}">
25                    <g:if test="${selentity.type.toLong()==stdentity.type}">
26                        <tr>                       
27                            <td class="header" width="200px">
28                                <b>${header[selentity.columnindex.toInteger()].name}</b>
29                            </td>
30                            <td>                               
31                                <importer:propertyChooser name="columnproperty" mappingcolumn="${header[selentity.columnindex.toInteger()]}"/>
32                            </td>
33                        </tr>
34                    </g:if>
35                </g:each>
36              <tr>
37                  <td colspan="2">
38                      <hr />
39                  </td>
40              </tr>
41          <% } %> <!-- end of JSP if-->
42          </g:each>
43        <tr>
44            <td>
45                <input type="submit" name="savebutton" value="Next"/>
46            </td>
47        </tr>
48
49    </table>
50</g:form>
Note: See TracBrowser for help on using the repository browser.