Sha256: 18763816cf46c24dcf8d8dd70cd6e6645c448aa4a429d8ea4042fcd8ee9d79df

Contents?: true

Size: 663 Bytes

Versions: 10

Compression:

Stored size: 663 Bytes

Contents

# frozen_string_literal: true

module BootstrapForm
  module Inputs
    module TimeZoneSelect
      extend ActiveSupport::Concern
      include Base

      included do
        def time_zone_select_with_bootstrap(method, priority_zones=nil, options={}, html_options={})
          html_options = html_options.reverse_merge(control_class: "form-select")
          form_group_builder(method, options, html_options) do
            input_with_error(method) do
              time_zone_select_without_bootstrap(method, priority_zones, options, html_options)
            end
          end
        end

        bootstrap_alias :time_zone_select
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
bootstrap_form-5.4.0 lib/bootstrap_form/inputs/time_zone_select.rb
bootstrap_form-5.3.2 lib/bootstrap_form/inputs/time_zone_select.rb
bootstrap_form-5.3.1 lib/bootstrap_form/inputs/time_zone_select.rb
bootstrap_form-5.3.0 lib/bootstrap_form/inputs/time_zone_select.rb
bootstrap_form-5.2.3 lib/bootstrap_form/inputs/time_zone_select.rb
bootstrap_form-5.2.2 lib/bootstrap_form/inputs/time_zone_select.rb
bootstrap_form-5.2.1 lib/bootstrap_form/inputs/time_zone_select.rb
bootstrap_form-5.2.0 lib/bootstrap_form/inputs/time_zone_select.rb
bootstrap_form-5.1.0 lib/bootstrap_form/inputs/time_zone_select.rb
bootstrap_form-5.0.0 lib/bootstrap_form/inputs/time_zone_select.rb