Add jump buttons for customer and project/task in time_entry view

This commit is contained in:
Paul van Tilburg 2014-10-25 18:30:50 +02:00
parent 88660d9e56
commit 4bb47f7504
1 changed files with 4 additions and 0 deletions

View File

@ -1705,12 +1705,16 @@ module StopTime::Views
label.control_label "Customer", :for => "customer"
div.controls do
_form_select("customer", @customer_list)
a.btn "» Go to customer", :href => R(CustomersN, @time_entry.customer.id)
end
end
div.control_group do
label.control_label "Task", :for => "task"
div.controls do
_form_select_nested("task", @task_list)
a.btn "» Go to project/task", :href => R(CustomersNTasksN,
@time_entry.customer.id,
@time_entry.task.id)
end
end
if @time_entry.present? and @time_entry.task.billed?