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

19 lines
920 B
Plaintext

<% if params[:type] == "posting" %>
<h4>
Posting statistics 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>
Registration statistics for the 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>
Positions filled statistics for the 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 %>