recruitment/app/views/admin/recruitments/load_chart.html.erb

19 lines
947 B
Plaintext

<% if params[:type] == "posting" %>
<h4>
<%= t("recruitment.posting_for_the_month") %>
<b><i> <%= @startdt.strftime("%B %Y") %></i></b>
</h4>
<%= column_chart @data, ytitle: t("recruitment.number_of_posts"), label: t("recruitment.number_of_posts"), id: "posting_chart" %>
<% elsif params[:type] == "registration" %>
<h4>
<%= t("recruitment.registration_for_month") %>
<b><i> <%= @startdt.strftime("%B %Y") %></i></b>
</h4>
<%= column_chart @data, ytitle: t("recruitment.number_of_registered_users"), label: t("recruitment.number_of_registered_users"), id: "registration_chart", colors: ["#f2096e"] %>
<% elsif params[:type] == "filled" %>
<h4>
<%= t("recruitment.positions_for_month") %>
<b><i> <%= @startdt.strftime("%B %Y") %></i></b>
</h4>
<%= column_chart @data, ytitle: t("recruitment.number_of_positions_filled"), label: t("recruitment.number_of_positions_filled"), id: "filled_chart", colors: ["#aff109"] %>
<% end %>