Skip to content

Commit

Permalink
Move render to right td
Browse files Browse the repository at this point in the history
  • Loading branch information
LeticiaErrandonea committed Jun 19, 2024
1 parent b7747e6 commit 948808c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/views/facility_orders/_order_table.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,17 @@
- if od.add_accessories? || od.reservation.present?
%br
= render "order_table_actions", od: od, cross_core: cross_core
%br
= render "order_file_icon", od: od
= render "result_file_icon", od: od
- if cross_core
%td.user
= od.created_by_user
%td.order_date
= od.ordered_at&.strftime("%m/%d/%Y")
= render "order_file_icon", od: od
= render "result_file_icon", od: od
%td.currency.timeinput= od.reservation.try(:duration_mins)
- if od.time_data.present?
%td.currency{class: od.time_data.actual_duration_mins ? "timeinput" : ""}= od.time_data.actual_duration_mins || "???"
Expand Down
2 changes: 2 additions & 0 deletions spec/system/admin/adding_to_an_order_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@
expect(new_order_detail).to be_complete
expect(I18n.l(new_order_detail.fulfilled_at.to_date, format: :usa)).to eq(fulfilled_at_string)
expect(I18n.l(new_order_detail.ordered_at.to_date, format: :usa)).to eq(fulfilled_at_string)

expect(page).to have_content("0 Uploaded"), count: 2
end
end
end
Expand Down

0 comments on commit 948808c

Please sign in to comment.