<%-# 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. -%>
<%= image_tag("/images/show_timetable.png") %>

<%= t('timetable_text') %>

<%= t('set_class_timings') %>

<%= link_to_function image_tag("/images/buttons/back.png", :border => 0), "history.back()" %>
<% unless flash[:notice].nil? %>

<%= flash[:notice] %>

<% end %>
<%= select :batch, :id, @batches.map {|b| [b.full_name, b.id] }, {:prompt => "#{t('common')}"}, {:onchange => "#{remote_function( :url => { :action => 'show' }, :with => "'batch_id='+value", :before => "Element.show('loader')", :success => "Element.hide('loader')" )}"} %> <%= image_tag("loader.gif", :align => "absmiddle", :border => 0, :id => "loader", :style =>"display: none;" ) %>
<%= render :partial => "show_batch_timing" %>
<%#*
%> <%# form_for :class_timing do |f| %> <%#*
%> <%#*%> <%#*
<%= f.text_field :name
%> <%#*
%> <%#*
%> <%#= f.check_box :break, :checked => false % Check if this is a break <%#*
%> <%#*
%> <%#*%> <%#= time_select :class_timing, :start_time, {:minute_step => 5} %> <%#*
%> <%#*
%> <%#*%> <%#= time_select :class_timing, :end_time, {:minute_step => 5} %> <%#*
%> <%#*
%> <%#= submit_tag "", :value => "► Create" %> <%#*
%> <%# end %> <%#*
%> <%#*
%> <%#*
%> <%#*
%> <%#*
Name
%> <%#*
Start Time
%> <%#*
End Time
%> <%#*
%> <%#*
%> <%# @information.each do |x| %> <%#*
%> <%#*
<%= x.name
%> <%#*
<%= x.start_time.strftime("%I:%M %p") unless x.start_time.nil?  
%> <%#*
<%= x.end_time.strftime("%I:%M %p") unless x.end_time.nil? %  
%> <%#*
%> <%#= link_to "Edit", :controller => "class_timing", :action=>"edit", :id => x.id %>   <%#= link_to "Delete", :controller => "class_timing", :action => "delete", :id => x.id %>   <%#*
%> <%#*
%> <%# end %> <%#*
%>