def input_attributes(value)
      params = {:id => input_id, :type => type, :name => name, :value => value }
      if type == 'checkbox' then
        params[:value] ||= self.value
        params[:checked] = true if default
      end
      params
    end
def input_attributes(value)
      params = {:id => input_id, :type => type, :name => name, :value => value }
      if type == 'checkbox' then
        params[:value] ||= self.value
        params[:checked] = true if default
      end
      params
    end
Parses the given field specification.

 @param [String] label the configuration field specification key
 @param [{String => String}] spec the configuration field specification value
 Returns this field's HTML input element attributes and target caTissue properties.

 The attributes are determined by the field configuration as follows:
 * +id+: this field's HTML input element id
 * +type+: this field's type
 * +checked+: +true+ if the field type is +checkbox+ and the field default is set
 * +name+: if the field type is not +checkbox+, then this field's name

 @param [String, nil] value the request parameter value
 @return [{Symbol => String}] the form input element attributes