Sha256: 6bea338be212baec313fe55021a06122c694e5cfc20877455b0b1fba385ff898

Contents?: true

Size: 614 Bytes

Versions: 6

Compression:

Stored size: 614 Bytes

Contents

<div class="FormControl-radio-group-wrap">
  <%= content_tag(:fieldset, **@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

6 entries across 6 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.49.2 app/lib/primer/forms/radio_button_group.html.erb
primer_view_components-0.35.2 app/lib/primer/forms/radio_button_group.html.erb
openproject-primer_view_components-0.49.1 app/lib/primer/forms/radio_button_group.html.erb
openproject-primer_view_components-0.49.0 app/lib/primer/forms/radio_button_group.html.erb
primer_view_components-0.35.1 app/lib/primer/forms/radio_button_group.html.erb
primer_view_components-0.35.0 app/lib/primer/forms/radio_button_group.html.erb