<%# content_for :page_specific_css do %> <%= stylesheet_link_tag "lib/main-forms" %> <%= stylesheet_link_tag "lib/fileupload" %> <%= stylesheet_link_tag "lib/main-list" %> <%# end %> <%# content_for :page_specific_javascript do %> <%= javascript_include_tag "lib/bootstrap-datetimepicker" %> <%= javascript_include_tag "lib/datetimepicker/datetimepicker.js" %> <%= javascript_include_tag "lib/bootstrap-fileupload" %> <%= javascript_include_tag "lib/file-type" %> <%# end %>

Employee / Fresher Personal Profile


<%= f.fields_for :employee_profile do |fe| %>
<%= fe.label :dob, "Date of Birth", :class => "col-sm-2 control-label" %>
<%= fe.datetime_picker :dob, :no_label => true, :new_record => @profile.new_record? %>
<%= fe.label :country_code, "Country Code", :class => "col-sm-2 control-label" %>
<%= fe.text_field :country_code, :class => "form-control" %>
<%= fe.label :phone_number, "Phone Number", :class => "col-sm-2 control-label" %>
<%= fe.text_field :phone_number, :class => "form-control" %>
<%= fe.label :website, "Website / Link", :class => "col-sm-2 control-label" %>
<%= fe.text_field :website, :class => "form-control" %>
<%= fe.label :avatar, "Avatar", :class => "col-sm-2 control-label" %>
<% if !@profile.new_record? && @profile.employee_profile.avatar.file %> <%= image_tag @profile.employee_profile.avatar %> <% else %> <% end %>
<%= t(:select_image) %> <%= t(:change) %> <%= fe.file_field :avatar %> <%= t(:cancel) %>
<% end %>
<% @site_in_use_locales.each_with_index do |locale, i| %>
"> <%= f.fields_for :employee_profile do |fe| %> <%= fe.fields_for :address_translations do |fe| %>
<%= fe.label locale, "Address", :class => "col-sm-2 control-label" %>
<%= fe.text_area locale, :class => "form-control", :value => @profile.employee_profile.address_translations[locale] %>
<% end %> <%= fe.fields_for :autobiography_translations do |fe| %>
<%= fe.label locale, "Autobiography", :class => "col-sm-2 control-label" %>
<%= fe.text_area locale, :class => "form-control", :value => @profile.employee_profile.autobiography_translations[locale] %>
<% end %> <% end %>
<% end %>
<%= f.hidden_field :pseudo_member_id, :value => current_pseudo_user.user_name %> <%= f.hidden_field :email, :value => current_pseudo_user.email %> <%= f.hidden_field :first_name, :value => current_pseudo_user.first_name %> <%= f.hidden_field :last_name, :value => current_pseudo_user.last_name %> <%= f.hidden_field :user_type, :value => "1" %> <%= f.submit "Save", :class =>"btn btn-primary" %> <%= f.submit "Next", :class =>"btn btn-primary" %>