Sha256: 33863c8c2ffd1981632a89b115761f6bef811f1443fde438768e558c4634275f
Contents?: true
Size: 519 Bytes
Versions: 10
Compression:
Stored size: 519 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('', html, class: "custom-file form-control") end end end end
Version data entries
10 entries across 10 versions & 1 rubygems