Skip to content

Commit

Permalink
remove field from teacher recommendation
Browse files Browse the repository at this point in the history
  • Loading branch information
jmabry111 committed Jan 19, 2016
1 parent ed24930 commit a4000b3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/models/teacher_recommendation.rb
Expand Up @@ -13,16 +13,14 @@ class TeacherRecommendation < ActiveRecord::Base
validates :recommendation, presence:true
validates :self_discipline, presence:true
validates :study_skills, presence:true
validates :teamwork, presence:true
# validates :teamwork, presence:true
validates :time_management, presence:true
validates :work_ethic, presence:true


def total_score
if self.aptitude != nil
total_score = aptitude + dedication + desire + inquiry_skills + interaction + persistence +
problem_solving + recommendation + self_discipline + study_skills + teamwork +
time_management + work_ethic
total_score = aptitude + dedication + desire + inquiry_skills + interaction + persistence + problem_solving + recommendation + self_discipline + study_skills + time_management + work_ethic
end
end

Expand Down
2 changes: 2 additions & 0 deletions app/views/coordinator/teacher_recommendations/new.html.erb
Expand Up @@ -22,7 +22,9 @@
<%= f.input :inquiry_skills, :collection => ["1","2","3","4","5"], :as => :radio_buttons, :item_wrapper_class => :inline %>
<%= f.input :study_skills, :collection => ["1","2","3","4","5"], :as => :radio_buttons, :item_wrapper_class => :inline %>
<%= f.input :time_management, :collection => ["1","2","3","4","5"], :as => :radio_buttons, :item_wrapper_class => :inline %>
<!-- remove teamwork
<%= f.input :teamwork, :collection => ["1","2","3","4","5"], :as => :radio_buttons, :item_wrapper_class => :inline %>
-->
<%= f.input :dedication, :collection => ["1","2","3","4","5"], :as => :radio_buttons, :item_wrapper_class => :inline %>
<%= f.input :work_ethic, :collection => ["1","2","3","4","5"], :as => :radio_buttons, :item_wrapper_class => :inline %>
<hr />
Expand Down
2 changes: 2 additions & 0 deletions app/views/coordinator/teacher_recommendations/show.html.erb
Expand Up @@ -110,6 +110,7 @@
<%= @teacher_recommendation.time_management %>
</td>
</tr>
<!-- remove teamwork
<tr>
<td>
10. Demonstrates effective teamwork skills:
Expand All @@ -118,6 +119,7 @@
<%= @teacher_recommendation.teamwork %>
</td>
</tr>
-->
<tr>
<td>
11. Shows strong dedication:
Expand Down
2 changes: 2 additions & 0 deletions app/views/teacher_recommendations/edit.html.erb
Expand Up @@ -83,12 +83,14 @@
:input_html => {:value => @teacher_recommendation.time_management},
:label => "Possesses excellent time management skills"
%>
<!-- remove teamwork
<%=
f.input :teamwork, :collection => ["1","2","3","4","5"], :as => :radio_buttons,
:item_wrapper_class => :inline,
:input_html => {:value => @teacher_recommendation.teamwork},
:label => "Demonstrates effective teamwork skills"
%>
-->
<%=
f.input :dedication, :collection => ["1","2","3","4","5"], :as => :radio_buttons,
:item_wrapper_class => :inline,
Expand Down
2 changes: 2 additions & 0 deletions app/views/teacher_recommendations/new.html.erb
Expand Up @@ -59,11 +59,13 @@
:item_wrapper_class => :inline,
:label => "Possesses excellent time management skills"
%>
<!-- remove teamwork
<%=
f.input :teamwork, :collection => ["1","2","3","4","5"], :as => :radio_buttons,
:item_wrapper_class => :inline,
:label => "Demonstrates effective teamwork skills"
%>
-->
<%=
f.input :dedication, :collection => ["1","2","3","4","5"], :as => :radio_buttons,
:item_wrapper_class => :inline,
Expand Down

0 comments on commit a4000b3

Please sign in to comment.