Sha256: 08478c4e4b3831e3b7980074b5008a005125568fc422d8f1cb512aecb1bc7ffa

Contents?: true

Size: 373 Bytes

Versions: 7

Compression:

Stored size: 373 Bytes

Contents

module Effective
  module FormInputs
    class UrlField < Effective::FormInput

      def input_html_options
        { class: 'form-control', placeholder: 'https://www.example.com' }
      end

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

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
effective_bootstrap-0.0.7 app/models/effective/form_inputs/url_field.rb
effective_bootstrap-0.0.6 app/models/effective/form_inputs/url_field.rb
effective_bootstrap-0.0.5 app/models/effective/form_inputs/url_field.rb
effective_bootstrap-0.0.4 app/models/effective/form_inputs/url_field.rb
effective_bootstrap-0.0.3 app/models/effective/form_inputs/url_field.rb
effective_bootstrap-0.0.2 app/models/effective/form_inputs/url_field.rb
effective_bootstrap-0.0.1 app/models/effective/form_inputs/url_field.rb