Class: Effective::FormBuilderInputs::EffectiveEmail
- Inherits:
-
Effective::FormBuilderInput
- Object
- Effective::FormBuilderInput
- Effective::FormBuilderInputs::EffectiveEmail
- Defined in:
- app/models/effective/form_builder_inputs/effective_email.rb
Instance Method Summary collapse
Methods inherited from Effective::FormBuilderInput
#field_name, #html_options, #initialize, #js_options, #options, #value
Constructor Details
This class inherits a constructor from Effective::FormBuilderInput
Instance Method Details
#default_input_html ⇒ Object
6 7 8 9 10 11 |
# File 'app/models/effective/form_builder_inputs/effective_email.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/effective/form_builder_inputs/effective_email.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 |