Skip to content

Commit

Permalink
updated message to indicate low priority of message
Browse files Browse the repository at this point in the history
  • Loading branch information
AweysAhmed committed Jul 2, 2024
1 parent b75e4fb commit cafcba7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ select.selectpicker + .dropdown-toggle::after {
background-color: #8282df
}

div.warning {
div.low_priority_warning {
margin: 5px;
text-align: center;
}
2 changes: 1 addition & 1 deletion app/views/distributions/_distribution_row.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
text: "Reclaim",
icon: "undo", enabled: !distribution_row.has_inactive_item? } %>
<% if distribution_row.has_inactive_item? %>
<div class="warning">Has Inactive Items</div>
<div class="low_priority_warning">Has Inactive Items</div>
<% end %>
</td>
2 changes: 1 addition & 1 deletion app/views/distributions/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
<%= print_button_to print_distribution_path(@distribution, format: :pdf), {size: "md"} %>
</div>
<% if @distribution.has_inactive_item? %>
<div class="warning">
<div class="low_prioirty_warning">
You can only correct distributions where all the items are active.
If you need to make a correction, please make the following items active: <%= @distribution.inactive_items.map(&:name).join(", ") %>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/donations/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
confirm: "Are you sure you want to permanently remove this donation?" } %>
<% end %>
<% if @donation.has_inactive_item? %>
<div class="warning">
<div class="low_priority_warning">
You can only delete or correct donations where all the items are active.
If you need to delete this donation or make a correction, please make the following items active: <%= @donation.inactive_items.map(&:name).join(", ") %>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/purchases/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
confirm: "Are you sure you want to permanently remove this purchase?" } %>
<% end %>
<% if @purchase.has_inactive_item? %>
<div class="warning">
<div class="low_priority_warning">
You can only delete or correct purchases where all the items are active.
If you need to delete this purchase or make a correction, please make the following items active: <%= @purchase.inactive_items.map(&:name).join(", ") %>
</div>
Expand Down

0 comments on commit cafcba7

Please sign in to comment.