<%-# 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 @config.config_value == 'Daily' %> <% form_remote_for @absentee do |f| %>
<%= f.hidden_field :student_id, :value => @student.id %> <%= f.hidden_field :month_date, :value => @month_date %> <%= f.hidden_field :batch_id, :value => @student.batch_id %>
<%= f.text_field :reason %>
<% if @config.config_value == 'Daily' %>
<% end %>
<%= f.submit "► #{t('add')}", :class => 'submit-button', :confirm => "#{t('delete_confirm_msg')}" %> <% end %> <% else %> <% form_remote_for @subject_leave,:url=>{:controller=>"attendances",:action=>'create'} do |f| %>
<%= f.hidden_field :student_id, :value => @student.id %> <%= f.hidden_field :month_date, :value => params[:date] %> <%= f.hidden_field :subject_id, :value => params[:subject_id] %> <%= hidden_field_tag :timetable_entry, params[:timetable_entry] %>
<%= f.text_field :reason %>
<%= f.submit "► #{t('add')}", :class => 'submit-button', :confirm => "#{t('delete_confirm_msg')}" %> <% end %> <% end %>