Skip to content

Commit

Permalink
[HOURS] added offset reporting and editing
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdill committed Feb 24, 2011
1 parent e01db28 commit bb4afc2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/views/admin/users/edit.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
.field_wrap
= f.label :email
= f.text_field :email
.field_wrap
= f.label :daily_target_hours, t(:daily_target_hours)
= f.text_field(:daily_target_hours)
.field_wrap
= f.label :password
= f.password_field :password
Expand Down
2 changes: 2 additions & 0 deletions app/views/admin/users/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
%th= t(:name)
%th= t(:email)
%th= t(:current)
%th= t(:target_hours_offset)
%th= "#{t(:locked)}?"
%th= t(:roles)
%th= t(:edit)
Expand All @@ -25,6 +26,7 @@
user_path(user)
%td= user.email
%td= user.unpaid_work_units.sum(:hours)
%td= user.daily_target_hours ? user.target_hours_offset(Date.today).to_s : ''
%td= user.locked_at? ? 'X' : ' '.html_safe
%td
- if user.admin?
Expand Down
2 changes: 1 addition & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,4 @@ en:
edit_user: "Edit User"
full_width: "Full Width"
daily_target_hours: "Daily Target Hours"
target_hours_offset: "Year Target Offset"
target_hours_offset: "Offset"

0 comments on commit bb4afc2

Please sign in to comment.