%-# 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. -%> <% if @academic_days > 0 %> <% form_for :filter, :url => {:action=> 'filter'} do |f| %> <%= f.hidden_field :batch , :value=> @batch.id %> <%= f.hidden_field :start_date , :value=> @start_date %> <%= f.hidden_field :end_date , :value=> @end_date %> <%= f.hidden_field :report_type, :value=>@mode %> <% unless params[:subject_id].nil? %> <%= f.hidden_field :subject , :value=> params[:subject_id] %> <% end %> <%= submit_tag "#{t('filter')}",:class=>'submit_button' %>
<%= t('name') %> | <%= t('total') %> | <%= t('percentage') %>(%) |
<%= link_to student.full_name, {:controller => "attendance_reports", :action => "student_details", :id => student.id } %> | <%= @leaves[student.id]['total'] %> | <%= @leaves[student.id]['percent'].round(2) unless @leaves[student.id]['percent'].nil? %> |