Skip to content

Commit

Permalink
Add explicit IDs to submit_button
Browse files Browse the repository at this point in the history
  • Loading branch information
aapomm committed Jul 4, 2023
1 parent d2bfb29 commit 54bd3c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/export/_submit_button.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<span class="visually-hidden">Toggle Dropdown</span>
</button>
<div class="dropdown-menu">
<%= collection_radio_buttons(plugin_name, :scope, [['published', 'published'], ['all', 'all']], :first, :first) do |b| %>
<%= collection_radio_buttons(nil, :scope, [['published', 'published'], ['all', 'all']], :first, :first) do |b| %>
<span>
<%= b.label class: 'state' do %>
<%= b.radio_button class: 'd-none', data: { behavior: 'state-radio'}, checked: b.value == 'published' %>
<%= b.label class: 'state', for: "#{plugin_name}_scope_#{b.value}" do %>
<%= b.radio_button id: "#{plugin_name}_scope_#{b.value}", class: 'd-none', data: { behavior: 'state-radio'}, checked: b.value == 'published' %>
<i class="fa-solid fa-check fa-fw"></i>
<div class="state-label">
<p data-behavior="state-label"><%= b.text.humanize %></p>
Expand Down

0 comments on commit 54bd3c5

Please sign in to comment.