<%= content_tag(:div, class: "FormControl-checkbox-wrap", hidden: @input.hidden?) do %> <%= builder.check_box(@input.name, @input.input_arguments, checked_value, unchecked_value) %> <%= builder.label(@input.name, **@input.label_arguments) do %> <%= @input.label %> <% end %> <% if @input.form_control? %> <%= render(Caption.new(input: @input)) %> <% end %> <% end %> <% if @input.nested_form_block %> <%= content_tag(:div, nested_form_arguments) do %> <%= render(@input.nested_form_block.call(builder)) %> <% end %> <% end %>