Sha256: 92ba25d03da880d923a07a6277eed6f5bd4fb576dfef7e9044883a1de95cbd8b

Contents?: true

Size: 622 Bytes

Versions: 149

Compression:

Stored size: 622 Bytes

Contents

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

Version data entries

149 entries across 149 versions & 3 rubygems

Version Path
primer_view_components-0.0.121 lib/primer/forms/check_box.html.erb
yattho_view_components-0.1.1 lib/yattho/forms/check_box.html.erb
yattho_view_components-0.0.1 lib/yattho/forms/check_box.html.erb
primer_view_components-0.0.120 lib/primer/forms/check_box.html.erb
primer_view_components-0.0.119 lib/primer/forms/check_box.html.erb
primer_view_components-0.0.118 lib/primer/forms/check_box.html.erb
primer_view_components-0.0.117 lib/primer/forms/check_box.html.erb
primer_view_components-0.0.116 lib/primer/forms/check_box.html.erb
primer_view_components-0.0.115 lib/primer/forms/check_box.html.erb