Class: Inputs::EffectiveEmail::Input
- Inherits:
-
Effective::FormInput
- Object
- Effective::FormInput
- Inputs::EffectiveEmail::Input
- Defined in:
- app/models/inputs/effective_email/input.rb
Instance Method Summary collapse
Methods inherited from Effective::FormInput
#field_name, #html_options, #initialize, #js_options, #options, #value
Constructor Details
This class inherits a constructor from Effective::FormInput
Instance Method Details
#default_input_html ⇒ Object
6 7 8 9 10 11 |
# File 'app/models/inputs/effective_email/input.rb', line 6 def default_input_html { class: 'effective_email email', placeholder: '[email protected]', } end |
#to_html ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'app/models/inputs/effective_email/input.rb', line 13 def to_html if [:input_group] == false return email_field_tag(field_name, value, ) end content_tag(:div, class: 'input-group') do content_tag(:span, class: 'input-group-addon') do content_tag(:i, '', class: 'glyphicon glyphicon-envelope').html_safe end + email_field_tag(field_name, value, ) end end |