Use the newly introduced _form_input_checkbox partial form view

This commit is contained in:
Paul van Tilburg 2011-12-10 16:50:01 +01:00
parent 07cb9dd6fe
commit 9ab76555f6
1 changed files with 2 additions and 7 deletions

View File

@ -1285,13 +1285,8 @@ module StopTime::Views
td { entry.comment }
td { "%.2fh" % entry.hours_total }
td do
if entry.bill
input :type => "checkbox", :name => "bill_#{entry.id}",
:checked => true, :disabled => true
else
input :type => "checkbox", :name => "bill_#{entry.id}",
:disabled => true
end
_form_input_checkbox("bill_#{entry.id}", entry.bill,
:disabled => true)
end
td do
form :action => R(TimelineN, entry.id), :method => :post do