Ignore:
Timestamp:
Jul 1, 2010, 12:31:49 PM (11 years ago)
Author:
tabma
Message:
  • extra step for Simple Import Wizard implemented for easy adding and editing of cells (which were not imported yet)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/taglib/dbnp/importer/ImporterTagLib.groovy

    r545 r632  
    5050    }
    5151
     52    def datapreview = { attrs ->
     53        def datamatrix = attrs['datamatrix']
     54        out << render (template:"common/datapreview", model:[datamatrix:datamatrix])
     55    }
     56
     57    /**
     58     * Show missing properties
     59     */
     60    def missingProperties = { attrs ->
     61        def datamatrix = attrs['datamatrix']   
     62        out << render (template:"common/missingproperties", model:[datamatrix:datamatrix])
     63    }
     64
    5265    /**
    5366     * @param entities array containing selected entities
     67     * @param header array containing mappingcolumn objects
     68     * @param allfieldtypes if set, show all fields
     69     * @param layout constant value: "horizontal" or "vertical"
    5470     */
    5571    def properties = { attrs ->
     
    5773        def entities = attrs['entities']
    5874        def allfieldtypes = (attrs['allfieldtypes']==null) ? "false" : "true"
     75        def layout = (attrs['layout']==null) ? "vertical" : attrs['layout']
     76
     77        //choose template for vertical layout (default) or horizontal layout
     78        def template = (layout == "vertical") ? "common/properties_vertical" : "common/properties_horizontal"
    5979       
    60 
    61         out << render ( template:"common/properties",
     80        out << render ( template:template,
    6281                        model:[selectedentities:entities,
    6382                        standardentities:grailsApplication.config.gscf.domain.importableEntities,
    6483                        header:header,
    65                         allfieldtypes:allfieldtypes]
     84                        allfieldtypes:allfieldtypes,
     85                        layout:layout]
    6686                        )
    6787    }
Note: See TracChangeset for help on using the changeset viewer.