def resource_attribute_field_options(attribute)
      options = {hint: resource_handler.help_text_for(attribute)}
      input_type = attribute[:type].to_s
      case input_type
      when 'boolean'
        options
      when 'date', 'time', 'datetime'
        date = resource_instance_variable.send(attribute[:name]) || Time.current
        options.merge(
          as: 'string',
          input_html: {
            'data-datepicker-type' => input_type,
            value: date ? date.iso8601 : nil
          }
        )
      when 'text'
        options.merge(as: 'text', input_html: {rows: 4})
      else
        options.merge(as: 'string')
      end
    end
def resource_attribute_field_options(attribute)
      options = {hint: resource_handler.help_text_for(attribute)}
      input_type = attribute[:type].to_s
      case input_type
      when 'boolean'
        options
      when 'date', 'time', 'datetime'
        date = resource_instance_variable.send(attribute[:name]) || Time.current
        options.merge(
          as: 'string',
          input_html: {
            'data-datepicker-type' => input_type,
            value: date ? date.iso8601 : nil
          }
        )
      when 'text'
        options.merge(as: 'text', input_html: {rows: 4})
      else
        options.merge(as: 'string')
      end
    end
Returns a options hash for simple_form input fields.