Skip to content

Commit

Permalink
Give each check_box a unique id
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Jan 27, 2020
1 parent 7f195d7 commit 5aa63e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/erd/erd/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<tbody>
<%- @migrations.each do |m| -%>
<tr class="<%= m[:status] %>">
<td><label><%= check_box_tag (m[:status] == 'up' ? 'down[]' : 'up[]'), m[:filename] %><%= m[:status] %></label></td>
<td><label><%= check_box_tag (m[:status] == 'up' ? 'down[]' : 'up[]'), m[:filename], false, :id => "check_#{m[:filename]}" %><%= m[:status] %></label></td>
<td><%= m[:version] %></td>
<td class="migration_file_name"><%= m[:name] %></td>
</tr>
Expand Down

0 comments on commit 5aa63e1

Please sign in to comment.