Sha256: 86386416df1510a1f0c8bd057d01a1b26a5386931beebacf37554fb1745b5f3c

Contents?: true

Size: 529 Bytes

Versions: 113

Compression:

Stored size: 529 Bytes

Contents

# frozen_string_literal: true

module Effective
  module FormInputs
    class EmailCcField < Effective::FormInput

      def build_input(&block)
        @builder.super_text_field(name, options[:input])
      end

      def input_html_options
        { class: 'form-control', placeholder: 'one@example.com,two@example.com', id: tag_id }
      end

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

    end
  end
end

Version data entries

113 entries across 113 versions & 1 rubygems

Version Path
effective_bootstrap-0.10.10 app/models/effective/form_inputs/email_cc_field.rb
effective_bootstrap-0.10.9 app/models/effective/form_inputs/email_cc_field.rb
effective_bootstrap-0.10.8 app/models/effective/form_inputs/email_cc_field.rb
effective_bootstrap-0.10.7 app/models/effective/form_inputs/email_cc_field.rb
effective_bootstrap-0.10.6 app/models/effective/form_inputs/email_cc_field.rb
effective_bootstrap-0.10.5 app/models/effective/form_inputs/email_cc_field.rb
effective_bootstrap-0.10.4 app/models/effective/form_inputs/email_cc_field.rb
effective_bootstrap-0.10.3 app/models/effective/form_inputs/email_cc_field.rb
effective_bootstrap-0.10.2 app/models/effective/form_inputs/email_cc_field.rb
effective_bootstrap-0.10.1 app/models/effective/form_inputs/email_cc_field.rb
effective_bootstrap-0.10.0 app/models/effective/form_inputs/email_cc_field.rb
effective_bootstrap-0.9.49 app/models/effective/form_inputs/email_cc_field.rb
effective_bootstrap-0.9.48 app/models/effective/form_inputs/email_cc_field.rb