Class: ActiveAdmin::Inputs::FileInput

Inherits:
Formtastic::Inputs::FileInput
  • Object
show all
Includes:
Adminterface::Extensions::Inputs::Base, Adminterface::Extensions::Inputs::Base::Groupish
Defined in:
lib/adminterface/extensions/inputs/file_input.rb

Instance Method Summary collapse

Methods included from Adminterface::Extensions::Inputs::Base::ActiveAdminConfig

#active_admin_config, #inputs_config

Methods included from Adminterface::Extensions::Inputs::Base::Pluginish

#plugin?, #plugins_configs, #plugins_options

Methods included from Adminterface::Extensions::Inputs::Base::Wrapping

#input_wrapping, #input_wrapping_html, #wrapper_classes

Methods included from Adminterface::Extensions::Inputs::Base::Labelling

#label_html_options

Methods included from Adminterface::Extensions::Inputs::Base::Html

#input_html_options

Methods included from Adminterface::Extensions::Inputs::Base::Groupish

#wrapper_html_options

Instance Method Details

#input_htmlObject



14
15
16
# File 'lib/adminterface/extensions/inputs/file_input.rb', line 14

def input_html
  builder.file_field(method, input_html_options)
end

#to_htmlObject

@TODO: use custom component so we can change the translations in I18n YAML files



8
9
10
11
12
# File 'lib/adminterface/extensions/inputs/file_input.rb', line 8

def to_html
  input_wrapping do
    label_html << input_html
  end
end