%# 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" %>
<% if @profile.nil? %>
<%= t("recruitment.user_not_found") %>
<% elsif !@profile.profile.recommendation_tokens.include?(params[:token]) %>
<%= t("recruitment.referral_not_authorized") %>
<% elsif @is_written %>
<%= t("recruitment.referral_already_recommended") %>
<% else %>
Please write a recommendation for <%= @profile.name %>.
<%= form_for @recommendation, url: {"action" => "create_recommendation"}, :html => {:class => "form-horizontal main-forms"} do |f| %>
<%= f.hidden_field :employee_profile_id, :value => @profile.profile.id.to_s %>
<%= f.hidden_field :employee_recommendation_token, :value => params[:token] %>
<%= f.submit t("submit"), :class =>"btn btn-primary" %>
<% end %>
<% end %>