Sha256: 1c7db25e72a8ff35cd20a676a17de985c865e30d85e329c8836ffb14bb8ae3bb

Contents?: true

Size: 488 Bytes

Versions: 3

Compression:

Stored size: 488 Bytes

Contents

- if @employee.work_days.empty?
  = boot_no_entry_alert

  = simple_form_for :timesheet, :url => start_employee_timesheets_url(@employee) do |f|
    = f.input :duration_from, :as => :date_field
    .form-actions
      = f.button :submit

- else
  - WorkDay.create_or_update_upto(@employee, Date.today.end_of_month)
  .row-fluid
    .span12
      = render 'timesheets/show', :work_days => @employee.work_days.where(:date => current_month_period(:by_period))

= render 'activities/sidebar'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bookyt_projects-1.1.2 app/views/people/_show_timesheet.html.haml
bookyt_projects-1.1.1 app/views/people/_show_timesheet.html.haml
bookyt_projects-1.1.0 app/views/people/_show_timesheet.html.haml