Sha256: ee26f392b64459cfb8a08d7de714caebfc54501d22ebbdd8501b4ae3711dae39
Contents?: true
Size: 572 Bytes
Versions: 20
Compression:
Stored size: 572 Bytes
Contents
module Effective module FormInputs class PasswordField < Effective::FormInput def input_html_options { class: 'form-control', id: tag_id } end def input_group_options { input_group: { class: 'input-group' }, prepend: content_tag(:span, icon('lock'), class: 'input-group-text') } end def feedback_options case layout when :inline false else { valid: { class: 'valid-feedback' }, invalid: { class: 'invalid-feedback' }, reset: true } end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems