<%-# 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/admission/admission_page_logo.jpg") %>

<%= t('admission') %>

<%= t('student_detail_step1') %>

<%= link_to_function image_tag("/images/buttons/back.png",:border => 0), "history.back()" %>
<% if @config.config_value == '0' %> <% if @last_admitted_student.nil? %>

<%= t('no_admission_notice') %>

<% else %>

<%= t('admission_no_of_last_stud') %> <%= @last_admitted_student.admission_no %>

<% end %> <% end %> <% unless flash[:notice].nil? %>

<%= flash[:notice] %>

<% end %> <% form_for(@student, :url => {:action=> 'admission1'}, :html=> {:multipart=>true}) do |s| %> <%= error_messages_for 'student', :header_message => nil %>
<%= t('legend1') %> * <%= t('legend2') %>
<% unless @config.config_value == '0' or @last_admitted_student.nil? %> <%= s.text_field :admission_no , :value=> @last_admitted_student.admission_no.next%> <% else %> <%= s.text_field :admission_no %> <% end %>
<%= calendar_date_select_tag 'student[admission_date]', I18n.l(Date.today,:format=>:default), :year_range => 15.years.ago..5.years.from_now, :readonly=>true, :popup=>"force" %>
<%= t('personal_details') %>
<%= s.text_field :first_name %>

<%= s.text_field :middle_name %>

<%= s.text_field :last_name %>

<%= select :student, :batch_id, Batch.active.map {|b| [b.full_name, b.id]} %>

<%= calendar_date_select_tag 'student[date_of_birth]', I18n.l(Date.today-5.years,:format=>:default) , :year_range => 40.years.ago..0.years.ago,:popup=>"force" %>

<%= s.radio_button "gender", "m", :checked => "checked" %> <%= s.radio_button "gender", "f" %>

<%= select :student, :blood_group, ["A+", "A-", "B+", "B-", "O+", "O-", "AB+", "AB-"],{:prompt=> "#{t('unknown')}"} %>

<%= s.text_field :birth_place %>

<%= select :student, :nationality_id, Country.all.map {|c| [c.name, c.id]}, :selected=> @student.nationality_id || @selected_value.to_i %>

<%= s.text_field :language %>

<%= s.select :student_category_id, @categories.map {|c| [c.name, c.id]}, { :prompt => "#{t('select_a_category')}" } %>

<%= s.text_field :religion %>
<%= t('contact_details') %>
<%= s.text_field :address_line1 %>

<%= s.text_field :address_line2 %>

<%= s.text_field :city %>

<%= s.text_field :state %>

<%= s.text_field :pin_code %>

<%= select :student, :country_id, Country.all.map {|c| [c.name, c.id]}, :selected=> @student.country_id || @selected_value.to_i %>

<%= s.text_field :phone1 %>

<%= s.text_field :phone2 %>

<%= s.text_field :email %>
<% if @application_sms_enabled.is_enabled == true %>
<%= s.check_box :is_sms_enabled %>
<% end %>
<%= t('upload_photo') %>
<%= s.file_field :photo, :size=>12 %>
<%= submit_tag "", :value => "► #{t('save_and_proceed')}", :class => "submit_button" %> <% end %>