Changeset 489 for trunk/grails-app/views


Ignore:
Timestamp:
May 27, 2010, 4:26:44 PM (13 years ago)
Author:
tabma
Message:
  • simple wizard, tag library for properties added with a "allfieldtypes" = true/false to show all fields in the properties page instead of only filtered templatefieldtypes
Location:
trunk/grails-app/views/importer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/importer/common/_properties.gsp

    r485 r489  
    1616    <p><g:select name="study.id" from="${dbnp.studycapturing.Study.list()}" optionKey="id" class="selectsmall"/></p>
    1717    <table>
    18           <g:each var="stdentity" in ="${standardentities}">
    19               <% if (selectedentities.any { it.name == stdentity.value.name } && stdentity.value.name!="") { %>
     18          <g:each var="stdentity" in ="${standardentities}">         
     19             
     20              <% if (selectedentities.any { it.name.toLowerCase() == stdentity.value.name.toLowerCase() } && stdentity.value.name!="") { %>
    2021              <tr><td colspan="2"><h4>${stdentity.value.name}</h4></td></tr>
    2122              <tr>               
     
    2425              </tr>           
    2526                <g:each var="selentity" in="${selectedentities}">
    26                     <g:if test="${selentity.name==stdentity.value.name}">
     27                   
     28                    <g:if test="${selentity.name.toLowerCase()==stdentity.value.name.toLowerCase()}">
    2729                        <tr>                       
    2830                            <td class="header" width="200px">
    2931                                <b>${header[selentity.columnindex.toInteger()].name}</b>
    3032                            </td>
    31                             <td>                               
    32                                 <importer:propertyChooser name="columnproperty" mappingcolumn="${header[selentity.columnindex.toInteger()]}"/>
     33                            <td>   
     34                                <importer:propertyChooser name="columnproperty" mappingcolumn="${header[selentity.columnindex.toInteger()]}" allfieldtypes="${allfieldtypes}"/>
    3335                            </td>
    3436                        </tr>
  • trunk/grails-app/views/importer/step2_simple.gsp

    r485 r489  
    2727    <p>The next step is to assign properties to the columns. Below you see the columns, please assign every column to
    2828    a property.</p>
    29   <importer:properties entities="${entities}" header="${header}" templates="${templates}"/>
     29  <importer:properties entities="${entities}" header="${header}" templates="${templates}" allfieldtypes="true"/>
    3030  </body>
    3131</html>
Note: See TracChangeset for help on using the changeset viewer.