2017-12-21 19:41:50 +00:00
|
|
|
<%# 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-fileupload" %>
|
|
|
|
<%= javascript_include_tag "lib/file-type" %>
|
|
|
|
<%# end %>
|
|
|
|
<ul class="nav nav-pills language-nav">
|
|
|
|
<% @site_in_use_locales.each_with_index do |locale, i| %>
|
|
|
|
<li class="<%= 'active' if i == 0 %>">
|
|
|
|
<a data-toggle="tab" href=".<%= locale %>"><%= t(locale) %></a>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
<!-- Language -->
|
|
|
|
<div class="tab-content language-area">
|
|
|
|
<% @site_in_use_locales.each_with_index do |locale, i| %>
|
|
|
|
<div class="<%= locale %> tab-pane fade <%= ( i == 0 ) ? "in active" : '' %>">
|
|
|
|
<%= f.fields_for :employer_profile do |fe| %>
|
|
|
|
<!-- company name -->
|
|
|
|
<%= fe.fields_for :company_name_translations do |fe| %>
|
|
|
|
<div class="form-group">
|
|
|
|
<%= fe.label locale, "Company Name", :class => "col-sm-2 control-label" %>
|
|
|
|
<div class="col-sm-5">
|
|
|
|
<%= fe.text_field locale, :class => "form-control", :value => @profile.employer_profile.company_name_translations[locale] %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<!-- contact person -->
|
|
|
|
<%= fe.fields_for :contact_person_translations do |fe| %>
|
|
|
|
<div class="form-group">
|
|
|
|
<%= fe.label locale, "Contact Person", :class => "col-sm-2 control-label" %>
|
|
|
|
<div class="col-sm-5">
|
|
|
|
<%= fe.text_field locale, :class => "form-control", :value => @profile.employer_profile.contact_person_translations[locale] %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<!-- office address -->
|
|
|
|
<%= fe.fields_for :office_address_translations do |fe| %>
|
|
|
|
<div class="form-group">
|
|
|
|
<%= fe.label locale, "Office Address", :class => "col-sm-2 control-label" %>
|
|
|
|
<div class="col-sm-5">
|
|
|
|
<%= fe.text_field locale, :class => "form-control", :value => @profile.employer_profile.office_address_translations[locale] %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<!-- Company Profile -->
|
|
|
|
<%= fe.fields_for :company_profile_translations do |fe| %>
|
|
|
|
<div class="form-group">
|
|
|
|
<%= fe.label locale, "Company Profile", :class => "col-sm-2 control-label" %>
|
|
|
|
<div class="col-sm-5">
|
|
|
|
<%= fe.text_area locale, :class => "form-control", :value => @profile.employer_profile.company_profile_translations[locale] %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<%= f.fields_for :employer_profile do |fe| %>
|
2017-12-26 13:07:35 +00:00
|
|
|
<!-- Industry type -->
|
|
|
|
<div class="form-group">
|
|
|
|
<%= fe.label :industry, "Industry", :class => "col-sm-2 control-label" %>
|
|
|
|
<div class="col-sm-5">
|
|
|
|
<%= fe.select :industry, RecruitmentIndustry.all.collect{|ri| [ri.industry_title, ri.id.to_s]}, {:include_blank => "Select Industry"}, {:class => "form-control"} %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-12-21 19:41:50 +00:00
|
|
|
<!-- Country -->
|
|
|
|
<div class="form-group">
|
|
|
|
<%= fe.label :country, "Country", :class => "col-sm-2 control-label" %>
|
|
|
|
<div class="col-sm-5">
|
2017-12-26 13:07:35 +00:00
|
|
|
<%= fe.select :country, MiscList.countries_for_select, {:include_blank => "Select Country"}, {:class => "form-control"} %>
|
2017-12-21 19:41:50 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- State -->
|
|
|
|
<div class="form-group">
|
|
|
|
<%= fe.label :state, "State", :class => "col-sm-2 control-label" %>
|
|
|
|
<div class="col-sm-5">
|
|
|
|
<%= fe.text_field :state, :class => "form-control" %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- City -->
|
|
|
|
<div class="form-group">
|
|
|
|
<%= fe.label :city, "City", :class => "col-sm-2 control-label" %>
|
|
|
|
<div class="col-sm-5">
|
|
|
|
<%= fe.text_field :city, :class => "form-control" %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Zipcode -->
|
|
|
|
<div class="form-group">
|
|
|
|
<%= fe.label :zipcode, "Zipcode", :class => "col-sm-2 control-label" %>
|
|
|
|
<div class="col-sm-5">
|
|
|
|
<%= fe.text_field :zipcode, :class => "form-control" %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- country code -->
|
|
|
|
<div class="form-group">
|
|
|
|
<%= fe.label :country_code, "Country Code", :class => "col-sm-2 control-label" %>
|
|
|
|
<div class="col-sm-1">
|
|
|
|
<%= fe.text_field :country_code, :class => "form-control" %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- phone number -->
|
|
|
|
<div class="form-group">
|
|
|
|
<%= fe.label :phone_number, "Phone Number", :class => "col-sm-2 control-label" %>
|
|
|
|
<div class="col-sm-2">
|
|
|
|
<%= fe.text_field :phone_number, :class => "form-control" %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- country code -->
|
|
|
|
<div class="form-group">
|
|
|
|
<%= fe.label :mobile_number, "Mobile Number", :class => "col-sm-2 control-label" %>
|
|
|
|
<div class="col-sm-2">
|
|
|
|
<%= fe.text_field :mobile_number, :class => "form-control" %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Website -->
|
|
|
|
<div class="form-group">
|
|
|
|
<%= fe.label :website, "Website", :class => "col-sm-2 control-label" %>
|
|
|
|
<div class="col-sm-5">
|
|
|
|
<%= fe.text_field :website, :class => "form-control" %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<%= fe.label :avatar, "Avatar", :class => "col-sm-2 control-label" %>
|
|
|
|
<div class="controls">
|
|
|
|
<div class="fileupload fileupload-new clearfix <%= 'fileupload-edit' if !@profile.new_record? && @profile.employer_profile.avatar.file %>" data-provides="fileupload">
|
|
|
|
<div class="fileupload-new thumbnail pull-left">
|
|
|
|
<% if !@profile.new_record? && @profile.employer_profile.avatar.file %>
|
|
|
|
<%= image_tag @profile.employer_profile.avatar %>
|
|
|
|
<% else %>
|
|
|
|
<img src="http://www.placehold.it/50x50/EFEFEF/AAAAAA" />
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div class="fileupload-preview fileupload-exists thumbnail pull-left"></div>
|
|
|
|
<span class="btn btn-file">
|
|
|
|
<span class="fileupload-new"><%= t(:select_image) %></span>
|
|
|
|
<span class="fileupload-exists"><%= t(:change) %></span>
|
|
|
|
<%= fe.file_field :avatar %>
|
|
|
|
</span>
|
|
|
|
<a href="#" class="btn fileupload-exists" data-dismiss="fileupload"><%= t(:cancel) %></a>
|
|
|
|
<div class="controls" data-toggle="buttons-checkbox">
|
|
|
|
<label class="checkbox inline btn btn-danger fileupload-remove">
|
|
|
|
<%= fe.check_box :remove_avatar %><%= t(:remove) %>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-offset-2 col-sm-10">
|
|
|
|
<%= 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 => "2" %>
|
|
|
|
<%= f.submit "Submit", :class =>"btn btn-primary" %>
|
|
|
|
</div>
|
|
|
|
</div>
|