Skip to content

Commit

Permalink
Update show.html.haml: add financial link button
Browse files Browse the repository at this point in the history
  • Loading branch information
mjavurek authored Jan 2, 2025
1 parent b2deb0e commit e8d06aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/finance/invoices/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,11 @@
%dt= heading_helper(Invoice, :note) + ':'
%dd= simple_format(@invoice.note)

%dt= heading_helper(Invoice, :financial_link) + ':'
- if @invoice.financial_link
%dt= heading_helper(Invoice, :financial_link) + ':'
%dd= link_to t('ui.show'), finance_link_path(@invoice.financial_link)
- else
%dd= link_to t('finance.bank_transactions.transactions.add_financial_link'), finance_links_path(invoice: @invoice.id), method: :post, class: 'btn btn-success btn-mini'

.clearfix
.form-actions
Expand Down

0 comments on commit e8d06aa

Please sign in to comment.