Add UI to show and create financial transactions for the foodcoop
This commit is contained in:
parent
1a49bee42d
commit
602f663245
12 changed files with 66 additions and 29 deletions
|
|
@ -34,7 +34,7 @@
|
|||
- else
|
||||
= format_time(t.created_on)
|
||||
- if with_ordergroup
|
||||
%td= h link_to t.ordergroup_name, finance_ordergroup_transactions_path(t.ordergroup)
|
||||
%td= h link_to t.ordergroup_name, finance_group_transactions_path(t.ordergroup)
|
||||
%td= h show_user(t.user)
|
||||
- if FinancialTransactionType.has_multiple_types
|
||||
%td= h t.financial_transaction_type.name
|
||||
|
|
@ -50,7 +50,7 @@
|
|||
- if with_hidden
|
||||
%td.actions{style: 'width:1em'}
|
||||
- unless t.hidden?
|
||||
= link_to finance_ordergroup_transaction_path(t.ordergroup, t), method: :delete,
|
||||
= link_to finance_transaction_path(t), method: :delete,
|
||||
data: {confirm: t('.confirm_revert', name: t.note)}, title: t('.revert_title'),
|
||||
class: 'btn btn-danger btn-mini' do
|
||||
= glyph :remove
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue