Class: AddonInput
- Inherits:
-
SimpleForm::Inputs::StringInput
- Object
- SimpleForm::Inputs::StringInput
- AddonInput
- Extended by:
- PureAdmin::ApplicationHelper
- Defined in:
- app/inputs/addon_input.rb
Overview
Overrides the :email input type to add a default prefix.
Direct Known Subclasses
Instance Method Summary collapse
Methods included from PureAdmin::ApplicationHelper
Instance Method Details
#icon ⇒ Object
6 7 8 9 10 11 12 |
# File 'app/inputs/addon_input.rb', line 6 def icon if [:icon].present? template.content_tag(:span, nil, class: ['input-addon', 'fa', 'fa-fw', [:icon]]) else '' end end |
#input(wrapper_options = nil) ⇒ Object
14 15 16 |
# File 'app/inputs/addon_input.rb', line 14 def input( = nil) icon + super() end |