backend translations added

This commit is contained in:
Harry Bomrah 2018-01-08 02:22:57 +08:00
parent 4489aeda44
commit 27865c840f
15 changed files with 322 additions and 166 deletions

View File

@ -1,21 +1,21 @@
<h3>
Welcome <strong><%= @profile.name %></strong>!
<%= t("recruitment.welcome") %> <strong><%= @profile.name %></strong>!
<div class="pull-right logout"><a href="/pseudo_users/logoutpseudouser">Logout</a></div>
</h3>
<ul class="nav nav-tabs">
<% if @profile.is_employer? %>
<li role="presentation" class="<%= params[:action] == "recruitment_dashboard" ? "active" : "" %>"><a href="<%= mydashboard_path %>">Jobs</a></li>
<li role="presentation" class="<%= params[:action] == "editprofile" ? "active" : "" %>"><a href="<%= editprofile_path %>">Profile</a></li>
<li role="presentation" class="<%= params[:action] == "recruitment_dashboard" ? "active" : "" %>"><a href="<%= mydashboard_path %>"><%= t("recruitment.jobs") %></a></li>
<li role="presentation" class="<%= params[:action] == "editprofile" ? "active" : "" %>"><a href="<%= editprofile_path %>"><%= t("recruitment.profile") %></a></li>
<% elsif @profile.is_employee? %>
<li role="presentation" class="<%= params[:action] == "recruitment_dashboard" ? "active" : "" %>"><a href="<%= mydashboard_path %>">Dashboard</a></li>
<li role="presentation" class="<%= params[:action] == "editprofile" ? "active" : "" %>"><a href="<%= editprofile_path %>">Profile</a></li>
<li role="presentation" class="<%= params[:action] == "employee_academics" ? "active" : "" %>"><a href="<%= employee_academics_path %>">Academics</a></li>
<li role="presentation" class="<%= params[:action] == "employee_portfolio" ? "active" : "" %>"><a href="<%= employee_portfolio_path %>">Portfolio</a></li>
<li role="presentation" class="<%= params[:action] == "employee_experience" ? "active" : "" %>"><a href="<%= employee_experience_path %>">Experience</a></li>
<li role="presentation" class="<%= params[:action] == "recruitment_dashboard" ? "active" : "" %>"><a href="<%= mydashboard_path %>"><%= t("recruitment.dashboard") %></a></li>
<li role="presentation" class="<%= params[:action] == "editprofile" ? "active" : "" %>"><a href="<%= editprofile_path %>"><%= t("recruitment.profile") %></a></li>
<li role="presentation" class="<%= params[:action] == "employee_academics" ? "active" : "" %>"><a href="<%= employee_academics_path %>"><%= t("recruitment.academics") %></a></li>
<li role="presentation" class="<%= params[:action] == "employee_portfolio" ? "active" : "" %>"><a href="<%= employee_portfolio_path %>"><%= t("recruitment.portfolio") %></a></li>
<li role="presentation" class="<%= params[:action] == "employee_experience" ? "active" : "" %>"><a href="<%= employee_experience_path %>"><%= t("recruitment.experience") %></a></li>
<% end %>
</ul>
<% if params[:action] == "recruitment_dashboard" && @profile.is_employer? %>
<div class="add-job">
<a href="<%= addjob_path %>" class="pull-right btn btn-primary">Add Job</a>
<a href="<%= addjob_path %>" class="pull-right btn btn-primary"><%= t("recruitment.add_job") %></a>
</div>
<% end %>

View File

