Sha256: ab9768c770b0bc55c24ec845f945718670f9dcb80f97e6b873c4afe9119a4664
Contents?: true
Size: 623 Bytes
Versions: 66
Compression:
Stored size: 623 Bytes
Contents
# frozen_string_literal: true module Effective module FormInputs class UrlField < Effective::FormInput def input_html_options { class: 'form-control', placeholder: 'https://www.example.com', id: tag_id, pattern: '(http:\/|https:\/)?\/[^\/+].+', type: 'text' } end def input_group_options { input_group: { class: 'input-group' }, prepend: content_tag(:span, icon('link'), class: 'input-group-text') } end # This has gotta be a valid pattern def validated?(name) true end end end end
Version data entries
66 entries across 66 versions & 1 rubygems