Module: Adminterface::Extensions::Inputs::Base::Groupish
- Included in:
- ActiveAdmin::Inputs::FileInput, ColorInput, CountryInput, DatalistInput, DatePickerInput, DatetimePickerInput, EmailInput, NumberInput, PasswordInput, PhoneInput, SearchInput, SelectInput, StringInput, TimePickerInput, TimeZoneInput, UrlInput
- Defined in:
- lib/adminterface/extensions/inputs/base/groupish.rb
Instance Method Summary collapse
Instance Method Details
#input_html ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/adminterface/extensions/inputs/base/groupish.rb', line 6 def input_html return super unless grouping? template.content_tag :div, class: "input-group" do html = [] html.push prepend_html if prepend_html? html.push super html.push append_html if append_html? html.join.html_safe end end |
#wrapper_html_options ⇒ Object
18 19 20 21 22 23 |
# File 'lib/adminterface/extensions/inputs/base/groupish.rb', line 18 def return super unless grouping? new_class = [super[:class], "input-group"].compact.join(" ") super.merge(class: new_class) end |