Sha256: e617f8eab45c8abb3635dcd52b3e135759adc18dea4e9f58e115f060279975da
Contents?: true
Size: 818 Bytes
Versions: 8
Compression:
Stored size: 818 Bytes
Contents
module BulmaFormBuilder module Inputs module CollectionRadioButtons extend ActiveSupport::Concern include Base included do def collection_radio_buttons_with_bulma(method, collection, value_method, text_method, options = {}, html_options = {}) # rubocop:disable Metrics/ParameterLists html = form_field_builder(method, options, html_options) do collection_radio_buttons_without_bulma(method, collection, value_method, text_method, options, html_options) do |b| content_tag(:label, class: 'radio') do concat b.radio_button concat content_tag(:span, class: 'control-label') { b.text } end end end end bulma_alias :collection_radio_buttons end end end end
Version data entries
8 entries across 8 versions & 1 rubygems