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

Version Path
effective_bootstrap-0.9.13 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.9.12 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.9.11 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.9.10 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.9.9 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.9.8 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.9.7 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.9.6 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.9.5 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.9.4 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.9.3 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.9.2 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.9.1 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.9.0 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.8.5 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.8.4 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.8.3 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.8.2 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.8.1 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.8.0 app/models/effective/form_inputs/password_field.rb