<%= 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 %>
<%= render :partial => "dashboard_header" %>

<%= t("recruitment.employee_portfolio") %>


<%= form_for @profile, url: {:action => "updateprofile"}, html: {:class => "form-horizontal main-forms", :id => "portfolioForm"} do |f| %>
<% @site_in_use_locales.each_with_index do |locale, i| %>
"> <%= f.fields_for :employee_profile do |fe| %> <%= fe.fields_for :desired_job_title_translations do |fe| %>
<%= fe.label locale, t("recruitment.job_title"), :class => "col-sm-2 control-label" %>
<%= fe.text_field locale, :class => "form-control", :value => @profile.employee_profile.desired_job_title_translations[locale] %>
<% end %> <%= fe.fields_for :current_company_translations do |fe| %>
<%= fe.label locale, t("recruitment.current_company"), :class => "col-sm-2 control-label" %>
<%= fe.text_field locale, :class => "form-control", :value => @profile.employee_profile.current_company_translations[locale] %>
<% end %> <%= fe.fields_for :introduction_translations do |fe| %>
<%= fe.label locale, t("recruitment.introduction"), :class => "col-sm-2 control-label" %>
<%= fe.text_area locale, :rows => 5, :class => "form-control", :value => @profile.employee_profile.introduction_translations[locale], :placeholder => t("recruitment.intro_example") %>
<%= t("recruitment.first_thing") %>
<% end %> <%= fe.fields_for :resume_content_translations do |fe| %>
<%= fe.label locale, t("recruitment.resume_content"), :class => "col-sm-2 control-label" %>
<%= fe.cktext_area locale, :class => "ckeditor form-control", :value => @profile.employee_profile.resume_content_translations[locale] %>
<% end %> <% end %>
<% end %>
<%= f.fields_for :employee_profile do |fe| %>
<%= fe.label :desired_place, t("recruitment.current_location"), :class => "col-sm-2 control-label" %>
<%= fe.text_field :desired_place, :class => "form-control" %>
<%= f.label :skills, t("recruitment.skills"), :class => "col-sm-2 control-label" %>
<%= fe.text_field :skills, :class => "form-control", :placeholder => t("recruitment.seperate_with_word"), :value => (@profile.employee_profile.skills.join(", ") rescue "") %>
<%= fe.label :languages, t("recruitment.language_title"), :class => "col-sm-2 control-label" %>
<%= fe.text_field :languages, :class => "form-control", :placeholder => t("recruitment.seperate_with_eng") %>
<% if !@profile.employee_profile.resume.nil? && !@profile.employee_profile.resume.url.nil? %>
<% end %>
<%= fe.label :resume, t("recruitment.upload_cv"), :class => "col-sm-2 control-label" %>

<%= fe.file_field :resume %>

<%= fe.label :exprience_years, t("recruitment.total_exp"), :class => "col-sm-2 control-label" %>
<%= fe.number_field :experience_years, :class => "form-control", :max => 50, :min => 0 %> <%= t("recruitment.years") %>
<%= fe.number_field :experience_months, :class => "form-control", :max => 11, :min => 0 %> <%= t("recruitment.months") %>
<% end %>
<%= f.submit t("save"), :class =>"btn btn-primary" %> <%= f.submit t("recruitment.next"), :class =>"btn btn-primary" %>
<% end %>