added the PTO section
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class PaidTimeOffController < ApplicationController
|
||||
|
||||
def index
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,2 @@
|
||||
module PaidTimeOffHelper
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class PaidTimeOff < ActiveRecord::Base
|
||||
attr_accessible :pto_earned, :pto_taken, :sick_days_earned, :sick_days_taken, :user_id
|
||||
belongs_to :user
|
||||
|
||||
end
|
||||
@@ -11,6 +11,7 @@ class User < ActiveRecord::Base
|
||||
attr_accessor :skip_user_id_assign
|
||||
before_save :assign_user_id, :on => :create
|
||||
has_one :retirement, :foreign_key => :user_id, :primary_key => :user_id
|
||||
has_one :paid_time_off, :foreign_key => :user_id, :primary_key => :user_id
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -35,12 +35,12 @@
|
||||
<% end %>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<%= link_to user_paid_time_off_index_path(:user_id => current_user.user_id) do %>
|
||||
<div class="icon">
|
||||
<span class="fs1" aria-hidden="true" data-icon=""></span>
|
||||
</div>
|
||||
PTO
|
||||
</a>
|
||||
<% end %>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
|
||||
Reference in New Issue
Block a user