Ignore:
Timestamp:
Mar 12, 2010, 11:51:33 AM (11 years ago)
Author:
tabma
Message:
File:
1 edited

Legend:

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

    r256 r259  
    5656    }
    5757
    58     def createSelect(selected, String name, options, String customvalue) {
    59         def res = "<select style=\"font-size:10px\" name=\"${name}\">"
    60 
    61         options.each { e ->
    62             res += "<option value=\"${customvalue}:${e}\""
    63             res += (e == selected) ? " selected" : ""
    64             res += ">${e}</option>"
    65         }
    66 
    67         res += "</select>"
    68         return res
    69     }
    70 
    7158    /**
    7259     * Possibly this will later on return an AJAX-like autocompletion chooser for the fields?
     
    11097        res += "</select>"
    11198        return res
    112     }   
     99    }
     100
     101    /**
     102    * @param selected selected TemplateFieldType
     103    * @param custval custom value to be combined in the option(s) of the selector
     104    * @param name name of the HTML select object
     105    * @return HTML select object
     106    *
     107    * @see dbnp.studycapturing.TemplateFieldType
     108    */
    113109
    114110     def entitySelect = { attrs ->
     
    130126
    131127    /**
    132     * @param selected selected celltype
     128    * @param selected selected TemplateFieldType
     129    * @param customvalue custom value to be combined in the option(s) of the selector
    133130    * @param name name of the HTML select object
    134     * @see org.apache.poi.ss.usermodel.Cell for the possible cell types
    135131    * @return HTML select object
     132    *
     133    * @see dbnp.studycapturing.TemplateFieldType
    136134    */
    137135    def templatefieldtypeSelect = { attrs ->
    138136        def selected = (attrs['selected']==null) ? -1 : attrs['selected']
    139137        def customvalue = (attrs['customvalue']==null) ? "" : attrs['customvalue']
    140         def name = (attrs['name']==null) ? "" : attrs['name']
    141         //out << createSelect(selected, attrs['name'], standardcelltypes, customvalue)
     138        def name = (attrs['name']==null) ? "" : attrs['name']   
    142139
    143140        def res = "<select style=\"font-size:10px\" name=\"${name}\">"
Note: See TracChangeset for help on using the changeset viewer.