Sha256: 238891d7ced16042cb3cb1c7517aad328e3c7ee4a2816969aea3552bd00b5c17
Contents?: true
Size: 622 Bytes
Versions: 1
Compression:
Stored size: 622 Bytes
Contents
# frozen_string_literal: true # Tag for text content that is going to be rendered using number input # {{ cms:number identifier }} # class ComfortableMediaSurfer::Content::Tags::Number < ComfortableMediaSurfer::Content::Tags::Fragment def form_field(object_name, view, index) name = "#{object_name}[fragments_attributes][#{index}][content]" options = { id: form_field_id, class: 'form-control' } input = view.send(:number_field_tag, name, content, options) yield input end end ComfortableMediaSurfer::Content::Renderer.register_tag( :number, ComfortableMediaSurfer::Content::Tags::Number )
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
comfortable_media_surfer-3.0.0 | lib/comfortable_media_surfer/content/tags/number.rb |