diff --git a/app/views/finance/invoices/_form.html.haml b/app/views/finance/invoices/_form.html.haml index 7054a756..24a17856 100644 --- a/app/views/finance/invoices/_form.html.haml +++ b/app/views/finance/invoices/_form.html.haml @@ -3,9 +3,9 @@ = f.hidden_field :order_id - if @invoice.delivery - %p= t '.linked', what_link: link_to(t('.delivery'), [@invoice.supplier,@invoice.delivery]) + %p= t('.linked', what_link: link_to(t('.delivery'), [@invoice.supplier,@invoice.delivery])).html_safe - if @invoice.order - %p= t '.linked', what_link: link_to(t('.order'), @invoice.order) + %p= t('.linked', what_link: link_to(t('.order'), @invoice.order)).html_safe = f.association :supplier, hint: false = f.input :number diff --git a/app/views/finance/invoices/show.html.haml b/app/views/finance/invoices/show.html.haml index 16313994..c80aec9a 100644 --- a/app/views/finance/invoices/show.html.haml +++ b/app/views/finance/invoices/show.html.haml @@ -6,7 +6,7 @@ - if @invoice.delivery %p %b= t('simple_form.labels.invoice.delivery') + ':' - = t '.linked', what_link: link_to(t('.delivery'), [@invoice.supplier,@invoice.delivery]) + = t('.linked', what_link: link_to(t('.delivery'), [@invoice.supplier,@invoice.delivery])).html_safe %p %b= t('simple_form.labels.invoice.number') + ':' = @invoice.number