-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3948 from 3scale/THREESCALE-9896_invoices-empty-s…
…tate 🦋 THREESCALE-9896: Account Settings > Billing > 3scale Invoices (Implement EmptyState)
- Loading branch information
Showing
7 changed files
with
58 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
= content_for :page_header_title, 'Invoices' | ||
|
||
- content_for :javascripts do | ||
/ HACK: temporary reuse css of existing pack "table_toolbar". Once toolbar is implemented, | ||
/ import the whole pack with "javascript_packs_with_chunks_tag" | ||
= stylesheet_packs_chunks_tag 'table_toolbar' | ||
|
||
- if empty_invoices? | ||
= render partial: 'shared/empty_state', locals: { title: t('.empty_state.title'), | ||
body: t('.empty_state.body') } | ||
- else | ||
table.pf-c-table.pf-m-grid-lg role="grid" aria-label="Invoices table" | ||
thead | ||
tr role="row" | ||
th role="columnheader" scope="col" ID | ||
th role="columnheader" scope="col" Month | ||
th role="columnheader" scope="col" State | ||
th role="columnheader" scope="col" Amount | ||
th role="columnheader" scope="col" Download | ||
tbody role="rowgroup" | ||
- @invoices.each do |invoice| | ||
= content_tag_for :tr, invoice, role: 'row' do | ||
td role="cell" data-label="ID" | ||
= link_to invoice.friendly_id, provider_admin_account_invoice_path(invoice), title: "Show #{invoice.friendly_id}" | ||
td role="cell" data-label="Month" | ||
= invoice.name | ||
- if invoice.current? | ||
| (current) | ||
td role="cell" data-label="State" | ||
= h invoice.state | ||
td role="cell" data-label="Amount" | ||
= price_tag(invoice.cost) | ||
td role="cell" data-label="Download" | ||
- if invoice.pdf.file? | ||
= link_to "PDF", invoice.pdf.expiring_url |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
= content_for :javascripts do | ||
= javascript_packs_with_chunks_tag 'invoices_show' | ||
|
||
= render '/finance/provider/shared/invoice_title', invoice: @invoice | ||
|
||
.pf-l-grid.pf-m-gutter | ||
= render '/finance/provider/shared/invoice_header', editable: false | ||
= render '/finance/provider/shared/line_items', editable: false | ||
= render '/finance/provider/shared/payment_transactions' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters