Skip to content

Commit

Permalink
Improve appearance of radio buttons
Browse files Browse the repository at this point in the history
In order to style these using Bootstrap, we need to provide a block to `collection_radio_buttons`.
  • Loading branch information
jkempster34 committed Sep 8, 2023
1 parent 7e1e35e commit ab5026c
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions app/views/sites/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,13 @@
<%= form.collection_radio_buttons :global_type,
Site::GLOBAL_TYPES,
:to_s,
:humanize
%>
:humanize do |button| %>
<div class="radio">
<%= button.label do %>
<%= button.radio_button + button.text %>
<% end %>
</div>
<% end %>
</div>

<div class="form-group">
Expand All @@ -81,8 +86,13 @@
<%= form.collection_radio_buttons :special_redirect_strategy,
Site::SPECIAL_REDIRECT_STRATEGY_TYPES,
:to_s,
:humanize
%>
:humanize do |button| %>
<div class="radio">
<%= button.label do %>
<%= button.radio_button + button.text %>
<% end %>
</div>
<% end %>
</div>

<div class="form-group">
Expand Down

0 comments on commit ab5026c

Please sign in to comment.