I have added the performance model, controller, route and seed data, now I am working on the actual visual aspects of the page
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
class PerformanceController < ApplicationController
|
||||
|
||||
def index
|
||||
@user = current_user
|
||||
end
|
||||
|
||||
end
|
||||
@@ -0,0 +1,2 @@
|
||||
module PerformanceHelper
|
||||
end
|
||||
@@ -0,0 +1,4 @@
|
||||
class Performance < ActiveRecord::Base
|
||||
attr_accessible :comments, :date_submitted, :reviewer, :score
|
||||
belongs_to :user
|
||||
end
|
||||
@@ -13,6 +13,7 @@ class User < ActiveRecord::Base
|
||||
has_one :retirement, :foreign_key => :user_id, :primary_key => :user_id
|
||||
has_one :paid_time_off, :foreign_key => :user_id, :primary_key => :user_id
|
||||
has_one :work_info, :foreign_key => :user_id, :primary_key => :user_id
|
||||
has_one :performance, :foreign_key => :user_id, :primary_key => :user_id
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -51,12 +51,12 @@
|
||||
<% end %>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<%= link_to user_performance_index_path(:user_id => current_user.user_id) do %>
|
||||
<div class="icon">
|
||||
<span class="fs1" aria-hidden="true" data-icon=""></span>
|
||||
</div>
|
||||
Performance
|
||||
</a>
|
||||
<% end %>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -49,6 +49,7 @@ function maskSSN(){
|
||||
|
||||
}
|
||||
|
||||
|
||||
$(document).ready(function () {
|
||||
maskSSN()
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user