Changeset 534 for trunk/grails-app/taglib
- Timestamp:
- Jun 4, 2010, 4:00:31 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/taglib/dbnp/importer/ImporterTagLib.groovy
r492 r534 84 84 def allfieldtypes = attrs['allfieldtypes'] 85 85 86 def templatefields = (allfieldtypes=="true") ? t.fields : t.fields.findAll { it.type == mc.templatefieldtype } 86 //def templatefields = (allfieldtypes=="true") ? t.fields : t.fields.findAll { it.type == mc.templatefieldtype } 87 def templatefields = (allfieldtypes=="true") ? 88 t.fields + mc.entity.giveDomainFields() : 89 t.fields.findAll { it.type == mc.templatefieldtype } + mc.entity.giveDomainFields() 87 90 88 91 (mc.identifier) ? out << "<select style=\"font-size:10px\" name=\"\" disabled><option>Identifier</option></select>": … … 102 105 def res = "<select style=\"font-size:10px\" name=\"${name}.index.${columnIndex}\">" 103 106 104 options.each { f -> 105 res += "<option value=\"${f.id}\"" 106 //res += (e.type.toInteger() == selected) ? " selected" : "" 107 res += ">${f}</option>" 107 options.each { f -> 108 res+= "<option value=\"${f.name}\">" 109 110 res+= (f.preferredIdentifier) ? 111 "${f.name} (IDENTIFIER)</option>" : 112 "${f.name}</option>" 108 113 } 109 114
Note: See TracChangeset
for help on using the changeset viewer.