Class: FileInputDownloadInput
- Inherits:
-
SimpleForm::Inputs::FileInput
- Object
- SimpleForm::Inputs::FileInput
- FileInputDownloadInput
- Defined in:
- app/inputs/file_input_download_input.rb
Instance Method Summary collapse
Instance Method Details
#div_button ⇒ Object
16 17 18 19 20 |
# File 'app/inputs/file_input_download_input.rb', line 16 def template.content_tag(:div, class: 'input-group-append') do yield end end |
#input(wrapper_options) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'app/inputs/file_input_download_input.rb', line 2 def input() template.content_tag(:div, class: 'input-group') do tmp = ActiveSupport::SafeBuffer.new tmp << super tmp << { [:download_button].show } if [:download_button] tmp << { [:remove_checkbox].show } if [:remove_checkbox] tmp end end |