Class: Effective::FormInputs::PasswordField
Constant Summary
Effective::FormInput::BLANK
Instance Attribute Summary
#name, #options
Instance Method Summary
collapse
#hint_options, #initialize, #input_js_options, #label_options, #to_html, #wrapper_options
Instance Method Details
#feedback_options ⇒ Object
13
14
15
16
17
18
19
20
|
# File 'app/models/effective/form_inputs/password_field.rb', line 13
def feedback_options
case layout
when :inline
false
else
{ valid: { class: 'valid-feedback' }, invalid: { class: 'invalid-feedback' }, reset: true }
end
end
|
9
10
11
|
# File 'app/models/effective/form_inputs/password_field.rb', line 9
def input_group_options
{ input_group: { class: 'input-group' }, prepend: content_tag(:span, icon('lock'), class: 'input-group-text') }
end
|
5
6
7
|
# File 'app/models/effective/form_inputs/password_field.rb', line 5
def input_html_options
{ class: 'form-control' }
end
|