Add ability to download invoice in admin #2566

This commit is contained in:
Martin Lensment 2015-07-14 13:28:48 +03:00
parent bfe9086ec0
commit bfd3e07981
3 changed files with 14 additions and 0 deletions

View file

@ -7,6 +7,7 @@
- if !@invoice.cancelled? && !@invoice.binded?
= link_to(t(:cancel), cancel_admin_invoice_path(@invoice), method: :patch, class: 'btn btn-warning')
= link_to(t(:back), admin_invoices_path, class: 'btn btn-default')
= link_to(t(:download), admin_invoice_download_pdf_path(@invoice), class: 'btn btn-default')
%hr
= render 'shared/full_errors', object: @invoice