<%-# Fedena #Copyright 2010 Foradian Technologies Private Limited # #This product includes software developed at #Project Fedena - http://www.projectfedena.org/ # #Licensed under the Apache License, Version 2.0 (the "License"); #you may not use this file except in compliance with the License. #You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #Unless required by applicable law or agreed to in writing, #software distributed under the License is distributed on an #"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY #KIND, either express or implied. See the License for the #specific language governing permissions and limitations #under the License. -%>
<%= link_to_remote "#{t('add_grades')}", :url => { :action => 'new', :id => @batch }%>
<% if @batch.present? @credit = @batch.gpa_enabled? || @batch.cce_enabled? else @credit = Configuration.cce_enabled? || Configuration.get_config_value('CWA')=='1' || Configuration.get_config_value('GPA')=='1' end %> <% unless @grading_levels.empty? %> <% if @credit %> <% end %> <% @grading_levels.each do |grade| %> <% if @credit %> <% end %> <% end %>
<%= t('name') %> <%= t('min_score') %>Credit PointsDescription
<%= grade.name %> <%= grade.min_score %><%= grade.credit_points %><%= grade.description.present? ? grade.description : "-" %> <%= link_to_remote(t('edit_text'), :url => edit_grading_level_path(grade), :method => 'get' ) %> | <%= link_to_remote(t('delete_text'), :url => grading_level_path(grade), :method => 'delete', :confirm => t('delete_confirm_msg'), :update => "grading-level-#{grade.id}") %>
<% else %>

<%= t('set_in_common') %>

<% end %>