mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
Show specific error on invoice generation in admin #2802
This commit is contained in:
parent
0f652aedc1
commit
9f42784d33
6 changed files with 6 additions and 5 deletions
|
@ -1,7 +1,6 @@
|
|||
- content_for :actions do
|
||||
= link_to(t(:add), new_admin_invoice_path, class: 'btn btn-primary')
|
||||
= render 'shared/title', name: t(:invoices)
|
||||
|
||||
.row
|
||||
.col-md-12
|
||||
.table-responsive
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
|
||||
= form_for([:admin, @deposit], url: admin_invoices_path, method: :post, html: { class: 'form-horizontal' }) do |f|
|
||||
= render 'shared/full_errors', object: @deposit
|
||||
|
||||
- if @invoice
|
||||
= render 'shared/full_errors', object: @invoice
|
||||
.row
|
||||
.col-md-8
|
||||
.form-group
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue