Changeset 632 for trunk/grails-app/taglib
- Timestamp:
- Jul 1, 2010, 12:31:49 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/taglib/dbnp/importer/ImporterTagLib.groovy
r545 r632 50 50 } 51 51 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 52 65 /** 53 66 * @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" 54 70 */ 55 71 def properties = { attrs -> … … 57 73 def entities = attrs['entities'] 58 74 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" 59 79 60 61 out << render ( template:"common/properties", 80 out << render ( template:template, 62 81 model:[selectedentities:entities, 63 82 standardentities:grailsApplication.config.gscf.domain.importableEntities, 64 83 header:header, 65 allfieldtypes:allfieldtypes] 84 allfieldtypes:allfieldtypes, 85 layout:layout] 66 86 ) 67 87 }
Note: See TracChangeset
for help on using the changeset viewer.