@ -1,6 +1,6 @@
<!-- academic type -->
<div class="form-group">
<%= f.label :academic_type, "Academic Type", :class => "col-sm-2 control-label" %>
<%= f.label :academic_type, t("recruitment.academictype"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= f.select :academic_type, @academic_types, {}, {:class => "form-control"} %>
</div>
@ -8,7 +8,7 @@
<!-- start date -->
<div class="form-group">
<%= f.label :start_date, "Start Date", :class => "col-sm-2 control-label" %>
<%= f.label :start_date, t("recruitment.start_date"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= f.datetime_picker :start_date, :no_label => true, :new_record => @academic.new_record?, :data=>{"picker-type" => "range", "range" => "start"} %>
</div>
@ -16,7 +16,7 @@
<!-- end date -->
<div class="form-group">
<%= f.label :end_date, "End Date", :class => "col-sm-2 control-label" %>
<%= f.label :end_date, t("recruitment.end_date"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= f.datetime_picker :end_date, :no_label => true, :new_record => @academic.new_record?, :data=>{"picker-type" => "range", "range" => "end"} %>
</div>
@ -36,7 +36,7 @@
<!-- degree name -->
<%= f.fields_for :degree_name_translations do |fe| %>
<div class="form-group">
<%= fe.label locale, "Degree Name", :class => "col-sm-2 control-label" %>
<%= fe.label locale, t("recruitment.degree_name"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= fe.text_field locale, :class => "form-control", :value => @academic.degree_name_translations[locale] %>
</div>
@ -45,7 +45,7 @@
<!-- notes -->
<%= f.fields_for :note_translations do |fe| %>
<div class="form-group">
<%= fe.label locale, "Note", :class => "col-sm-2 control-label" %>
<%= fe.label locale, t("recruitment.note"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= fe.text_area locale, :rows => 10, :class => "form-control", :value => @academic.note_translations[locale] %>
</div>

View File

@ -1,14 +1,14 @@
<table class="table table-striped jobs-table">
<thead>
<tr>
<th>Job Title</th>
<th>Company Name</th>
<th>Applied Date</th>
<th><%= t("recruitment.job_title") %></th>
<th><%= t("recruitment.company_name") %></th>
<th><%= t("recruitment.applied_date") %></th>
</tr>
</thead>
<tbody>
<% if @applications.blank? %>
<tr><td class="no-jobs" colspan="3">No jobs applied.</td></tr>
<tr><td class="no-jobs" colspan="3"><%= t("recruitment.no_jobs_found") %></td></tr>
<% else %>
<% @applications.each do |app| %>
<% job = app.get_job %>

View File

@ -12,7 +12,7 @@
<!-- company name -->
<%= f.fields_for :company_name_translations do |fe| %>
<div class="form-group">
<%= fe.label locale, "Company Name", :class => "col-sm-2 control-label" %>
<%= fe.label locale, t("recruitment.company_name"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= fe.text_field locale, :class => "form-control", :value => @experience.company_name_translations[locale] %>
</div>
@ -22,7 +22,7 @@
<!-- job title -->
<%= f.fields_for :job_title_translations do |fe| %>
<div class="form-group">
<%= fe.label locale, "Job Title", :class => "col-sm-2 control-label" %>
<%= fe.label locale, t("recruitment.job_title"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= fe.text_field locale, :class => "form-control", :value => @experience.job_title_translations[locale] %>
</div>
@ -31,7 +31,7 @@
<!-- notes -->
<%= f.fields_for :responsibilities_translations do |fe| %>
<div class="form-group">
<%= fe.label locale, "Job Responsibilities", :class => "col-sm-2 control-label" %>
<%= fe.label locale, t("recruitment.responsibility"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= fe.text_area locale, :rows => 10, :class => "form-control", :value => @experience.responsibilities_translations[locale] %>
</div>
@ -43,7 +43,7 @@
<!-- start date -->
<div class="form-group">
<%= f.label :start_date, "Start Date", :class => "col-sm-2 control-label" %>
<%= f.label :start_date, t("recruitment.start_date"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= f.datetime_picker :start_date, :no_label => true, :new_record => @experience.new_record?, :data=>{"picker-type" => "range", "range" => "start"} %>
</div>
@ -51,10 +51,10 @@
<!-- end date -->
<div class="form-group">
<%= f.label :end_date, "End Date", :class => "col-sm-2 control-label" %>
<%= f.label :end_date, t("recruitment.end_date"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= f.datetime_picker :end_date, :no_label => true, :new_record => @experience.new_record?, :data=>{"picker-type" => "range", "range" => "end"} %>
<div class="hint">Leave blank if its your current job</div>
<div class="hint"><%= t("recruitment.leave_blank") %></div>
</div>
</div>

View File

@ -47,28 +47,28 @@
text-align: center;
}
</style>
<h3 class="header-title">Employee / Fresher Personal Profile</h3>
<h3 class="header-title"><%= t("recruitment.emp_personal_profile") %></h3>
<hr>
<%= f.fields_for :employee_profile do |fe| %>
<!-- Gender -->
<div class="form-group">
<label class="col-sm-2 control-label">Gender</label>
<label class="col-sm-2 control-label"><%= t("recruitment.gender_title") %></label>
<div class="col-sm-8">
<label for="recruit_profile_employee_profile_attributes_gender_type1" class="control-label radio-label">
<%= fe.radio_button :gender, "type1" %> Male
<%= fe.radio_button :gender, "type1" %> <%= t("recruitment.gender.type1") %>
</label>
<label for="recruit_profile_employee_profile_attributes_gender_type2" class="control-label radio-label">
<%= fe.radio_button :gender, "type2" %> Female
<%= fe.radio_button :gender, "type2" %> <%= t("recruitment.gender.type2") %>
</label>
<label for="recruit_profile_employee_profile_attributes_gender_type3" class="control-label radio-label">
<%= fe.radio_button :gender, "type3" %> Other
<%= fe.radio_button :gender, "type3" %> <%= t("recruitment.gender.type3") %>
</label>
</div>
</div>
<!-- DOB -->
<div class="form-group">
<%= fe.label :dob, "Date of Birth", :class => "col-sm-2 control-label" %>
<%= fe.label :dob, t("recruitment.dob"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= fe.datetime_picker :dob, :no_label => true, :new_record => @profile.new_record? %>
</div>
@ -76,20 +76,20 @@
<!-- Martial status -->
<div class="form-group">
<label class="col-sm-2 control-label">Martial Status</label>
<label class="col-sm-2 control-label"><%= t("recruitment.martial_title") %></label>
<div class="col-sm-8">
<label for="recruit_profile_employee_profile_attributes_marital_status_type1" class="control-label radio-label">
<%= fe.radio_button :marital_status, "type1" %> Un-Married
<%= fe.radio_button :marital_status, "type1" %> <%= t("recruitment.martial.type1") %>
</label>
<label for="recruit_profile_employee_profile_attributes_marital_status_type2" class="control-label radio-label">
<%= fe.radio_button :marital_status, "type2" %> Married
<%= fe.radio_button :marital_status, "type2" %> <%= t("recruitment.martial.type2") %>
</label>
</div>
</div>
<!-- country code -->
<div class="form-group">
<%= fe.label :country_code, "Country Code", :class => "col-sm-2 control-label" %>
<%= fe.label :country_code, t("recruitment.country_code"), :class => "col-sm-2 control-label" %>
<div class="col-sm-1">
<%= fe.text_field :country_code, :class => "form-control" %>
</div>
@ -97,7 +97,7 @@
<!-- phone number -->
<div class="form-group">
<%= fe.label :phone_number, "Phone Number", :class => "col-sm-2 control-label" %>
<%= fe.label :phone_number, t("recruitment.phone_number"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= fe.text_field :phone_number, :class => "form-control" %>
</div>
@ -105,27 +105,27 @@
<!-- employment status -->
<div class="form-group">
<label class="col-sm-2 control-label">Employment Status</label>
<label class="col-sm-2 control-label"><%= t("recruitment.employment_status") %></label>
<div class="col-sm-8">
<label for="recruit_profile_employee_profile_attributes_employment_status_type1" class="control-label radio-label">
<%= fe.radio_button :employment_status, "type1" %> Un-Employed
<%= fe.radio_button :employment_status, "type1" %> <%= t("recruitment.employment.type1") %>
</label>
<label for="recruit_profile_employee_profile_attributes_employment_status_type2" class="control-label radio-label">
<%= fe.radio_button :employment_status, "type2" %> Employed
<%= fe.radio_button :employment_status, "type2" %> <%= t("recruitment.employment.type2") %>
</label>
</div>
</div>
<!-- Website -->
<div class="form-group">
<%= fe.label :website, "Website / Link", :class => "col-sm-2 control-label" %>
<%= fe.label :website, t("recruitment.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" %>
<%= fe.label :avatar, t("recruitment.avatar"), :class => "col-sm-2 control-label" %>
<div class="controls">
<div class="fileupload fileupload-new clearfix <%= 'fileupload-edit' if !@profile.new_record? && @profile.employee_profile.avatar.file %>" data-provides="fileupload">
<div class="fileupload-new thumbnail pull-left">
@ -166,7 +166,7 @@
<!-- address -->
<%= fe.fields_for :address_translations do |fe| %>
<div class="form-group">
<%= fe.label locale, "Address", :class => "col-sm-2 control-label" %>
<%= fe.label locale, t("recruitment.address"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= fe.text_area locale, :class => "form-control", :value => @profile.employee_profile.address_translations[locale] %>
</div>
@ -175,7 +175,7 @@
<!-- autobiography -->
<%= fe.fields_for :autobiography_translations do |fe| %>
<div class="form-group">
<%= fe.label locale, "Autobiography", :class => "col-sm-2 control-label" %>
<%= fe.label locale, t("recruitment.autobiography"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= fe.text_area locale, :class => "form-control", :value => @profile.employee_profile.autobiography_translations[locale] %>
</div>
@ -193,7 +193,7 @@
<%= f.hidden_field :last_name, :value => current_pseudo_user.last_name %>
<%= f.hidden_field :user_type, :value => "1" %>
<input type="hidden" name="step" value="step1" >
<%= f.submit "Save", :class =>"btn btn-primary" %>
<%= f.submit "Next", :class =>"btn btn-primary" %>
<%= f.submit t("save"), :class =>"btn btn-primary" %>
<%= f.submit t("recruitment.next"), :class =>"btn btn-primary" %>
</div>
</div>

View File

@ -1,16 +1,16 @@
<table class="table table-striped jobs-table">
<thead>
<tr>
<th>Job Title</th>
<th>Job Posted</th>
<th>Position Filled</th>
<th>Applied Candidates</th>
<th>Actions</th>
<th><%= t("recruitment.job_title") %></th>
<th><%= t("recruitment.job_posted") %></th>
<th><%= t("recruitment.position_filled") %></th>
<th><%= t("recruitment.applications") %></th>
<th><%= t("recruitment.actions") %></th>
</tr>
</thead>
<tbody>
<% if @jobsposted.blank? %>
<tr><td class="no-jobs" colspan="5">No jobs posted.</td></tr>
<tr><td class="no-jobs" colspan="5"><%= t("recruitment.no_jobs_posted") %></td></tr>
<% else %>
<% @jobsposted.each do |job| %>
<tr>
@ -20,18 +20,18 @@
<td>
<% job_count = job.get_application_count %>
<% if job_count > 0 %>
<a href="/recruit/<%= job.id.to_s %>/job_applications" class="btn btn-danger">Show (<%= job_count %>)</a></td>
<a href="/recruit/<%= job.id.to_s %>/job_applications" class="btn btn-danger"><%= t("recruitment.show_application") %> (<%= job_count %>)</a></td>
<% else %>
<a href="#" disabled="disabled" class="btn btn-info">Show</a></td>
<a href="#" disabled="disabled" class="btn btn-info"><%= t("recruitment.show_application") %></a></td>
<% end %>
<td>
<a href="/recruit/<%= job.id.to_s %>/editjob" class="btn btn-warning">Edit</a>
<a href="/recruit/<%= job.id.to_s %>/editjob" class="btn btn-warning"><%= t("recruitment.edit") %></a>
<% if !job.filled %>
<a href="/recruit/<%= job.id.to_s %>/markfilled" class="btn btn-primary">Mark Filled</a>
<a href="/recruit/<%= job.id.to_s %>/markfilled" class="btn btn-primary"><%= t("recruitment.mark_filled") %></a>
<% else %>
<a href="/recruit/<%= job.id.to_s %>/unmarkfilled" class="btn btn-success">Not Filled</a>
<a href="/recruit/<%= job.id.to_s %>/unmarkfilled" class="btn btn-success"><%= t("recruitment.not_filled") %></a>
<% end %>
<a data-method="delete" href="/recruit/<%= job.id.to_s %>/deletejob" data-confirm="Are you sure?" class="btn btn-danger">Delete</a>
<a data-method="delete" href="/recruit/<%= job.id.to_s %>/deletejob" data-confirm="Are you sure?" class="btn btn-danger"><%= t(:delete_) %></a>
</td>
</tr>
<% end %>
@ -39,5 +39,5 @@
</tbody>
</table>
<div class="add-job">
<a href="<%= addjob_path %>" class="pull-right btn btn-primary">Add Job</a>
<a href="<%= addjob_path %>" class="pull-right btn btn-primary"><%= t("recruitment.add_job") %></a>
</div>

View File

@ -16,7 +16,7 @@
border-top: 1px solid #5c5c5c;
}
</style>
<h3 class="header-title">Employer Personal Profile</h3>
<h3 class="header-title"><%= t("recruitment.employer_personal_profile") %></h3>
<hr>
<ul class="nav nav-pills language-nav">
@ -34,7 +34,7 @@
<!-- 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" %>
<%= fe.label locale, t("recruitment.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>
@ -43,7 +43,7 @@
<!-- 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" %>
<%= fe.label locale, t("recruitment.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>
@ -53,7 +53,7 @@
<!-- 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" %>
<%= fe.label locale, t("recruitment.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>
@ -63,7 +63,7 @@
<!-- 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" %>
<%= fe.label locale, t("recruitment.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>
@ -77,7 +77,7 @@
<%= f.fields_for :employer_profile do |fe| %>
<!-- Industry type -->
<div class="form-group">
<%= fe.label :industry, "Industry", :class => "col-sm-2 control-label" %>
<%= 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>
@ -85,7 +85,7 @@
<!-- Country -->
<div class="form-group">
<%= fe.label :country, "Country", :class => "col-sm-2 control-label" %>
<%= fe.label :country, t("recruitment.country"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= fe.select :country, MiscList.countries_for_select, {:include_blank => "Select Country"}, {:class => "form-control"} %>
</div>
@ -93,7 +93,7 @@
<!-- State -->
<div class="form-group">
<%= fe.label :state, "State", :class => "col-sm-2 control-label" %>
<%= fe.label :state, t("recruitment.state"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= fe.text_field :state, :class => "form-control" %>
</div>
@ -101,7 +101,7 @@
<!-- City -->
<div class="form-group">
<%= fe.label :city, "City", :class => "col-sm-2 control-label" %>
<%= fe.label :city, t("recruitment.city"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= fe.text_field :city, :class => "form-control" %>
</div>
@ -109,7 +109,7 @@
<!-- Zipcode -->
<div class="form-group">
<%= fe.label :zipcode, "Zipcode", :class => "col-sm-2 control-label" %>
<%= fe.label :zipcode, t("recruitment.zip_code"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= fe.text_field :zipcode, :class => "form-control" %>
</div>
@ -117,7 +117,7 @@
<!-- country code -->
<div class="form-group">
<%= fe.label :country_code, "Country Code", :class => "col-sm-2 control-label" %>
<%= fe.label :country_code, t("recruitment.country_code"), :class => "col-sm-2 control-label" %>
<div class="col-sm-1">
<%= fe.text_field :country_code, :class => "form-control" %>
</div>
@ -125,7 +125,7 @@
<!-- phone number -->
<div class="form-group">
<%= fe.label :phone_number, "Phone Number", :class => "col-sm-2 control-label" %>
<%= fe.label :phone_number, t("recruitment.phone_number"), :class => "col-sm-2 control-label" %>
<div class="col-sm-2">
<%= fe.text_field :phone_number, :class => "form-control" %>
</div>
@ -133,7 +133,7 @@
<!-- country code -->
<div class="form-group">
<%= fe.label :mobile_number, "Mobile Number", :class => "col-sm-2 control-label" %>
<%= fe.label :mobile_number, t("recruitment.mobile_number"), :class => "col-sm-2 control-label" %>
<div class="col-sm-2">
<%= fe.text_field :mobile_number, :class => "form-control" %>
</div>
@ -141,14 +141,14 @@
<!-- Website -->
<div class="form-group">
<%= fe.label :website, "Website", :class => "col-sm-2 control-label" %>
<%= fe.label :website, t("recruitment.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" %>
<%= fe.label :avatar, t("recruitment.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">
@ -182,6 +182,6 @@
<%= 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" %>
<%= f.submit t("submit"), :class =>"btn btn-primary" %>
</div>
</div>

View File

@ -22,7 +22,7 @@
<!-- Job Title -->
<%= f.fields_for :job_title_translations do |fe| %>
<div class="form-group">
<%= fe.label locale, "Job Title", :class => "col-sm-2 control-label" %>
<%= fe.label locale, t("recruitment.job_title"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= fe.text_field locale, :class => "form-control", :value => @job.job_title_translations[locale] %>
</div>
@ -31,7 +31,7 @@
<!-- Job Description -->
<%= f.fields_for :job_description_translations do |fe| %>
<div class="form-group">
<%= fe.label locale, "Job Description", :class => "col-sm-2 control-label" %>
<%= fe.label locale, t("recruitment.job_description"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= fe.text_area locale, :rows=>5, :class => "form-control", :value => @job.job_description_translations[locale] %>
</div>
@ -41,7 +41,7 @@
<!-- Other Conditions -->
<%= f.fields_for :other_conditions_translations do |fe| %>
<div class="form-group">
<%= fe.label locale, "Other Conditions", :class => "col-sm-2 control-label" %>
<%= fe.label locale, t("recruitment.other_conditions"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= fe.text_area locale, :rows=>5, :class => "form-control", :value => @job.other_conditions_translations[locale] %>
</div>
@ -53,7 +53,7 @@
<!-- Job Category -->
<div class="form-group">
<%= f.label :category, "Category", :class => "col-sm-2 control-label" %>
<%= f.label :category, t("recruitment.category"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= f.select :category, RecruitmentCategory.all.asc(:job_category).collect{|rc| [rc.job_category,rc.id.to_s]}, {:include_blank => "Select Category"},{:class => "form-control"} %>
</div>
@ -61,16 +61,16 @@
<!-- salary type -->
<div class="form-group">
<label class="col-sm-2 control-label">Salary</label>
<label class="col-sm-2 control-label"><%= t("recruitment.salary-title") %></label>
<div class="col-sm-8">
<label for="recruitment_job_salary_type1" class="control-label radio-label">
<%= f.radio_button :salary, "type1" %> Negotiable
<%= f.radio_button :salary, "type1" %> <%= t("recruitment.salary.type1") %>
</label>
<label for="recruitment_job_salary_type2" class="control-label radio-label">
<%= f.radio_button :salary, "type2" %> According to Company Rules
<%= f.radio_button :salary, "type2" %> <%= t("recruitment.salary.type2") %>
</label>
<label for="recruitment_job_salary_type3" class="control-label radio-label">
<%= f.radio_button :salary, "type3" %> Monthly Salary
<%= f.radio_button :salary, "type3" %> <%= t("recruitment.salary.type3") %>
</label>
</div>
</div>
@ -78,7 +78,7 @@
<!-- location of work -->
<div class="form-group">
<%= f.label :location_of_work, "Location of Work", :class => "col-sm-2 control-label" %>
<%= f.label :location_of_work, t("recruitment.location"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= f.text_field :location_of_work, :class => "form-control"%>
</div>
@ -87,7 +87,7 @@
<!-- Industrial area -->
<div class="form-group">
<%= f.label :industrial_area, "Industrial Area", :class => "col-sm-2 control-label" %>
<%= f.label :industrial_area, t("recruitment.industrial_area"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= f.text_field :industrial_area, :class => "form-control"%>
</div>
@ -95,42 +95,42 @@
<!-- travel assignment type -->
<div class="form-group">
<label class="col-sm-2 control-label">Travel Assignment</label>
<label class="col-sm-2 control-label"><%= t("recruitment.travel") %></label>
<div class="col-sm-8">
<label for="recruitment_job_travel_assignment_type1" class="control-label radio-label">
<%= f.radio_button :travel_assignment, "type1" %> Need to Travel
<%= f.radio_button :travel_assignment, "type1" %> <%= t("recruitment.travel_assignment.type1") %>
</label>
<label for="recruitment_job_travel_assignment_type2" class="control-label radio-label">
<%= f.radio_button :travel_assignment, "type2" %> Occasionally
<%= f.radio_button :travel_assignment, "type2" %> <%= t("recruitment.travel_assignment.type2") %>
</label>
<label for="recruitment_job_travel_assignment_type3" class="control-label radio-label">
<%= f.radio_button :travel_assignment, "type3" %> Travelling not required
<%= f.radio_button :travel_assignment, "type3" %> <%= t("recruitment.travel_assignment.type3") %>
</label>
</div>
</div>
<!-- Working Hours -->
<div class="form-group">
<label class="col-sm-2 control-label">Working Hours</label>
<label class="col-sm-2 control-label"><%= t("recruitment.workingtime_title") %></label>
<div class="col-sm-8">
<label for="recruitment_job_working_time_type1" class="control-label radio-label">
<%= f.radio_button :working_time, "type1" %> Day Shift
<%= f.radio_button :working_time, "type1" %> <%= t("recruitment.working_time.type1") %>
</label>
<label for="recruitment_job_working_time_type2" class="control-label radio-label">
<%= f.radio_button :working_time, "type2" %> Night Shift
<%= f.radio_button :working_time, "type2" %> <%= t("recruitment.working_time.type2") %>
</label>
</div>
</div>
<!-- Holidays -->
<div class="form-group">
<label class="col-sm-2 control-label">Holidays</label>
<label class="col-sm-2 control-label"><%= t("recruitment.holiday_title") %></label>
<div class="col-sm-8">
<label for="recruitment_job_holiday_system_type1" class="control-label radio-label">
<%= f.radio_button :holiday_system, "type1" %> According to Company Rules
<%= f.radio_button :holiday_system, "type1" %> <%= t("recruitment.holiday_system.type1") %>
</label>
<label for="recruitment_job_holiday_system_type2" class="control-label radio-label">
<%= f.radio_button :holiday_system, "type2" %> Others
<%= f.radio_button :holiday_system, "type2" %> <%= t("recruitment.holiday_system.type2") %>
<%= f.text_field :holiday_system_other, :disabled => true %>
</label>
</div>
@ -138,13 +138,13 @@
<!-- Joining Day -->
<div class="form-group">
<label class="col-sm-2 control-label">Joining Period</label>
<label class="col-sm-2 control-label"><%= t("recruitment.joining") %></label>
<div class="col-sm-8">
<label for="recruitment_job_joining_time_type1" class="control-label radio-label">
<%= f.radio_button :joining_time, "type1" %> Within a month
<%= f.radio_button :joining_time, "type1" %> <%= t("recruitment.joining_time.type1") %>
</label>
<label for="recruitment_job_joining_time_type2" class="control-label radio-label">
<%= f.radio_button :joining_time, "type2" %> More than a month
<%= f.radio_button :joining_time, "type2" %> <%= t("recruitment.joining_time.type2") %>
</label>
</div>
</div>
@ -152,22 +152,22 @@
<hr>
<!-- Work Type -->
<div class="form-group">
<label class="col-sm-2 control-label">Work Type</label>
<label class="col-sm-2 control-label"><%= t("recruitment.worktype_title") %></label>
<div class="col-sm-8">
<label for="recruitment_job_work_type_type1" class="control-label radio-label">
<%= f.radio_button :work_type, "type1" %> Office Worker
<%= f.radio_button :work_type, "type1" %> <%= t("recruitment.work_type.type1") %>
</label>
<label for="recruitment_job_work_type_type2" class="control-label radio-label">
<%= f.radio_button :work_type, "type2" %> Graduate
<%= f.radio_button :work_type, "type2" %> <%= t("recruitment.work_type.type2") %>
</label>
<label for="recruitment_job_work_type_type3" class="control-label radio-label">
<%= f.radio_button :work_type, "type3" %> Foreigner
<%= f.radio_button :work_type, "type3" %> <%= t("recruitment.work_type.type3") %>
</label>
<label for="recruitment_job_work_type_type4" class="control-label radio-label">
<%= f.radio_button :work_type, "type4" %> Internship
<%= f.radio_button :work_type, "type4" %> <%= t("recruitment.work_type.type4") %>
</label>
<label for="recruitment_job_work_type_type5" class="control-label radio-label">
<%= f.radio_button :work_type, "type5" %> SOHO
<%= f.radio_button :work_type, "type5" %> <%= t("recruitment.work_type.type5") %>
</label>
</div>
</div>
@ -175,20 +175,20 @@
<!-- Work Experience -->
<div class="form-group">
<%= f.label :work_experience_years, "Work Experience", :class => "col-sm-2 control-label" %>
<%= f.label :work_experience_years, t("recruitment.work_experience"), :class => "col-sm-2 control-label" %>
<div class="col-sm-3">
<%= f.number_field :work_experience_years, :class => "form-control", :max => 50, :min => 0, :value => 0 %>
<label for="recruitment_job_work_experience_years">Years</label>
<label for="recruitment_job_work_experience_years"><%= t("recruitment.years") %></label>
</div>
<div class="col-sm-3">
<%= f.number_field :work_experience_months, :class => "form-control", :max => 11, :min => 0, :value => 0 %>
<label for="recruitment_job_work_experience_months">Months</label>
<label for="recruitment_job_work_experience_months"><%= t("recruitment.months") %></label>
</div>
</div>
<!-- Academic Req -->
<div class="form-group">
<%= f.label :academic_requirement, "Academic Requirement", :class => "col-sm-2 control-label" %>
<%= f.label :academic_requirement, t("recruitment.academic_requirement"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= f.text_area :academic_requirement, :class => "form-control"%>
</div>
@ -196,17 +196,17 @@
<!-- Language Req -->
<div class="form-group">
<%= f.label :language_requirement, "Language Requirement", :class => "col-sm-2 control-label" %>
<%= f.label :language_requirement, t("recruitment.language"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= f.text_field :language_requirement, :class => "form-control", :placeholder => "Seperate with (,) ex; English, Chinese" %>
<%= f.text_field :language_requirement, :class => "form-control", :placeholder => t("recruitment.seperate_with_eng") %>
</div>
</div>
<!-- Tools Req -->
<div class="form-group">
<%= f.label :tools_requirement, "Skills", :class => "col-sm-2 control-label" %>
<%= f.label :tools_requirement, t("recruitment.skills"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= f.text_field :skills, :class => "form-control", :placeholder => "Seperate with (,) ex; Word, Excel", :value => @job.skills.join(", ") %>
<%= f.text_field :skills, :class => "form-control", :placeholder => t("recruitment.seperate_with_word"), :value => @job.skills.join(", ") %>
</div>
</div>
@ -214,7 +214,7 @@
<div class="col-sm-offset-2 col-sm-10">
<%= f.hidden_field :employer_profile_id, :value => @profile.profile.id %>
<%= f.submit "Submit", :class =>"btn btn-primary" %>
<a href="<%= mydashboard_path %>" class="btn btn-default">Cancel</a>
<a href="<%= mydashboard_path %>" class="btn btn-default"><%= t("recruitment.cancel") %></a>
</div>
</div>

View File

@ -52,43 +52,43 @@
</style>
<div id="dashboard-wrapper">
<%= render :partial => "dashboard_header" %>
<h3 class="header-title">Academics</h3>
<h3 class="header-title"><%= t("recruitment.academics") %></h3>
<hr>
<% @academics.each do |academic| %>
<div class="form-horizontal">
<div class="form-group">
<label class="col-sm-2 control-label">Academic Type</label>
<label class="col-sm-2 control-label"><%= t("recruitment.academictype") %></label>
<div class="col-sm-10">
<p class="form-control-static"><%= t("recruitment.academic_type.#{academic.academic_type}") %></p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Degree Name</label>
<label class="col-sm-2 control-label"><%= t("recruitment.degree_name") %></label>
<div class="col-sm-10">
<p class="form-control-static"><%= academic.degree_name %></p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Start Date</label>
<label class="col-sm-2 control-label"><%= t("recruitment.start_date") %></label>
<div class="col-sm-10">
<p class="form-control-static"><%= academic.start_date.strftime("%d %B %Y") rescue "" %></p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">End Date</label>
<label class="col-sm-2 control-label"><%= t("recruitment.end_date") %></label>
<div class="col-sm-10">
<p class="form-control-static"><%= academic.end_date.strftime("%d %B %Y") rescue "" %></p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Note</label>
<label class="col-sm-2 control-label"><%= t("recruitment.note") %></label>
<div class="col-sm-10">
<%= simple_format(academic.note) %>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<a href="/recruit/<%= academic.id.to_s %>/edit_employee_academic" class="btn btn-warning">Edit</a>
<a href="/recruit/<%= academic.id.to_s %>/edit_employee_academic" class="btn btn-warning"><%= t("recruitment.edit") %></a>
</div>
</div>
</div>
@ -99,8 +99,8 @@
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<%= f.hidden_field :employee_profile_id, :value => @profile.profile.id.to_s %>
<%= f.submit "Add", :class =>"btn btn-primary" %>
<%= f.submit "Next", :class =>"btn btn-primary" %>
<%= f.submit t("recruitment.add"), :class =>"btn btn-primary" %>
<%= f.submit t("recruitment.next"), :class =>"btn btn-primary" %>
</div>
</div>
<% end %>

View File

@ -52,43 +52,43 @@
</style>
<div id="dashboard-wrapper">
<%= render :partial => "dashboard_header" %>
<h3 class="header-title">Work Experience</h3>
<h3 class="header-title"><%= t("recruitment.work_experience") %></h3>
<hr>
<% @exeperiences.each do |exp| %>
<div class="form-horizontal">
<div class="form-group">
<label class="col-sm-2 control-label">Company Name</label>
<label class="col-sm-2 control-label"><%= t("recruitment.company_name") %></label>
<div class="col-sm-10">
<p class="form-control-static"><%= exp.company_name %></p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Job Title</label>
<label class="col-sm-2 control-label"><%= t("recruitment.job_title") %></label>
<div class="col-sm-10">
<p class="form-control-static"><%= exp.job_title %></p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Start Date</label>
<label class="col-sm-2 control-label"><%= t("recruitment.start_date") %></label>
<div class="col-sm-10">
<p class="form-control-static"><%= exp.start_date.strftime("%d %B %Y") rescue "" %></p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">End Date</label>
<label class="col-sm-2 control-label"><%= t("recruitment.end_date") %></label>
<div class="col-sm-10">
<p class="form-control-static"><%= exp.end_date.strftime("%d %B %Y") rescue "Currently Working" %></p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Responsibilities</label>
<label class="col-sm-2 control-label"><%= t("recruitment.responsibilities") %></label>
<div class="col-sm-10">
<%= simple_format(exp.responsibilities) %>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<a href="/recruit/<%= exp.id.to_s %>/edit_employee_experience" class="btn btn-warning">Edit</a>
<a href="/recruit/<%= exp.id.to_s %>/edit_employee_experience" class="btn btn-warning"><%= t("recruitment.edit") %></a>
</div>
</div>
</div>
@ -99,8 +99,8 @@
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<%= f.hidden_field :employee_profile_id, :value => @profile.profile.id.to_s %>
<%= f.submit "Add", :class =>"btn btn-primary" %>
<%= f.submit "Finish", :class =>"btn btn-primary" %>
<%= f.submit t("recruitment.add"), :class =>"btn btn-primary" %>
<%= f.submit t("recruitment.finish"), :class =>"btn btn-primary" %>
</div>
</div>
<% end %>

View File

@ -48,7 +48,7 @@
</style>
<div id="dashboard-wrapper">
<%= render :partial => "dashboard_header" %>
<h3 class="header-title">Employee Portfolio</h3>
<h3 class="header-title"><%= t("recruitment.employee_portfolio") %></h3>
<hr>
<%= form_for @profile, url: {:action => "updateprofile"}, html: {:class => "form-horizontal main-forms", :id => "portfolioForm"} do |f| %>
@ -67,7 +67,7 @@
<!-- address -->
<%= fe.fields_for :desired_job_title_translations do |fe| %>
<div class="form-group">
<%= fe.label locale, "Job Title", :class => "col-sm-2 control-label" %>
<%= fe.label locale, t("recruitment.job_title"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= fe.text_field locale, :class => "form-control", :value => @profile.employee_profile.desired_job_title_translations[locale] %>
</div>
@ -75,7 +75,7 @@
<% end %>
<%= fe.fields_for :current_company_translations do |fe| %>
<div class="form-group">
<%= fe.label locale, "Current Company", :class => "col-sm-2 control-label" %>
<%= fe.label locale, t("recruitment.current_company"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= fe.text_field locale, :class => "form-control", :value => @profile.employee_profile.current_company_translations[locale] %>
</div>
@ -83,16 +83,16 @@
<% end %>
<%= fe.fields_for :introduction_translations do |fe| %>
<div class="form-group">
<%= fe.label locale, "Introduction", :class => "col-sm-2 control-label" %>
<%= fe.label locale, t("recruitment.introduction"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= fe.text_area locale, :rows => 5, :class => "form-control", :value => @profile.employee_profile.introduction_translations[locale], :placeholder => "Example: Professional developer with 6 years of experience with good knowledge of computer languages." %>
<div class="hint">This will be the first thing companies will see on your profile.</div>
<%= fe.text_area locale, :rows => 5, :class => "form-control", :value => @profile.employee_profile.introduction_translations[locale], :placeholder => t("recruitment.intro_example") %>
<div class="hint"><%= t("recruitment.first_thing") %></div>
</div>
</div>
<% end %>
<%= fe.fields_for :resume_content_translations do |fe| %>
<div class="form-group">
<%= fe.label locale, "Resume Content", :class => "col-sm-2 control-label" %>
<%= fe.label locale, t("recruitment.resume_content"), :class => "col-sm-2 control-label" %>
<div class="col-sm-10">
<%= fe.cktext_area locale, :class => "ckeditor form-control", :value => @profile.employee_profile.resume_content_translations[locale] %>
</div>
@ -106,67 +106,67 @@
<%= f.fields_for :employee_profile do |fe| %>
<!-- desired place -->
<div class="form-group">
<%= fe.label :desired_place, "Current Location", :class => "col-sm-2 control-label" %>
<%= fe.label :desired_place, t("recruitment.current_location"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= fe.text_field :desired_place, :class => "form-control" %>
</div>
</div>
<!-- Working Hours -->
<div class="form-group">
<label class="col-sm-2 control-label">Working Shift</label>
<label class="col-sm-2 control-label"><%= t("recruitment.workingtime_title") %></label>
<div class="col-sm-8">
<label for="recruit_profile_employee_profile_attributes_working_time_type1" class="control-label radio-label">
<%= fe.radio_button :working_time, "type1" %> Day Shift
<%= fe.radio_button :working_time, "type1" %> <%= t("recruitment.working_time.type1") %>
</label>
<label for="recruit_profile_employee_profile_attributes_working_time_type2" class="control-label radio-label">
<%= fe.radio_button :working_time, "type2" %> Night Shift
<%= fe.radio_button :working_time, "type2" %> <%= t("recruitment.working_time.type2") %>
</label>
</div>
</div>
<!-- Skills -->
<div class="form-group">
<%= f.label :skills, "Skills", :class => "col-sm-2 control-label" %>
<%= f.label :skills, t("recruitment.skills"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= fe.text_field :skills, :class => "form-control", :placeholder => "Seperate with (,) ex; Word, Excel", :value => (@profile.employee_profile.skills.join(", ") rescue "") %>
<%= fe.text_field :skills, :class => "form-control", :placeholder => t("recruitment.seperate_with_word"), :value => (@profile.employee_profile.skills.join(", ") rescue "") %>
</div>
</div>
<!-- Language Req -->
<div class="form-group">
<%= fe.label :languages, "Language", :class => "col-sm-2 control-label" %>
<%= fe.label :languages, t("recruitment.language_title"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= fe.text_field :languages, :class => "form-control", :placeholder => "Seperate with (,) ex; English, Chinese" %>
<%= fe.text_field :languages, :class => "form-control", :placeholder => t("recruitment.seperate_with_eng") %>
</div>
</div>
<!-- Recommendation 1-->
<div class="form-group">
<%= fe.label :recommendation1_info, "First Recommendation", :class => "col-sm-2 control-label" %>
<%= fe.label :recommendation1_info, t("recruitment.recommendation1_info"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= fe.text_area :recommendation1_info, :rows => 5, :class => "form-control", :placeholder => "Recommendation name and contact" %>
<%= fe.text_area :recommendation1_info, :rows => 5, :class => "form-control", :placeholder => t("recruitment.recommendation_name_contact") %>
</div>
</div>
<!-- Recommendation 2-->
<div class="form-group">
<%= fe.label :recommendation2_info, "Second Recommendation", :class => "col-sm-2 control-label" %>
<%= fe.label :recommendation2_info, t("recruitment.recommendation2_info"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= fe.text_area :recommendation2_info, :rows => 5, :class => "form-control", :placeholder => "Recommendation name and contact" %>
<%= fe.text_area :recommendation2_info, :rows => 5, :class => "form-control", :placeholder => t("recruitment.recommendation_name_contact") %>
</div>
</div>
<!-- Resume -->
<% if !@profile.employee_profile.resume.nil? && !@profile.employee_profile.resume.url.nil? %>
<div class="form-group">
<label class="col-sm-2 control-label">Resume</label>
<label class="col-sm-2 control-label"><%= t("recruitment.resume_file") %></label>
<div class="col-sm-10">
<p class="form-control-static"><a href="<%= @profile.employee_profile.resume.url %>" target="_blank">Download CV here</a></p>
<p class="form-control-static"><a href="<%= @profile.employee_profile.resume.url %>" target="_blank"><%= t("recruitment.download_cv") %></a></p>
</div>
</div>
<% end %>
<div class="form-group">
<%= fe.label :resume, "Upload Resume", :class => "col-sm-2 control-label" %>
<%= fe.label :resume, t("recruitment.upload_cv"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<p class="form-control-static"><%= fe.file_field :resume %></p>
</div>
@ -174,12 +174,12 @@
<!-- Total Exp -->
<div class="form-group">
<%= fe.label :exprience_years, "Total Experience", :class => "col-sm-2 control-label" %>
<%= fe.label :exprience_years, t("recruitment.total_exp"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5">
<%= fe.number_field :experience_years, :class => "form-control", :max => 50, :min => 0 %> Years
<%= fe.number_field :experience_years, :class => "form-control", :max => 50, :min => 0 %> <%= t("recruitment.years") %>
</div>
<div class="col-sm-5">
<%= fe.number_field :experience_months, :class => "form-control", :max => 11, :min => 0 %> Months
<%= fe.number_field :experience_months, :class => "form-control", :max => 11, :min => 0 %> <%= t("recruitment.months") %>
</div>
</div>
@ -188,8 +188,8 @@
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<input type="hidden" name="step" value="step3" >
<%= f.submit "Save", :class =>"btn btn-primary" %>
<%= f.submit "Next", :class =>"btn btn-primary" %>
<%= f.submit t("save"), :class =>"btn btn-primary" %>
<%= f.submit t("recruitment.next"), :class =>"btn btn-primary" %>
</div>
</div>
<% end %>

View File

@ -9,7 +9,7 @@
<div class="ajax-content"><div style="margin-top:15px; text-align: center;">Loading...</div></div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" id="searchBtn"><i class="fa fa-search" aria-hidden="true"></i> Search</button>
<button type="button" class="btn btn-primary" id="searchBtn"><i class="fa fa-search" aria-hidden="true"></i> <%= t("recruitment.search") %></button>
</div>
</div>
</div>
@ -37,7 +37,7 @@
</script>
<% elsif thissession["session"] == "false" %>
<div>Please login to view this page. <a href="<%= thissession["url"] %>">Login</a></div>
<div><%= t("recruitment.login_to_view") %> <a href="<%= thissession["url"] %>"><%= t("recruitment.login") %></a></div>
<script type="text/javascript">
window.location.href = "<%= thissession["url"] %>";
</script>

View File

@ -8,10 +8,10 @@
<table class="table table-striped jobs-table">
<thead>
<tr>
<th>Candidate Name</th>
<th>Application Date</th>
<th>Cover Letter</th>
<th>Actions</th>
<th><%= t("recruitment.canidate_name") %></th>
<th><%= t("recruitment.applied_date") %></th>
<th><%= t("recruitment.cover_letter") %></th>
<th><%= t("recruitment.actions") %></th>
</tr>
</thead>
<tbody>
@ -22,12 +22,12 @@
<td><%= application.created_at.strftime("%d %B %Y") %></td>
<td>
<% if !application.cover_letter.nil? && application.cover_letter != "" %>
<a href="" for="<%= profile.recruit_profile.name %>" class="cover-letter-btn">Cover Letter</a><div style="display: none;"><%= application.cover_letter %></div>
<a href="" for="<%= profile.recruit_profile.name %>" class="cover-letter-btn"><%= t("recruitment.cover_letter") %></a><div style="display: none;"><%= application.cover_letter %></div>
<% else %>
<a href="" disabled="disabled" class="">Cover Letter</a>
<a href="" disabled="disabled" class=""><%= t("recruitment.cover_letter") %></a>
<% end %>
</td>
<td><a class="btn btn-danger archive-button" href="/recruit/<%= application.id.to_s %>/archive_application">Delete</a></td>
<td><a class="btn btn-danger archive-button" href="/recruit/<%= application.id.to_s %>/archive_application"><%= t(:delete_) %></a></td>
</tr>
<% end %>
</tbody>

View File

@ -2,6 +2,84 @@ en:
module_name:
recruitment: Recruitment
recruitment:
first_thing: This will be the first thing companies will see on your profile.
leave_blank: Leave blank if its your current job.
welcome: Welcome
jobs: Jobs
profile: Profile
dashboard: Dashboard
academics: Academics
portfolio: Portfolio
experience: Experience
add_job: Add Job
academictype: Academic Type
start_date: Start Date
degree_name: Degree Name
note: Note
end_date: End Date
job_title: Job Title
company_name: Company Name
applied_date: Application Date
no_jobs_found: No Jobs Posted.
emp_personal_profile: Employee / Fresher Personal Profile
dob: Date of birth
country_code: Country Code
phone_number: Phone Number
employment_status: Employment Status
employment:
type1: Un-Employed
type2: Employed
website: Website / Link
avatar: Avatar
address: Address
next: Next
job_posted: Job Posted
position_filled: Position Filled
applications: Applications
actions: Actions
no_jobs_posted: No jobs posted.
show_application: Show Applications
edit: Edit
mark_filled: Mark Filled
not_filled: Not Filled
employer_personal_profile: Employer Personal Profile
contact_person: Contact Person
office_address: Office Address
country: Country
state: State
city: City
zip_code: Zip Code
mobile_number: Mobile Number
category: Category
industrial_area: Industrial Area
joining_period: Joining Period
work_experience: Work Experience
years: Years
months: Months
academic_requirement: Academic Requirement
seperate_with_eng: Seperate with (,) ex; English, Chinese
skills: Skills
seperate_with_word: Seperate with (,) ex; Excel, Word
cancel: Cancel
add: Add
work_experience: Work Experience
responsibilities: Responsibilities
finish: Finish
employee_portfolio: Employee Portfolio
current_company: Current Company
introduction: introduction
intro_example: "Example: Professional developer with 6 years of experience with good knowledge of computer languages."
current_location: Current Location
recommendation_name_contact: Recommendation name and contact
resume_file: Resume File
download_cv: Download CV here
upload_cv: Upload CV
total_exp: Total Experience
search: Search
login_to_view: Please login to view this page.
login: Login
candidate_name: Candidate Name
cover_letter: Cover Letter
recruitment: Recruitment
select_a_profile: Please select a profile
employee: Employee

View File

@ -1,7 +1,85 @@
zh_tw:
module_name:
recruitment: 應徵
recruitment: 招募
recruitment:
first_thing: This will be the first thing companies will see on your profile.
leave_blank: Leave blank if its your current job.
welcome: 歡迎
jobs: 工作
profile: 資料
dashboard: 儀表板
academics: 學術
portfolio: 個人檔案
experience: 經驗
add_job: 新增工作
academictype: 專業類別
start_date: 開始日期
degree_name: 學位名稱
note: 筆記
end_date: 結束日期
job_title: 工作直稱
company_name: 公司名稱
applied_date: 應徵日期
no_jobs_found: 無相關工作
emp_personal_profile: 應徵者個人資料
dob: 生日
country_code: 國籍
phone_number: 電話號碼
employment_status: 職業狀態
employment:
type1: 待業中
type2: 就業中
website: 網址
avatar: Avatar
address: 地址
next: 下一個
job_posted: 公開職缺
position_filled: 值缺已滿
applications: 申請
actions: Actions
no_jobs_posted: 未有相關工作需求
show_application: 展示 應用
edit: 編輯
mark_filled: 標示填寫
not_filled: 未填寫
employer_personal_profile: 應徵者資料
contact_person: 聯絡人
office_address: 辦公室地址
country: 國家
state:
city: 城市
zip_code: 郵遞區號
mobile_number: 手機號碼
category: Category
industrial_area: 工業領域
joining_period: 就業時間
work_experience: 工作經驗
years:
months:
academic_requirement: 專業需求
seperate_with_eng: 用(,)分隔 例如 中文,英文
skills: 技能
seperate_with_word: 用(,)分隔 例如 Excel,word
cancel: 取消
add: 新增
work_experience: 工作經驗
responsibilities: 負責項目
finish: 完成
employee_portfolio: 員工資料
current_company: 目前公司
introduction: 簡介
intro_example: "Example: 電腦程式語言相關專業6年經驗"
current_location: 目前地點
recommendation_name_contact: 推薦人和聯絡方式
resume_file: 履歷資料
download_cv: 下載履歷
upload_cv: 上傳履歷
total_exp: 全部經驗
search: 搜尋
login_to_view: 請登入後瀏覽此頁
login: 登入
candidate_name: 求職應徵者
cover_letter: 摘要
recruitment: 應徵
select_a_profile: 請選擇一個檔案
employee: 員工