Changeset 489 for trunk/grails-app/taglib
- Timestamp:
- May 27, 2010, 4:26:44 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/taglib/dbnp/importer/ImporterTagLib.groovy
r485 r489 56 56 def header = attrs['header'] 57 57 def entities = attrs['entities'] 58 def allfieldtypes = (attrs['allfieldtypes']==null) ? "false" : "true" 59 println attrs['allfieldtypes'] 58 60 59 61 out << render ( template:"common/properties", 60 62 model:[selectedentities:entities, 61 63 standardentities:grailsApplication.config.gscf.domain.importableEntities, 62 header:header]) 64 header:header, 65 allfieldtypes:allfieldtypes] 66 ) 63 67 } 64 68 … … 69 73 * @param importtemplate_id template identifier where fields are retrieved from 70 74 * @param MappingColumn object containing all required information 75 * @param allfieldtypes boolean true if all templatefields should be listed, otherwise only show filtered templatefields 71 76 * @return chooser object 72 77 * */ … … 77 82 def t = Template.get(session.importer_template_id) 78 83 def mc = attrs['mappingcolumn'] 84 def allfieldtypes = attrs['allfieldtypes'] 85 86 def templatefields = (allfieldtypes=="true") ? t.fields.list() : t.fields.findAll { it.type == mc.templatefieldtype } 79 87 80 88 (mc.identifier) ? out << "<select style=\"font-size:10px\" name=\"\" disabled><option>Identifier</option></select>": 81 out << createPropertySelect(attrs['name'], t .fields.findAll { it.type == mc.templatefieldtype }, mc.index)89 out << createPropertySelect(attrs['name'], templatefields, mc.index) 82 90 } 83 91
Note: See TracChangeset
for help on using the changeset viewer.