Move add customer button to the header

This commit is contained in:
Paul van Tilburg 2013-06-26 20:23:03 +02:00
parent 5aefde7d44
commit 06c25d66c9
1 changed files with 6 additions and 2 deletions

View File

@ -1691,7 +1691,12 @@ module StopTime::Views
# The main overview of the list of customers. # The main overview of the list of customers.
def customers def customers
header.page_header do header.page_header do
h1 "Customers" h1 do
text! "Customers"
div.btn_group.pull_right do
a.btn.btn_small "» Add a new customer", :href=> R(CustomersNew)
end
end
end end
if @customers.empty? if @customers.empty?
p do p do
@ -1755,7 +1760,6 @@ module StopTime::Views
end end
end end
end end
a.btn "» Add a new customer", :href=> R(CustomersNew)
end end
end end