mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Cancel invoices through admin
This commit is contained in:
parent
c7e02373fa
commit
1f2f483e34
3 changed files with 18 additions and 2 deletions
|
@ -4,8 +4,12 @@
|
|||
= @invoice
|
||||
.col-sm-6
|
||||
%h1.text-right.text-center-xs
|
||||
= link_to(t('back'), :back, class: 'btn btn-default')
|
||||
- if !@invoice.cancelled? && !@invoice.binded?
|
||||
= link_to(t(:cancel), cancel_admin_invoice_path(@invoice), method: :patch, class: 'btn btn-default')
|
||||
= link_to(t('back'), admin_invoices_path, class: 'btn btn-default')
|
||||
%hr
|
||||
= render 'shared/full_errors', object: @invoice
|
||||
|
||||
.row
|
||||
.col-md-6= render 'registrar/invoices/partials/details'
|
||||
.row
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue