Skip to content

Commit

Permalink
Merge pull request #3908 from 3scale/fix_invoices_css
Browse files Browse the repository at this point in the history
Fix invoices css
  • Loading branch information
josemigallas authored Oct 7, 2024
2 parents f8fe657 + 9c2ec28 commit 4d9e14e
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
3 changes: 3 additions & 0 deletions app/javascript/packs/invoices_show.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import '~@patternfly/patternfly/layouts/Grid/grid.css';
@import '~@patternfly/patternfly/components/DescriptionList/description-list.css';
@import '~@patternfly/patternfly/components/Table/table.css';
5 changes: 4 additions & 1 deletion app/views/buyers/invoices/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<% content_for :javascripts do %>
<%= javascript_packs_with_chunks_tag 'invoices_show' %>
<% end %>
<%= render '/finance/provider/shared/invoice_title', invoice: @invoice %>
<% content_for :menu do %>
Expand All @@ -10,4 +14,3 @@
<%= render :partial => '/finance/provider/shared/payment_transactions' %>
<%= render :partial => '/finance/provider/invoices/actions' %>
</div>

4 changes: 4 additions & 0 deletions app/views/finance/provider/invoices/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<% content_for :javascripts do %>
<%= javascript_packs_with_chunks_tag 'invoices_show' %>
<% end %>
<%= render '/finance/provider/shared/invoice_title', invoice: @invoice %>

<div class="pf-l-grid pf-m-gutter">
Expand Down
4 changes: 2 additions & 2 deletions app/views/finance/provider/shared/_invoice_header.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
<%#
HACK: The parent component is already a grid, but this whole template needs to be wrapped around
id "invoice header" because it replaced by app/views/finance/provider/shared/_update_invoice.js.erb
-->
%>
<div class="pf-l-grid pf-m-gutter" id="invoice_header">
<div class="pf-l-grid__item pf-m-12-col">
<div class="pf-c-card">
Expand Down
4 changes: 4 additions & 0 deletions app/views/provider/admin/account/invoices/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<% content_for :javascripts do %>
<%= javascript_packs_with_chunks_tag 'invoices_show' %>
<% end %>
<%= render '/finance/provider/shared/invoice_title', invoice: @invoice %>

<div class="pf-l-grid pf-m-gutter">
Expand Down

0 comments on commit 4d9e14e

Please sign in to comment.