2020-06-03 07:24:01 +02:00
|
|
|
<tr id="<%= dom_id(task_request) %>">
|
|
|
|
|
<td>
|
|
|
|
|
<%= task_request.id %>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<%= task_request.created_at.strftime("%D") %>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<%= task_request.deadline.try(:strftime, '%D') %>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<%= task_request.time_allowed %>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<%= task_request.status.titleize %>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="text-right">
|
|
|
|
|
<div class="btn-group">
|
|
|
|
|
<%= button_tag "Manage", class: "btn btn-light btn-sm dropdown-toggle border", data: { toggle: "dropdown", boundary: "window" }, aria: { haspopup: true, expanded: false } %>
|
|
|
|
|
<div class="dropdown-menu dropdown-menu-right">
|
2020-06-04 15:00:07 +02:00
|
|
|
<%= link_to fa_icon("tasks", text: "View"), [:admin, task_request], class: "dropdown-item", target: '_blank' %>
|
2020-06-03 07:24:01 +02:00
|
|
|
<%= link_to fa_icon("pencil", text: "Edit"), [:edit, :admin, task_request], class: "dropdown-item" %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|