2018-01-01 13:52:15 +00:00
|
|
|
<table class="table table-striped jobs-table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2018-01-15 12:26:18 +00:00
|
|
|
<th><%= t("recruitment.post_type") %></th>
|
|
|
|
<th><%= t("recruitment.title") %></th>
|
|
|
|
<th><%= t("recruitment.posted_on") %></th>
|
2018-01-07 18:22:57 +00:00
|
|
|
<th><%= t("recruitment.position_filled") %></th>
|
|
|
|
<th><%= t("recruitment.applications") %></th>
|
|
|
|
<th><%= t("recruitment.actions") %></th>
|
2018-01-01 13:52:15 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<% if @jobsposted.blank? %>
|
2018-01-07 18:22:57 +00:00
|
|
|
<tr><td class="no-jobs" colspan="5"><%= t("recruitment.no_jobs_posted") %></td></tr>
|
2018-01-01 13:52:15 +00:00
|
|
|
<% else %>
|
|
|
|
<% @jobsposted.each do |job| %>
|
|
|
|
<tr>
|
2018-01-15 12:26:18 +00:00
|
|
|
<td><%= job.get_post_type_label.html_safe %></td>
|
2018-01-01 13:52:15 +00:00
|
|
|
<td><a href="<%= @page + "/" + job.to_param %>" target="_blank"><%= job.job_title %></a></td>
|
|
|
|
<td><%= job.created_at.strftime("%Y-%m-%d") %></td>
|
|
|
|
<td><%= job.filled ? "Yes" : "No" %></td>
|
2018-01-02 18:30:32 +00:00
|
|
|
<td>
|
|
|
|
<% job_count = job.get_application_count %>
|
|
|
|
<% if job_count > 0 %>
|
2018-01-07 18:22:57 +00:00
|
|
|
<a href="/recruit/<%= job.id.to_s %>/job_applications" class="btn btn-danger"><%= t("recruitment.show_application") %> (<%= job_count %>)</a></td>
|
2018-01-02 18:30:32 +00:00
|
|
|
<% else %>
|
2018-01-07 18:22:57 +00:00
|
|
|
<a href="#" disabled="disabled" class="btn btn-info"><%= t("recruitment.show_application") %></a></td>
|
2018-01-02 18:30:32 +00:00
|
|
|
<% end %>
|
2018-01-01 13:52:15 +00:00
|
|
|
<td>
|
2018-01-07 18:22:57 +00:00
|
|
|
<a href="/recruit/<%= job.id.to_s %>/editjob" class="btn btn-warning"><%= t("recruitment.edit") %></a>
|
2018-01-01 13:52:15 +00:00
|
|
|
<% if !job.filled %>
|
2018-01-07 18:22:57 +00:00
|
|
|
<a href="/recruit/<%= job.id.to_s %>/markfilled" class="btn btn-primary"><%= t("recruitment.mark_filled") %></a>
|
2018-01-01 13:52:15 +00:00
|
|
|
<% else %>
|
2018-01-07 18:22:57 +00:00
|
|
|
<a href="/recruit/<%= job.id.to_s %>/unmarkfilled" class="btn btn-success"><%= t("recruitment.not_filled") %></a>
|
2018-01-01 13:52:15 +00:00
|
|
|
<% end %>
|
2018-01-07 18:22:57 +00:00
|
|
|
<a data-method="delete" href="/recruit/<%= job.id.to_s %>/deletejob" data-confirm="Are you sure?" class="btn btn-danger"><%= t(:delete_) %></a>
|
2018-01-01 13:52:15 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2018-01-15 12:26:18 +00:00
|
|
|
<div class="add-job pull-right">
|
|
|
|
<a href="<%= addjob_path %>" class="btn btn-primary"><%= t("recruitment.add_job") %></a>
|
|
|
|
<a href="<%= addinternship_path %>" class="btn btn-info"><%= t("recruitment.add_internship") %></a>
|
2018-01-01 13:52:15 +00:00
|
|
|
</div>
|