%-# 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. -%>
<% unless @class_designations.empty? %>
- <%= t('class_designations_text') %>
<% @class_designations.each do |designation| %>
-
<%= designation.name %>
<% if Configuration.find_by_config_key("GPA").config_value=="1" %>
<%= designation.cgpa %>
<% end %>
<% if Configuration.find_by_config_key("CWA").config_value=="1" %>
<%= designation.marks %>
<% end %>
<%= link_to_remote "#{t('edit_text')}", :url=>{:controller=>"class_designations",:action=>"edit_class_designation", :id=>designation.id} if permitted_to? :edit_class_designation, :class_designations %>
<%= link_to_remote "Delete", :url=>{:controller=>"class_designations",:action=>"delete_class_designation", :id=>designation.id}, :confirm=>"Are you sure?" if permitted_to? :delete_class_designation, :class_designations %>
<% end %>
<% else %>
<%= t('no_class_designations_found') %>.
<% end %>