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
openproject-primer_view_components-0.6.3 lib/primer/forms/check_box.html.erb
primer_view_components-0.6.0 lib/primer/forms/check_box.html.erb
primer_view_components-0.5.1 lib/primer/forms/check_box.html.erb
primer_view_components-0.5.0 lib/primer/forms/check_box.html.erb
primer_view_components-0.4.0 lib/primer/forms/check_box.html.erb
primer_view_components-0.3.1 lib/primer/forms/check_box.html.erb
primer_view_components-0.3.0 lib/primer/forms/check_box.html.erb
primer_view_components-0.2.0 lib/primer/forms/check_box.html.erb
primer_view_components-0.1.9 lib/primer/forms/check_box.html.erb
primer_view_components-0.1.8 lib/primer/forms/check_box.html.erb
primer_view_components-0.1.7 lib/primer/forms/check_box.html.erb
primer_view_components-0.1.6 lib/primer/forms/check_box.html.erb
primer_view_components-0.1.5 lib/primer/forms/check_box.html.erb
primer_view_components-0.1.4 lib/primer/forms/check_box.html.erb
primer_view_components-0.1.3 lib/primer/forms/check_box.html.erb
primer_view_components-0.1.2 lib/primer/forms/check_box.html.erb
primer_view_components-0.1.1 lib/primer/forms/check_box.html.erb
primer_view_components-0.1.0 lib/primer/forms/check_box.html.erb
primer_view_components-0.0.123 lib/primer/forms/check_box.html.erb
primer_view_components-0.0.122 lib/primer/forms/check_box.html.erb