Sha256: f11bba5727e6817eea3dea090f9c1c7f2518bb85fd67ce0d8a539f459da4b735

Contents?: true

Size: 634 Bytes

Versions: 8

Compression:

Stored size: 634 Bytes

Contents

<div class="FormControl-radio-group-wrap">
  <%= content_tag(:fieldset, role: 'radiogroup', **@input.input_arguments) do %>
    <% if @input.label %>
      <%= content_tag(:legend, **@input.label_arguments) do %>
        <%= @input.label %>
      <% end %>
    <% end %>
    <div class="mb-2">
      <%= render(Caption.new(input: @input)) %>
    </div>
    <%= render(SpacingWrapper.new) do %>
      <% @input.radio_buttons.each do |radio_button| %>
        <%= render(radio_button.to_component) %>
      <% end %>
    <% end %>
  <% end %>
  <div class="mt-2">
    <%= render(ValidationMessage.new(input: @input)) %>
  </div>
</div>

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
primer_view_components-0.36.5 app/lib/primer/forms/radio_button_group.html.erb
openproject-primer_view_components-0.52.2 app/lib/primer/forms/radio_button_group.html.erb
primer_view_components-0.36.4 app/lib/primer/forms/radio_button_group.html.erb
openproject-primer_view_components-0.52.1 app/lib/primer/forms/radio_button_group.html.erb
openproject-primer_view_components-0.52.0 app/lib/primer/forms/radio_button_group.html.erb
primer_view_components-0.36.3 app/lib/primer/forms/radio_button_group.html.erb
openproject-primer_view_components-0.51.0 app/lib/primer/forms/radio_button_group.html.erb
primer_view_components-0.36.2 app/lib/primer/forms/radio_button_group.html.erb