Skip to content

Commit

Permalink
Fix the bulk_submissions warnings partial
Browse files Browse the repository at this point in the history
  • Loading branch information
yoldas committed Dec 22, 2024
1 parent 73aa409 commit ffb743b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions app/views/bulk_submissions/_warnings.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<% alert(:warning) do %>
<ul>Warning
<% @presenter.warnings.full_messages.each do |message| %>
<li><%= message %></li>
<% end %>
</ul>
<% end %>
<ul>Warning
<% @presenter.warnings.full_messages.each do |message| %>
<li><%= message %></li>
<% end %>
</ul>
<% end %>
2 changes: 1 addition & 1 deletion app/views/bulk_submissions/create.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<p class="lead">Your bulk submission has been processed.</p>

<% if @bulk_submission.warnings.present? %>
<% render partial: 'bulk_submissions/warnings' locals: {presenter: @bulk_submission} %>
<% render partial: 'bulk_submissions/warnings', locals: {presenter: @bulk_submission} %>
<% end %>

<% @these_subs.each do |submission| %>
Expand Down

0 comments on commit ffb743b

Please sign in to comment.