recruitment/app/views/recruitments/_employer_form.html.erb

187 lines
7.0 KiB
Plaintext
Raw Normal View History

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 %>
2018-01-01 13:52:15 +00:00
<style type="text/css">
.header-title{
text-align: center;
}
hr{
border-top: 1px solid #5c5c5c;
}
</style>
2018-01-07 18:22:57 +00:00
<h3 class="header-title"><%= t("recruitment.employer_personal_profile") %></h3>
2018-01-01 13:52:15 +00:00
<hr>
2017-12-21 19:41:50 +00:00
<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">
2018-01-07 18:22:57 +00:00
<%= fe.label locale, t("recruitment.company_name"), :class => "col-sm-2 control-label" %>
2017-12-21 19:41:50 +00:00
<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">
2018-01-07 18:22:57 +00:00
<%= fe.label locale, t("recruitment.contact_person"), :class => "col-sm-2 control-label" %>
2017-12-21 19:41:50 +00:00
<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">
2018-01-07 18:22:57 +00:00
<%= fe.label locale, t("recruitment.office_address"), :class => "col-sm-2 control-label" %>
2017-12-21 19:41:50 +00:00
<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">
2018-01-07 18:22:57 +00:00
<%= fe.label locale, t("recruitment.company_profile"), :class => "col-sm-2 control-label" %>
2017-12-21 19:41:50 +00:00
<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| %>
<!-- Industry type -->
<div class="form-group">
2018-01-07 18:22:57 +00:00
<%= fe.label :industry, t("recruitment.industry_title"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= fe.select :industry, RecruitmentIndustry.all.asc(:industry_title).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">
2018-01-07 18:22:57 +00:00
<%= fe.label :country, t("recruitment.country"), :class => "col-sm-2 control-label" %>
2017-12-21 19:41:50 +00:00
<div class="col-sm-5">
<%= 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">
2018-01-07 18:22:57 +00:00
<%= fe.label :state, t("recruitment.state"), :class => "col-sm-2 control-label" %>
2017-12-21 19:41:50 +00:00
<div class="col-sm-5">
<%= fe.text_field :state, :class => "form-control" %>
</div>
</div>
<!-- City -->
<div class="form-group">
2018-01-07 18:22:57 +00:00
<%= fe.label :city, t("recruitment.city"), :class => "col-sm-2 control-label" %>
2017-12-21 19:41:50 +00:00
<div class="col-sm-5">
<%= fe.text_field :city, :class => "form-control" %>
</div>
</div>
<!-- Zipcode -->
<div class="form-group">
2018-01-07 18:22:57 +00:00
<%= fe.label :zipcode, t("recruitment.zip_code"), :class => "col-sm-2 control-label" %>
2017-12-21 19:41:50 +00:00
<div class="col-sm-5">
<%= fe.text_field :zipcode, :class => "form-control" %>
</div>
</div>
<!-- country code -->
<div class="form-group">
2018-01-07 18:22:57 +00:00
<%= fe.label :country_code, t("recruitment.country_code"), :class => "col-sm-2 control-label" %>
2017-12-21 19:41:50 +00:00
<div class="col-sm-1">
<%= fe.text_field :country_code, :class => "form-control" %>
</div>
</div>
<!-- phone number -->
<div class="form-group">
2018-01-07 18:22:57 +00:00
<%= fe.label :phone_number, t("recruitment.phone_number"), :class => "col-sm-2 control-label" %>
2017-12-21 19:41:50 +00:00
<div class="col-sm-2">
<%= fe.text_field :phone_number, :class => "form-control" %>
</div>
</div>
<!-- country code -->
<div class="form-group">
2018-01-07 18:22:57 +00:00
<%= fe.label :mobile_number, t("recruitment.mobile_number"), :class => "col-sm-2 control-label" %>
2017-12-21 19:41:50 +00:00
<div class="col-sm-2">
<%= fe.text_field :mobile_number, :class => "form-control" %>
</div>
</div>
<!-- Website -->
<div class="form-group">
2018-01-07 18:22:57 +00:00
<%= fe.label :website, t("recruitment.website"), :class => "col-sm-2 control-label" %>
2017-12-21 19:41:50 +00:00
<div class="col-sm-5">
<%= fe.text_field :website, :class => "form-control" %>
</div>
</div>
<div class="form-group">
2018-01-07 18:22:57 +00:00
<%= fe.label :avatar, t("recruitment.avatar"), :class => "col-sm-2 control-label" %>
2017-12-21 19:41:50 +00:00
<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" %>
2018-01-07 18:22:57 +00:00
<%= f.submit t("submit"), :class =>"btn btn-primary" %>
2017-12-21 19:41:50 +00:00
</div>
</div>