From e8d06aa28c9cdb91a4da50f0f8d9b79d46d77790 Mon Sep 17 00:00:00 2001 From: mjavurek <57668028+mjavurek@users.noreply.github.com> Date: Thu, 2 Jan 2025 11:16:23 +0100 Subject: [PATCH] Update show.html.haml: add financial link button --- app/views/finance/invoices/show.html.haml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/finance/invoices/show.html.haml b/app/views/finance/invoices/show.html.haml index 3cd96b5f2..ff16dcaa8 100644 --- a/app/views/finance/invoices/show.html.haml +++ b/app/views/finance/invoices/show.html.haml @@ -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