Add a "Create a new invoice" button per customer

This is done similarly as in the customer_form view.
This commit is contained in:
Paul van Tilburg 2014-10-25 18:03:50 +02:00
parent da8db07e94
commit a50c4e330f
1 changed files with 7 additions and 1 deletions

View File

@ -2022,7 +2022,13 @@ module StopTime::Views
div.span7 do
@invoices.keys.sort.each do |customer|
next if @invoices[customer].empty?
h3 { customer.name }
h2 do
text! customer.name
div.btn_group.pull_right do
a.btn.btn_small "» Create a new invoice",
:href => R(CustomersNInvoicesNew, customer.id)
end
end
_invoice_list(@invoices[customer])
end
end