Skip to content

Commit 7b23914

Browse files
authored
Merge pull request #5398 from Tyler-Fanuele/5372AlignmentNudges2
5372 alignment nudges2
2 parents 2f6b5ea + db31423 commit 7b23914

File tree

18 files changed

+33
-35
lines changed

18 files changed

+33
-35
lines changed

app/helpers/kits_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def deactivate_kit_button(kit, inventory)
1010
tag.span(**span_options) do
1111
deactivate_button_to(deactivate_kit_path(kit),
1212
options.merge({text: "Deactivate",
13-
confirm: confirm_deactivate_msg(kit.name), size: "m"}))
13+
confirm: confirm_deactivate_msg(kit.name), size: "xs"}))
1414
end
1515
end
1616
end

app/views/adjustments/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
<th>Storage location</th>
8181
<th>Comment</th>
8282
<th>Summary</th>
83-
<th>&nbsp;</th>
83+
<th class="text-right">Actions</th>
8484
</tr>
8585
</thead>
8686
<tbody>

app/views/admin/base_items/_base_item_row.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<tr id="base-item-row-<%= base_item_row.to_param %>">
22
<td><%= base_item_row.name %></td>
3-
<td><%= base_item_row.item_count %></td>
3+
<td class="text-right"><%= base_item_row.item_count %></td>
44
<td class="text-right">
55
<%= view_button_to admin_base_item_path(base_item_row) %>
66
<%= edit_button_to edit_admin_base_item_path(base_item_row) %>

app/views/admin/base_items/index.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
<thead>
3333
<tr>
3434
<th>Name</th>
35+
<th class="text-right">Child Items</th>
3536
<th>Child Items</th>
3637
<th class="text-right">Actions</th>
3738
</tr>

app/views/admin/organizations/_list.html.erb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<tr>
55
<th>Organization</th>
66
<th>Contact E-mail</th>
7-
<th class="date">Added On</th>
8-
<th class="date">Last Distribution Date</th>
7+
<th class="date text-left">Added On</th>
8+
<th class="date text-left">Last Distribution Date</th>
99
<th class="text-right">Actions</th>
1010
</tr>
1111
</thead>
@@ -15,8 +15,8 @@
1515
<tr>
1616
<td><%= organization.name %></td>
1717
<td><%= link_to organization.email, "mailto:#{organization.email}" %></td>
18-
<td class="date"><%= organization.created_at.strftime("%F") %></td>
19-
<td class="date"><%= organization.display_last_distribution_date %></td>
18+
<td class="date text-left"><%= organization.created_at.strftime("%F") %></td>
19+
<td class="date text-left"><%= organization.display_last_distribution_date %></td>
2020
<td class="text-right">
2121
<%= view_button_to admin_organization_path(organization.id) %>
2222
<%= delete_button_to(admin_organization_path(organization.id), { confirm: confirm_delete_msg(organization.name) }) unless (Organization.count <= 1) %>

app/views/audits/show.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<tr>
4747
<th>Item</th>
4848
<th>Audit Quantity</th>
49-
<th>Quantity in Records</th>
49+
<th class="text-right">Quantity in Records</th>
5050
</tr>
5151
</thead>
5252
<tbody>
@@ -55,7 +55,7 @@
5555
<tr class="<%= line_item.nil? ? "negative" : (line_item.quantity.equal?(inventory_item.quantity) ? "positive" : "highlight") %>">
5656
<td><%= inventory_item.name %></td>
5757
<td><%= line_item&.quantity&.abs || "Not Audited" %></td>
58-
<td><%= inventory_item.quantity %></td>
58+
<td class="text-right"><%= inventory_item.quantity %></td>
5959
</tr>
6060
<% end %>
6161
</tbody>

app/views/broadcast_announcements/_broadcast_announcement.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<td><%= broadcast_announcement.message %></td>
33
<td><%= link_to broadcast_announcement.link, broadcast_announcement.link %></td>
44
<td><%= broadcast_announcement.user&.name || "N/A" %></td>
5-
<td><%= broadcast_announcement.expiry %>
5+
<td class="date text-left"><%= broadcast_announcement.expiry %>
66
<% if broadcast_announcement.expired? %>
77
<span class="badge badge-danger bg-danger">Expired</span>
88
<% end %>

app/views/broadcast_announcements/index.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
<th class="w-50">Announcement</th>
4040
<th>More info</th>
4141
<th>Sent by</th>
42-
<th>Expiration</th>
43-
<th class="text-center">Actions</th>
42+
<th class="date text-left">Expiration</th>
43+
<th class="text-right">Actions</th>
4444
</tr>
4545
</thead>
4646
<tbody>

app/views/distributions/_distribution_row.html.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<tr <%= 'class="highlight"' if distribution_row.id == @highlight_id %>>
22
<td><%= distribution_row.id %></td>
33
<td><%= distribution_row.partner.name %></td>
4-
<td class="date"><%= distribution_row.created_at.strftime("%m/%d/%Y") %></td>
5-
<td class="date"><%= (distribution_row.issued_at.presence || distribution_row.created_at).strftime("%m/%d/%Y") %></td>
4+
<td class="date text-left"><%= distribution_row.created_at.strftime("%m/%d/%Y") %></td>
5+
<td class="date text-left"><%= (distribution_row.issued_at.presence || distribution_row.created_at).strftime("%m/%d/%Y") %></td>
66
<td><%= distribution_row.storage_location.name %></td>
77
<td class="numeric"><%= @distribution_totals[distribution_row.id].quantity %></td>
88
<td class="numeric"><%= dollar_value(@distribution_totals[distribution_row.id].value) %></td>
99
<td><%= distribution_row.delivery_method.humanize %></td>
10-
<td><%= distribution_shipping_cost(distribution_row.shipping_cost) %></td>
10+
<td class="text-right"><%= distribution_shipping_cost(distribution_row.shipping_cost) %></td>
1111
<td><%= distribution_row.comment %></td>
1212
<td><%= distribution_row.state&.humanize %></td>
1313
<% distribution_has_inactive_item = @distributions_with_inactive_items.include?(distribution_row.id) %>

app/views/distributions/index.html.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@
9999
<tr>
100100
<th>ID</th>
101101
<th>Partner</th>
102-
<th class="date">Initial Allocation</th>
103-
<th class="date">Date of Distribution</th>
102+
<th class="date text-left">Initial Allocation</th>
103+
<th class="date text-left">Date of Distribution</th>
104104
<th>Source Inventory</th>
105105
106106
<% filtered_item_name = @selected_item ? @items.find { |i| i.id == filter_params[:by_item_id].to_i }&.name : nil %>
@@ -127,7 +127,7 @@
127127
<!-- End Value -->
128128
129129
<th>Delivery Method</th>
130-
<th>Shipping Cost</th>
130+
<th class="text-right">Shipping Cost</th>
131131
<th>Comments</th>
132132
<th>Status</th>
133133
<th class="text-right" style="width: 400px">Actions</th>

0 commit comments

Comments
 (0)