account settings, hint and languages

This commit is contained in:
Harry Bomrah 2018-01-19 21:31:41 +08:00
parent ce8d96a23c
commit c9816c6344
13 changed files with 277 additions and 60 deletions

View File

@ -63,7 +63,8 @@ class RecruitmentsController < PseudoSessionController
{ {
"candidates" => data, "candidates" => data,
"extras" => { "extras" => {
"criteria" => criteria "criteria" => criteria,
"advanced-search" => t("recruitment.advanced_search")
}, },
"total_pages" => total_pages "total_pages" => total_pages
} }
@ -116,7 +117,8 @@ class RecruitmentsController < PseudoSessionController
{ {
"jobs" => jobs, "jobs" => jobs,
"extras" => { "extras" => {
"criteria" => criteria "criteria" => criteria,
"advanced-search" => t("recruitment.advanced_search")
}, },
"total_pages" => total_pages "total_pages" => total_pages
} }
@ -279,9 +281,9 @@ class RecruitmentsController < PseudoSessionController
current_loggedin_user = RecruitProfile.where(:pseudo_member_id => pu.user_name).first rescue nil current_loggedin_user = RecruitProfile.where(:pseudo_member_id => pu.user_name).first rescue nil
if !current_loggedin_user.nil? && current_loggedin_user.is_employee? if !current_loggedin_user.nil? && current_loggedin_user.is_employee?
if !current_loggedin_user.profile.is_job_applied?(job.id.to_s) if !current_loggedin_user.profile.is_job_applied?(job.id.to_s)
applybtn = "<a href='#' id='jobApplicationBtn' class='btn btn-primary'>Apply</a>" applybtn = "<a href='#' id='jobApplicationBtn' class='btn btn-primary'>#{"recruitment.apply"}</a>"
else else
applybtn = "<a href='#' disabled='disabled' class='btn btn-success'>Already Applied</a>" applybtn = "<a href='#' disabled='disabled' class='btn btn-success'>#{"recruitment.already_applied"}</a>"
end end
end end
end end
@ -611,6 +613,19 @@ class RecruitmentsController < PseudoSessionController
@academic_types = ["type1","type2","type3"].collect{|t| [t("recruitment.academic_type.#{t}"), t]} @academic_types = ["type1","type2","type3"].collect{|t| [t("recruitment.academic_type.#{t}"), t]}
end end
# ------ ------ account settings ------ ------- #
def account_settings
end
def update_settings
pu = PseudoUser.where(:user_name => @profile.pseudo_member_id).first
if pu.update_password(params[:password],params[:password_confirmation])
redirect_to mydashboard_path
else
redirect_to account_settings_path(:err => "1")
end
end
private private
def filter_jobs(params, type) def filter_jobs(params, type)

View File

@ -1,11 +1,12 @@
<h3> <h3>
<%= t("recruitment.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> <div class="pull-right logout"><a href="/pseudo_users/logoutpseudouser"><%= t("recruitment.logout") %></a></div>
</h3> </h3>
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<% if @profile.is_employer? %> <% if @profile.is_employer? %>
<li role="presentation" class="<%= params[:action] == "recruitment_dashboard" ? "active" : "" %>"><a href="<%= mydashboard_path %>"><%= t("recruitment.dashboard") %></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] == "editprofile" ? "active" : "" %>"><a href="<%= editprofile_path %>"><%= t("recruitment.profile") %></a></li>
<li role="presentation" class="<%= params[:action] == "account_settings" ? "active" : "" %>"><a href="<%= account_settings_path %>"><%= t("recruitment.account_settings") %></a></li>
<% elsif @profile.is_employee? %> <% elsif @profile.is_employee? %>
<li role="presentation" class="<%= params[:action] == "recruitment_dashboard" ? "active" : "" %>"><a href="<%= mydashboard_path %>"><%= t("recruitment.dashboard") %></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] == "editprofile" ? "active" : "" %>"><a href="<%= editprofile_path %>"><%= t("recruitment.profile") %></a></li>
@ -13,6 +14,7 @@
<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_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> <li role="presentation" class="<%= params[:action] == "employee_experience" ? "active" : "" %>"><a href="<%= employee_experience_path %>"><%= t("recruitment.experience") %></a></li>
<li role="presentation" class="<%= params[:action] == "employee_recommendation" ? "active" : "" %>"><a href="<%= employee_recommendation_path %>"><%= t("recruitment.recommendation") %></a></li> <li role="presentation" class="<%= params[:action] == "employee_recommendation" ? "active" : "" %>"><a href="<%= employee_recommendation_path %>"><%= t("recruitment.recommendation") %></a></li>
<li role="presentation" class="<%= params[:action] == "account_settings" ? "active" : "" %>"><a href="<%= account_settings_path %>"><%= t("recruitment.account_settings") %></a></li>
<% end %> <% end %>
</ul> </ul>
<% if params[:action] == "recruitment_dashboard" && @profile.is_employer? %> <% if params[:action] == "recruitment_dashboard" && @profile.is_employer? %>

