Sha256: 5ff5ef54e3e8f4cfc31da49e59691e23d81dfdcc694a62169936729f21fe8cc4
Contents?: true
Size: 521 Bytes
Versions: 4
Compression:
Stored size: 521 Bytes
Contents
module BootstrapForm module CustomFileField def custom_file_field(name, *args) options = args.extract_options!.symbolize_keys! args << options form_group_builder(name, options.reverse_merge(control_class: nil)) do html = file_field_without_bootstrap(name, options.merge(class: 'custom-file-input')) + " " + content_tag('span', '', class: ['custom-file-control', options[:class]].compact.join(' ')) label(name, html, class: "custom-file form-control") end end end end
Version data entries
4 entries across 4 versions & 1 rubygems