Sha256: 16950981659a83ab5aecf0d5d1215f9a109c51a2b39be79f3345fad5ded758bb

Contents?: true

Size: 467 Bytes

Versions: 130

Compression:

Stored size: 467 Bytes

Contents

module Effective
  module FormInputs
    class EmailField < Effective::FormInput

      def input_html_options
        { class: 'form-control', placeholder: 'someone@example.com' }
      end

      def input_group_options
        { input_group: { class: 'input-group' }, prepend: content_tag(:span, icon('at-sign'), class: 'input-group-text') }
      end

      # This has gotta be a valid pattern
      def validated?(name)
        true
      end

    end
  end
end

Version data entries

130 entries across 130 versions & 1 rubygems

Version Path
effective_bootstrap-0.1.7 app/models/effective/form_inputs/email_field.rb
effective_bootstrap-0.1.6 app/models/effective/form_inputs/email_field.rb
effective_bootstrap-0.1.5 app/models/effective/form_inputs/email_field.rb
effective_bootstrap-0.1.4 app/models/effective/form_inputs/email_field.rb
effective_bootstrap-0.1.3 app/models/effective/form_inputs/email_field.rb
effective_bootstrap-0.1.2 app/models/effective/form_inputs/email_field.rb
effective_bootstrap-0.1.1 app/models/effective/form_inputs/email_field.rb
effective_bootstrap-0.1.0 app/models/effective/form_inputs/email_field.rb
effective_bootstrap-0.0.29 app/models/effective/form_inputs/email_field.rb
effective_bootstrap-0.0.28 app/models/effective/form_inputs/email_field.rb
effective_bootstrap-0.0.27 app/models/effective/form_inputs/email_field.rb
effective_bootstrap-0.0.26 app/models/effective/form_inputs/email_field.rb
effective_bootstrap-0.0.25 app/models/effective/form_inputs/email_field.rb
effective_bootstrap-0.0.24 app/models/effective/form_inputs/email_field.rb
effective_bootstrap-0.0.23 app/models/effective/form_inputs/email_field.rb
effective_bootstrap-0.0.22 app/models/effective/form_inputs/email_field.rb
effective_bootstrap-0.0.21 app/models/effective/form_inputs/email_field.rb
effective_bootstrap-0.0.20 app/models/effective/form_inputs/email_field.rb
effective_bootstrap-0.0.19 app/models/effective/form_inputs/email_field.rb
effective_bootstrap-0.0.18 app/models/effective/form_inputs/email_field.rb