Sha256: dd9d57136d66e325926b4332319938e7a14cf3a25bc7c69688f31520d6d4b6aa
Contents?: true
Size: 529 Bytes
Versions: 7
Compression:
Stored size: 529 Bytes
Contents
# frozen_string_literal: true # Add a telephone-field, either specifying everything manually or using a model object on the form # # == Basic usage: # {%telephone_field name:"phone" value:"1"%} # # == Advanced usage: # {%telephone_field phone%} # # This last usage requires a model on the form # require_relative './text_field_tag' class TelephoneFieldTag < TextFieldTag def initialize(tag, args, tokens) super @field_type = 'tel' end end Liquid::Template.register_tag('telephone_field', TelephoneFieldTag)
Version data entries
7 entries across 7 versions & 1 rubygems