def check_box_input attribute, options = {}, &block
      panel = if block_given? || options.key?(:panel_id)
                panel_id = options.delete(:panel_id) { [attribute, 'panel'].join('_') }
                options.merge!('data-target': panel_id)
                revealing_panel(panel_id, flush: false, &block) if block_given?
              end

      checkbox = check_box_inputs([attribute], options).first + "\n"

      safe_concat([checkbox, panel].join)
    end
def check_box_input attribute, options = {}, &block
      panel = if block_given? || options.key?(:panel_id)
                panel_id = options.delete(:panel_id) { [attribute, 'panel'].join('_') }
                options.merge!('data-target': panel_id)
                revealing_panel(panel_id, flush: false, &block) if block_given?
              end

      checkbox = check_box_inputs([attribute], options).first + "\n"

      safe_concat([checkbox, panel].join)
    end
The following method will generate revealing panel markup and internally call the
 `check_box_inputs` private method. It is not intended to be used outside a
 fieldset tag (at the moment, `check_box_fieldset`).