% @page_title = "#{l :daily_work_sheet} on #{@date}" + (" for #{user.login}" if user?) %>
<%=link_to l(:weekly_work_sheet), :action => :weekly_work_sheet_by_work_account%> | |||||||
---|---|---|---|---|---|---|---|
<%=l :account %> | <%=l :customer %> | <%=l :description %> | <%=l :started_at %> | <%=l :completed_at %> | <%=l :done %> | <%=l :invoice %> | |
<%=text_field_with_auto_complete :work, :work_account_name, {:value => '', :size => 16, :class => :task_description}, {:delay => "0.01"} %> | <%=text_field_with_auto_complete :work, :customer_name, {:value => '', :size => 16, :class => :task_description} %> | <%=text_field_with_auto_complete :work, :description, {:class => :task_description} %> | <%=text_field :work, :started_at_time, :value => last_work && last_work.completed_at && last_work.completed_at.strftime('%H:%M'), :class => 'task_time' %> | <%=text_field :work, :completed_at_time, :class => 'task_time', :value => @work && @work.completed_at.strftime('%H:%M'), :onchange => "update_hours(this.form);" %> | <%=text_field :work, :hours_time, :value => '', :class => 'task_hours' %> | <%=check_box :work, :invoice %> | |
<%=l :totals %> | <%='%d:%02d' % [day_total.to_i, 60 * (day_total % 1)] %> |