Show specific error on invoice generation in admin #2802

This commit is contained in:
Martin Lensment 2015-07-31 16:30:38 +03:00
parent 0f652aedc1
commit 9f42784d33
6 changed files with 6 additions and 5 deletions

View file

@ -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

View file

@ -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