View File

@ -0,0 +1,31 @@
<style type="text/css">
#example-box .modal-dialog{
z-index: 1100;
}
#example-box .modal-footer button{
color: #000;
}
</style>
<div class="modal fade" id="example-box" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="myModalLabel"><%= t("recruitment.example") %></h4>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><%= t("recruitment.close") %></button>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(".hint-btn").on("click",function(){
var html = $(this).parent().find("div.help-block").html();
$("#example-box").find(".modal-body").html(html);
$("#example-box").modal("show");
return false;
})
</script>

View File

@ -77,6 +77,10 @@
<%= fe.label locale, t("recruitment.exchange_description"), :class => "col-sm-2 control-label" %> <%= fe.label locale, t("recruitment.exchange_description"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5"> <div class="col-sm-5">
<%= fe.text_area locale, :rows=>5, :class => "form-control", :value => @job.job_description_translations[locale] %> <%= fe.text_area locale, :rows=>5, :class => "form-control", :value => @job.job_description_translations[locale] %>
<div>
<div class="help-block" style="display: none;"><%= simple_format(t("recruitment.exchange_description_example")) %></div>
<a class="hint-btn" href=""><%= t("recruitment.example") %></a>
</div>
</div> </div>
</div> </div>
<% end %> <% end %>
@ -87,6 +91,10 @@
<%= fe.label locale, t("recruitment.exchange_conditions"), :class => "col-sm-2 control-label" %> <%= fe.label locale, t("recruitment.exchange_conditions"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5"> <div class="col-sm-5">
<%= fe.text_area locale, :rows=>5, :class => "form-control", :value => @job.other_conditions_translations[locale] %> <%= fe.text_area locale, :rows=>5, :class => "form-control", :value => @job.other_conditions_translations[locale] %>
<div>
<div class="help-block" style="display: none;"><%= simple_format(t("recruitment.exchange_information_example")) %></div>
<a class="hint-btn" href=""><%= t("recruitment.example") %></a>
</div>
</div> </div>
</div> </div>
<% end %> <% end %>
@ -111,6 +119,10 @@
<%= f.number_field :internship_duration, :class => "form-control", :max => 36, :min => 1 %> <%= f.number_field :internship_duration, :class => "form-control", :max => 36, :min => 1 %>
<%= t("recruitment.months") %> <%= t("recruitment.months") %>
</label> </label>
<div>
<div class="help-block" style="display: none;"><%= simple_format(t("recruitment.job_duration_example")) %></div>
<a class="hint-btn" href=""><%= t("recruitment.example") %></a>
</div>
</div> </div>
</div> </div>
@ -154,6 +166,10 @@
<%= f.label :location_of_work, t("recruitment.location"), :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"> <div class="col-sm-5">
<%= f.text_field :location_of_work, :class => "form-control"%> <%= f.text_field :location_of_work, :class => "form-control"%>
<div>
<div class="help-block" style="display: none;"><%= simple_format(t("recruitment.location_example")) %></div>
<a class="hint-btn" href=""><%= t("recruitment.example") %></a>
</div>
</div> </div>
</div> </div>
@ -227,7 +243,7 @@
</div> </div>
</div> </div>
<%= render :partial => "example_box" %>
<script type="text/javascript"> <script type="text/javascript">
$("#recruitment_job_holiday_system_type2").on("click",function(){ $("#recruitment_job_holiday_system_type2").on("click",function(){
if($(this).is(":checked")){ if($(this).is(":checked")){

View File

@ -23,8 +23,12 @@
<%= f.fields_for :job_title_translations do |fe| %> <%= f.fields_for :job_title_translations do |fe| %>
<div class="form-group"> <div class="form-group">
<%= fe.label locale, t("recruitment.internship_title"), :class => "col-sm-2 control-label" %> <%= fe.label locale, t("recruitment.internship_title"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5"> <div class="col-sm-6">
<%= fe.text_field locale, :class => "form-control", :value => @job.job_title_translations[locale] %> <%= fe.text_field locale, :class => "form-control", :value => @job.job_title_translations[locale] %>
<div>
<div class="help-block" style="display: none;"><%= simple_format(t("recruitment.internship_title_example")) %></div>
<a class="hint-btn" href=""><%= t("recruitment.example") %></a>
</div>
</div> </div>
</div> </div>
<% end %> <% end %>
@ -32,8 +36,12 @@
<%= f.fields_for :job_description_translations do |fe| %> <%= f.fields_for :job_description_translations do |fe| %>
<div class="form-group"> <div class="form-group">
<%= fe.label locale, t("recruitment.internship_description"), :class => "col-sm-2 control-label" %> <%= fe.label locale, t("recruitment.internship_description"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5"> <div class="col-sm-6">
<%= fe.text_area locale, :rows=>5, :class => "form-control", :value => @job.job_description_translations[locale] %> <%= fe.text_area locale, :rows=>5, :class => "form-control", :value => @job.job_description_translations[locale] %>
<div>
<div class="help-block" style="display: none;"><%= simple_format(t("recruitment.internship_description_example")) %></div>
<a class="hint-btn" href=""><%= t("recruitment.example") %></a>
</div>
</div> </div>
</div> </div>
<% end %> <% end %>
@ -42,7 +50,7 @@
<%= f.fields_for :other_conditions_translations do |fe| %> <%= f.fields_for :other_conditions_translations do |fe| %>
<div class="form-group"> <div class="form-group">
<%= fe.label locale, t("recruitment.internship_conditions"), :class => "col-sm-2 control-label" %> <%= fe.label locale, t("recruitment.internship_conditions"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5"> <div class="col-sm-6">
<%= fe.text_area locale, :rows=>5, :class => "form-control", :value => @job.other_conditions_translations[locale] %> <%= fe.text_area locale, :rows=>5, :class => "form-control", :value => @job.other_conditions_translations[locale] %>
</div> </div>
</div> </div>
@ -69,8 +77,12 @@
<div class="col-sm-1"> <div class="col-sm-1">
<label for="recruitment_job_internship_duration"> <label for="recruitment_job_internship_duration">
<%= f.number_field :internship_duration, :class => "form-control", :max => 36, :min => 1 %> <%= f.number_field :internship_duration, :class => "form-control", :max => 36, :min => 1 %>
<%= t("recruitment.months") %> <%= t("recruitment.months") %>
</label> </label>
<div>
<div class="help-block" style="display: none;"><%= simple_format(t("recruitment.internship_duration_example")) %></div>
<a class="hint-btn" href=""><%= t("recruitment.example") %></a>
</div>
</div> </div>
</div> </div>
@ -93,7 +105,7 @@
<!-- Job Category --> <!-- Job Category -->
<div class="form-group"> <div class="form-group">
<%= f.label :category, t("recruitment.category"), :class => "col-sm-2 control-label" %> <%= f.label :category, t("recruitment.category"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5"> <div class="col-sm-6">
<%= f.select :category, RecruitmentCategory.all.asc(:job_category).collect{|rc| [rc.job_category,rc.id.to_s]}, {:include_blank => "Select Category"},{:class => "form-control"} %> <%= 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> </div>
</div> </div>
@ -128,7 +140,7 @@
<div class="form-group"> <div class="form-group">
<%= f.label :location_of_work, t("recruitment.location"), :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"> <div class="col-sm-6">
<%= f.text_field :location_of_work, :class => "form-control"%> <%= f.text_field :location_of_work, :class => "form-control"%>
</div> </div>
</div> </div>
@ -137,7 +149,7 @@
<div class="form-group"> <div class="form-group">
<%= f.label :industrial_area, t("recruitment.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"> <div class="col-sm-6">
<%= f.text_field :industrial_area, :class => "form-control"%> <%= f.text_field :industrial_area, :class => "form-control"%>
</div> </div>
</div> </div>
@ -196,8 +208,11 @@
<%= f.radio_button :joining_time, "type2" %> <%= t("recruitment.joining_time.type2") %> <%= f.radio_button :joining_time, "type2" %> <%= t("recruitment.joining_time.type2") %>
</label> </label>
</div> </div>
<div>
<div class="help-block" style="display: none;"><%= simple_format(t("recruitment.joining_time_example")) %></div>
<a class="hint-btn" href=""><%= t("recruitment.example") %></a>
</div>
</div> </div>
<hr> <hr>
<!-- Work Type --> <!-- Work Type -->
<!-- <div class="form-group"> <!-- <div class="form-group">
@ -238,7 +253,7 @@
<!-- Academic Type --> <!-- Academic Type -->
<div class="form-group"> <div class="form-group">
<%= f.label :academic_type, t("recruitment.academic_type_title"), :class => "col-sm-2 control-label" %> <%= f.label :academic_type, t("recruitment.academic_type_title"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5"> <div class="col-sm-6">
<%= f.select :academic_type, @academic_types, {:include_blank => "Select Degree"},{:class => "form-control"} %> <%= f.select :academic_type, @academic_types, {:include_blank => "Select Degree"},{:class => "form-control"} %>
</div> </div>
</div> </div>
@ -246,7 +261,7 @@
<!-- Academic Req --> <!-- Academic Req -->
<div class="form-group"> <div class="form-group">
<%= f.label :academic_requirement, t("recruitment.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"> <div class="col-sm-6">
<%= f.text_area :academic_requirement, :class => "form-control"%> <%= f.text_area :academic_requirement, :class => "form-control"%>
</div> </div>
</div> </div>
@ -254,7 +269,7 @@
<!-- Language Req --> <!-- Language Req -->
<div class="form-group"> <div class="form-group">
<%= f.label :language_requirement, t("recruitment.language"), :class => "col-sm-2 control-label" %> <%= f.label :language_requirement, t("recruitment.language"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5"> <div class="col-sm-6">
<%= f.text_field :language_requirement, :class => "form-control", :placeholder => t("recruitment.seperate_with_eng") %> <%= f.text_field :language_requirement, :class => "form-control", :placeholder => t("recruitment.seperate_with_eng") %>
</div> </div>
</div> </div>
@ -262,8 +277,12 @@
<!-- Tools Req --> <!-- Tools Req -->
<div class="form-group"> <div class="form-group">
<%= f.label :tools_requirement, t("recruitment.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"> <div class="col-sm-6">
<%= f.text_field :skills, :class => "form-control", :placeholder => t("recruitment.seperate_with_word"), :value => @job.skills.join(", ") %> <%= f.text_field :skills, :class => "form-control", :placeholder => t("recruitment.seperate_with_word"), :value => @job.skills.join(", ") %>
<div>
<div class="help-block" style="display: none;"><%= simple_format(t("recruitment.skills_example")) %></div>
<a class="hint-btn" href=""><%= t("recruitment.example") %></a>
</div>
</div> </div>
</div> </div>
@ -276,7 +295,7 @@
</div> </div>
</div> </div>
<%= render :partial => "example_box" %>
<script type="text/javascript"> <script type="text/javascript">
$("#recruitment_job_holiday_system_type2").on("click",function(){ $("#recruitment_job_holiday_system_type2").on("click",function(){
if($(this).is(":checked")){ if($(this).is(":checked")){

View File

@ -23,12 +23,12 @@
<%= f.fields_for :job_title_translations do |fe| %> <%= f.fields_for :job_title_translations do |fe| %>
<div class="form-group"> <div class="form-group">
<%= fe.label locale, t("recruitment.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"> <div class="col-sm-6">
<%= fe.text_field locale, :class => "form-control", :value => @job.job_title_translations[locale] %> <%= fe.text_field locale, :class => "form-control", :value => @job.job_title_translations[locale] %>
</div> <div>
<div> <div class="help-block" style="display: none;"><%= simple_format(t("recruitment.job_title_example")) %></div>
<p class="help-block"><%= t("recruitment.job_description_example") %></p> <a class="hint-btn" href=""><%= t("recruitment.example") %></a>
<a class="hint-btn" href=""><%= t("recruitment.example") %></a> </div>
</div> </div>
</div> </div>
<% end %> <% end %>
@ -36,8 +36,12 @@
<%= f.fields_for :job_description_translations do |fe| %> <%= f.fields_for :job_description_translations do |fe| %>
<div class="form-group"> <div class="form-group">
<%= fe.label locale, t("recruitment.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"> <div class="col-sm-6">
<%= fe.text_area locale, :rows=>5, :class => "form-control", :value => @job.job_description_translations[locale] %> <%= fe.text_area locale, :rows=>5, :class => "form-control", :value => @job.job_description_translations[locale] %>
<div>
<div class="help-block" style="display: none;"><%= simple_format(t("recruitment.job_description_example")) %></div>
<a class="hint-btn" href=""><%= t("recruitment.example") %></a>
</div>
</div> </div>
</div> </div>
<% end %> <% end %>
@ -46,8 +50,12 @@
<%= f.fields_for :other_conditions_translations do |fe| %> <%= f.fields_for :other_conditions_translations do |fe| %>
<div class="form-group"> <div class="form-group">
<%= fe.label locale, t("recruitment.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"> <div class="col-sm-6">
<%= fe.text_area locale, :rows=>5, :class => "form-control", :value => @job.other_conditions_translations[locale] %> <%= fe.text_area locale, :rows=>5, :class => "form-control", :value => @job.other_conditions_translations[locale] %>
<div>
<div class="help-block" style="display: none;"><%= simple_format(t("recruitment.job_conditions_example")) %></div>
<a class="hint-btn" href=""><%= t("recruitment.example") %></a>
</div>
</div> </div>
</div> </div>
<% end %> <% end %>
@ -58,7 +66,7 @@
<!-- Job Category --> <!-- Job Category -->
<div class="form-group"> <div class="form-group">
<%= f.label :category, t("recruitment.category"), :class => "col-sm-2 control-label" %> <%= f.label :category, t("recruitment.category"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5"> <div class="col-sm-6">
<%= f.select :category, RecruitmentCategory.all.asc(:job_category).collect{|rc| [rc.job_category,rc.id.to_s]}, {:include_blank => "Select Category"},{:class => "form-control"} %> <%= 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> </div>
</div> </div>
@ -93,8 +101,12 @@
<div class="form-group"> <div class="form-group">
<%= f.label :location_of_work, t("recruitment.location"), :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"> <div class="col-sm-6">
<%= f.text_field :location_of_work, :class => "form-control"%> <%= f.text_field :location_of_work, :class => "form-control"%>
<div>
<div class="help-block" style="display: none;"><%= simple_format(t("recruitment.location_example")) %></div>
<a class="hint-btn" href=""><%= t("recruitment.example") %></a>
</div>
</div> </div>
</div> </div>
@ -102,8 +114,12 @@
<div class="form-group"> <div class="form-group">
<%= f.label :industrial_area, t("recruitment.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"> <div class="col-sm-6">
<%= f.text_field :industrial_area, :class => "form-control"%> <%= f.text_field :industrial_area, :class => "form-control"%>
<div>
<div class="help-block" style="display: none;"><%= simple_format(t("recruitment.industrial_area_example")) %></div>
<a class="hint-btn" href=""><%= t("recruitment.example") %></a>
</div>
</div> </div>
</div> </div>
@ -160,6 +176,10 @@
<label for="recruitment_job_joining_time_type2" class="control-label radio-label"> <label for="recruitment_job_joining_time_type2" class="control-label radio-label">
<%= f.radio_button :joining_time, "type2" %> <%= t("recruitment.joining_time.type2") %> <%= f.radio_button :joining_time, "type2" %> <%= t("recruitment.joining_time.type2") %>
</label> </label>
<div>
<div class="help-block" style="display: none;"><%= simple_format(t("recruitment.joining_time_example")) %></div>
<a class="hint-btn" href=""><%= t("recruitment.example") %></a>
</div>
</div> </div>
</div> </div>
@ -203,7 +223,7 @@
<!-- Academic Type --> <!-- Academic Type -->
<div class="form-group"> <div class="form-group">
<%= f.label :academic_type, t("recruitment.academic_type_title"), :class => "col-sm-2 control-label" %> <%= f.label :academic_type, t("recruitment.academic_type_title"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5"> <div class="col-sm-6">
<%= f.select :academic_type, @academic_types, {:include_blank => "Select Degree"},{:class => "form-control"} %> <%= f.select :academic_type, @academic_types, {:include_blank => "Select Degree"},{:class => "form-control"} %>
</div> </div>
</div> </div>
@ -211,7 +231,7 @@
<!-- Academic Req --> <!-- Academic Req -->
<div class="form-group"> <div class="form-group">
<%= f.label :academic_requirement, t("recruitment.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"> <div class="col-sm-6">
<%= f.text_area :academic_requirement, :class => "form-control"%> <%= f.text_area :academic_requirement, :class => "form-control"%>
</div> </div>
</div> </div>
@ -219,7 +239,7 @@
<!-- Language Req --> <!-- Language Req -->
<div class="form-group"> <div class="form-group">
<%= f.label :language_requirement, t("recruitment.language"), :class => "col-sm-2 control-label" %> <%= f.label :language_requirement, t("recruitment.language"), :class => "col-sm-2 control-label" %>
<div class="col-sm-5"> <div class="col-sm-6">
<%= f.text_field :language_requirement, :class => "form-control", :placeholder => t("recruitment.seperate_with_eng") %> <%= f.text_field :language_requirement, :class => "form-control", :placeholder => t("recruitment.seperate_with_eng") %>
</div> </div>
</div> </div>
@ -227,8 +247,12 @@
<!-- Tools Req --> <!-- Tools Req -->
<div class="form-group"> <div class="form-group">
<%= f.label :tools_requirement, t("recruitment.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"> <div class="col-sm-6">
<%= f.text_field :skills, :class => "form-control", :placeholder => t("recruitment.seperate_with_word"), :value => @job.skills.join(", ") %> <%= f.text_field :skills, :class => "form-control", :placeholder => t("recruitment.seperate_with_word"), :value => @job.skills.join(", ") %>
<div>
<div class="help-block" style="display: none;"><%= simple_format(t("recruitment.skills_example")) %></div>
<a class="hint-btn" href=""><%= t("recruitment.example") %></a>
</div>
</div> </div>
</div> </div>
@ -241,7 +265,7 @@
</div> </div>
</div> </div>
<%= render :partial => "example_box" %>
<script type="text/javascript"> <script type="text/javascript">
$("#recruitment_job_holiday_system_type2").on("click",function(){ $("#recruitment_job_holiday_system_type2").on("click",function(){
if($(this).is(":checked")){ if($(this).is(":checked")){

View File

@ -0,0 +1,28 @@
<div id="dashboard-wrapper">
<%= render :partial => "dashboard_header" %>
<h3 class="header-title"><%= t("recruitment.account_settings") %></h3>
<hr>
<% if params[:err] == "1" %>
<div class="alert alert-danger"><%= t("recruitment.pass_confirm_pass_do_not_match") %></div>
<% end %>
<form class="form-horizontal" action="/recruit/update_settings" method="post">
<div class="form-group">
<label for="password" class="col-sm-2 control-label"><%= t("pseudo_members.password") %></label>
<div class="col-sm-4">
<input type="password" class="form-control" name="password" id="password">
</div>
</div>
<div class="form-group">
<label for="password_confirmation" class="col-sm-2 control-label"><%= t("pseudo_members.password_confirmation") %></label>
<div class="col-sm-4">
<input type="password" class="form-control" name="password_confirmation" id="password_confirmation">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-8">
<input type="hidden" name="authenticity_token" value="<%= form_authenticity_token %>">
<input type="submit" value="<%= t("save") %>" class="btn btn-primary">
</div>
</div>
</form>
</div>

View File

@ -16,26 +16,26 @@
<label for="experience" class="col-sm-3 control-label"><%= t("recruitment.experience_title") %></label> <label for="experience" class="col-sm-3 control-label"><%= t("recruitment.experience_title") %></label>
<div class="col-sm-9"> <div class="col-sm-9">
<input type="number" max="50" min="0" name="exp" class="form-control" id="experience" > <input type="number" max="50" min="0" name="exp" class="form-control" id="experience" >
<div class="hint">Please input 0 for freshers.</div> <div class="hint"><%= t("recruitment.input_zero_freshers") %></div>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="industry" class="col-sm-3 control-label"><%= t("recruitment.industries") %></label> <label for="industry" class="col-sm-3 control-label"><%= t("recruitment.industries") %></label>
<div class="col-sm-9"> <div class="col-sm-9">
<%= select_tag "industry", options_for_select(@industries), :prompt => "Please Select", :class => "form-control" %> <%= select_tag "industry", options_for_select(@industries), :prompt => t("recruitment.please_select"), :class => "form-control" %>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="category" class="col-sm-3 control-label"><%= t("recruitment.categories") %></label> <label for="category" class="col-sm-3 control-label"><%= t("recruitment.categories") %></label>
<div class="col-sm-9"> <div class="col-sm-9">
<%= select_tag "category", options_for_select(@categories), :prompt => "Please Select", :class => "form-control" %> <%= select_tag "category", options_for_select(@categories), :prompt => t("recruitment.please_select"), :class => "form-control" %>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="location" class="col-sm-3 control-label"><%= t("recruitment.location") %></label> <label for="location" class="col-sm-3 control-label"><%= t("recruitment.location") %></label>
<div class="col-sm-9"> <div class="col-sm-9">
<%= select_tag "location", options_for_select(@locations), :prompt => "Please Select", :class => "form-control" %> <%= select_tag "location", options_for_select(@locations), :prompt => t("recruitment.please_select"), :class => "form-control" %>
</div> </div>
</div> </div>
<input type="hidden" name="type" value="aq"> <input type="hidden" name="type" value="aq">

View File

@ -8,7 +8,7 @@
<div class="modal-content"> <div class="modal-content">
<div class="ajax-content"><div style="margin-top:15px; text-align: center;">Loading...</div></div> <div class="ajax-content"><div style="margin-top:15px; text-align: center;">Loading...</div></div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button> <button type="button" class="btn btn-default" data-dismiss="modal"><%= t("close") %></button>
<button type="button" class="btn btn-primary" id="searchBtn"><i class="fa fa-search" aria-hidden="true"></i> <%= t("recruitment.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> </div>

View File

@ -12,13 +12,13 @@
<% case data["type"] <% case data["type"]
when "jobs", "internships", "exchanges" %> when "jobs", "internships", "exchanges" %>
<style type="text/css"> <style type="text/css">
#applyForm .modal-dialog{ #applyForm .modal-dialog{
z-index: 1100; z-index: 1100;
} }
#applicationform{ #applicationform{
padding: 10px; padding: 10px;
} }
</style> </style>
<!-- Modal --> <!-- Modal -->
<div class="modal fade" id="applyForm" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div class="modal fade" id="applyForm" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
@ -31,17 +31,17 @@
<div class="modal-body"> <div class="modal-body">
<form id="applicationform" action="/recruit/applyjob" method="post" class="form-horizontal"> <form id="applicationform" action="/recruit/applyjob" method="post" class="form-horizontal">
<div class="form-group adv-search-bar"> <div class="form-group adv-search-bar">
<label for="cover-letter">Please write a cover letter</label> <label for="cover-letter"><%= t("recruitment.please_write_cover_letter") %></label>
<textarea id="cover-letter" placeholder="Cover Letter" name="cover_letter" rows="5" class="form-control"></textarea> <textarea id="cover-letter" placeholder="Cover Letter" name="cover_letter" rows="5" class="form-control"></textarea>
<div class="alert alert-warning">Your CV and Rest of your profile will be sent along with it.</div> <div class="alert alert-warning"><%= t("recruitment.cv_sent_along") %></div>
</div> </div>
<input type="hidden" name="job_id" id="jobid" value=""> <input type="hidden" name="job_id" id="jobid" value="">
<input type="hidden" name="authenticity_token" value="<%= form_authenticity_token %>"> <input type="hidden" name="authenticity_token" value="<%= form_authenticity_token %>">
</form> </form>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button> <button type="button" class="btn btn-default" data-dismiss="modal"><%= t("close") %></button>
<button type="button" class="btn btn-primary" id="applyBtn">Apply</button> <button type="button" class="btn btn-primary" id="applyBtn"><%= t("recruitment.apply") %></button>
</div> </div>
</div> </div>
</div> </div>

View File

@ -6,8 +6,50 @@ en:
module_name: module_name:
recruitment: Recruitment recruitment: Recruitment
recruitment: recruitment:
example: Exmaple apply: Apply
job_title_example: For Example Executive, Manager, Supervisor etc. already_applied: Already Applied
input_zero_freshers: Please input 0 for freshers.
please_select: Please Select
please_write_cover_letter: Please write a cover letter
cv_sent_along: Your CV and Rest of your profile will be sent along with it.
pass_confirm_pass_do_not_match: Password and confirm password do not match.
account_settings: Account Settings
example: Example
logout: Logout
job_title_example: Executive, Manager, Supervisor etc.
job_description_example: "Job Description for Marketing Executive\n
&nbsp;&nbsp;&nbsp; a. Overseeing and developing marketing campaigns.\n
&nbsp;&nbsp;&nbsp; b. Conducting research and analysing data to identify and define audiences.\n
&nbsp;&nbsp;&nbsp; c. Managing campaigns on social media.\n
&nbsp;&nbsp;&nbsp; d. Devising and presenting ideas and strategies."
job_conditions_example: "a. Fringe Benefit Tax\n
b. Expatriate allowances such as housing allowance, three to five weeks paid vacation, healthcare coverage etc."
location_example: Please enter location of your workplace Example Delhi, Mumbai. Calcutta etc.
industrial_area_example: Please mention Industrial estate i.e area zoned and planned for the purpose of Industrial development.
joining_time_example: Please mention the tenure for the candidate to join the company.
internship_title_example: Intern - Marketing, Intern - Sales etc.
internship_description_example: "a. Backend Web Development.\n
b. Work on REST APIs.\n
c. Work using MEAN stack.\n
d. Server handling and website hosting.\n
e. Writing well designed, testable, efficient code by using best software development practices.\n
f. Creating website layout/user interface by using standard HTML/CSS practices.\n
g. Integrating data from various back-end services and databases.\n
h. Gathering and refining specifications and requirements based on technical needs.\n
i. Creating and maintaining software documentation.\n
j. Maintaining, expanding, and scaling our website.\n
k. Staying plugged into emerging technologies/industry trends and applying them to operations and activities."
internship_duration_example: Please mention the the duration for which you want to hire an intern.
skills_example: "Exceptional communication skills.\n
A very flexible self starter.\n
Meticulous attention to detail, a perfectionist."
exchange_description_example: "Please enter course description and other details."
exchange_information_example: "Documents needed:\n
&nbsp;&nbsp;&nbsp; a. Official transcript.\n
&nbsp;&nbsp;&nbsp; b. Passport-sized photograph.\n
&nbsp;&nbsp;&nbsp; c. One-page statement of purpose (in Chinese or English).\n
&nbsp;&nbsp;&nbsp; d. Photocopy of your non-Taiwanese passport.\n
&nbsp;&nbsp;&nbsp; e. Medical and Accident insurance proof."
total_internship_postings: Total Internship Postings total_internship_postings: Total Internship Postings
total_exchange_postings: Total Exchange Postings total_exchange_postings: Total Exchange Postings
total_employees: Total Employees total_employees: Total Employees

View File

@ -4,17 +4,54 @@ zh_tw:
postings: 張貼資訊 postings: 張貼資訊
industries: 行業 industries: 行業
categories: 工作類別 categories: 工作類別
members: 成員
module_name: module_name:
recruitment: 招募 recruitment: 招募
recruitment: recruitment:
example: Exmaple apply: Apply
job_title_example: For Example Executive, Manager, Supervisor etc. already_applied: Already Applied
job_description_example: "For Example: Job Description for Marketing Executive input_zero_freshers: Please input 0 for freshers.
a. Overseeing and developing marketing campaigns please_select: Please Select
b. Conducting research and analysing data to identify and define audiences. please_write_cover_letter: Please write a cover letter
c. Managing campaigns on social media cv_sent_along: Your CV and Rest of your profile will be sent along with it.
d. Devising and presenting ideas and strategies" pass_confirm_pass_do_not_match: Password and confirm password do not match.
account_settings: Account Settings
example:
logout: 登出
job_title_example: Executive, Manager, Supervisor etc.
job_description_example: "Job Description for Marketing Executive\n
&nbsp;&nbsp;&nbsp; a. Overseeing and developing marketing campaigns.\n
&nbsp;&nbsp;&nbsp; b. Conducting research and analysing data to identify and define audiences.\n
&nbsp;&nbsp;&nbsp; c. Managing campaigns on social media.\n
&nbsp;&nbsp;&nbsp; d. Devising and presenting ideas and strategies."
job_conditions_example: "a. Fringe Benefit Tax\n
b. Expatriate allowances such as housing allowance, three to five weeks paid vacation, healthcare coverage etc."
location_example: Please enter location of your workplace Example Delhi, Mumbai. Calcutta etc.
industrial_area_example: Please mention Industrial estate i.e area zoned and planned for the purpose of Industrial development.
joining_time_example: Please mention the tenure for the candidate to join the company.
internship_title_example: Intern - Marketing, Intern - Sales etc.
internship_description_example: "a. Backend Web Development.\n
b. Work on REST APIs.\n
c. Work using MEAN stack.\n
d. Server handling and website hosting.\n
e. Writing well designed, testable, efficient code by using best software development practices.\n
f. Creating website layout/user interface by using standard HTML/CSS practices.\n
g. Integrating data from various back-end services and databases.\n
h. Gathering and refining specifications and requirements based on technical needs.\n
i. Creating and maintaining software documentation.\n
j. Maintaining, expanding, and scaling our website.\n
k. Staying plugged into emerging technologies/industry trends and applying them to operations and activities."
internship_duration_example: Please mention the the duration for which you want to hire an intern.
skills_example: "Exceptional communication skills.\n
A very flexible self starter.\n
Meticulous attention to detail, a perfectionist."
exchange_description_example: "Please enter course description and other details."
exchange_information_example: "Documents needed:\n
&nbsp;&nbsp;&nbsp; a. Official transcript.\n
&nbsp;&nbsp;&nbsp; b. Passport-sized photograph.\n
&nbsp;&nbsp;&nbsp; c. One-page statement of purpose (in Chinese or English).\n
&nbsp;&nbsp;&nbsp; d. Photocopy of your non-Taiwanese passport.\n
&nbsp;&nbsp;&nbsp; e. Medical and Accident insurance proof."
total_internship_postings: 全部實習生需求列表 total_internship_postings: 全部實習生需求列表
total_exchange_postings: 全部交換生需求列表 total_exchange_postings: 全部交換生需求列表
total_employees: 所有雇員 total_employees: 所有雇員

View File

@ -70,6 +70,9 @@ Rails.application.routes.draw do
get "/addexchange", to: "recruitments#addexchange" get "/addexchange", to: "recruitments#addexchange"
get "/:id/editexchange", to: "recruitments#editexchange" get "/:id/editexchange", to: "recruitments#editexchange"
get "/account_settings", to: "recruitments#account_settings"
post "/update_settings", to: "recruitments#update_settings"
end end
end end