Sha256: 59a6d276f2b54649a8539fb9b14ade94db83c0925f1482a2aca6607086d98b32

Contents?: true

Size: 560 Bytes

Versions: 137

Compression:

Stored size: 560 Bytes

Contents

module Effective
  module FormInputs
    class PasswordField < Effective::FormInput

      def input_html_options
        { class: 'form-control' }
      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

137 entries across 137 versions & 1 rubygems

Version Path
effective_bootstrap-0.6.16 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.6.15 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.6.14 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.6.13 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.6.12 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.6.11 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.6.10 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.6.9 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.6.8 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.6.7 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.6.6 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.6.5 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.6.4 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.6.3 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.6.2 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.6.1 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.6.0 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.5.20 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.5.19 app/models/effective/form_inputs/password_field.rb
effective_bootstrap-0.5.18 app/models/effective/form_inputs/password_field.rb