Browse Source

WIP, adding time entry index page

denney-fix-saving-dates
Jason Denney 11 years ago
parent
commit
3d71add637
  1. 9
      app/views/time_entries/index.haml
  2. 3
      config/routes.rb

9
app/views/time_entries/index.haml

@ -0,0 +1,9 @@
%a{ class: "btn btn-default btn-lg", href: root_path}
%span{ class:"icon-home"}
%h2 Your Timesheet
%p Total Hours Worked: #{@hours_worked}
%p Total Credits Available: #{@credits_available}
%a{class: "btn btn-lg btn-block btn-primary", href: new_time_entry_path } Add Time Entry

3
config/routes.rb

@ -11,7 +11,8 @@ Velocipede::Application.routes.draw do
get 'task_lists/:id/edit' => "task_lists#edit", as: "edit_task_list"
get 'time_entries/new' => "time_entries#new", as: "new_time_entry"
get 'time_entries' => "time_entries#index", as: "time_entries"
get 'time_entries/new' => "time_entries#new", as: "new_time_entry"
###########################
# API Routes

Loading…
Cancel
Save