29 lines
1.3 KiB
Plaintext
29 lines
1.3 KiB
Plaintext
<tr>
|
|
<td>
|
|
<%= casting_call.created_at.strftime('%D') %>
|
|
</td>
|
|
<td>
|
|
<%= casting_call.title %>
|
|
</td>
|
|
<td>
|
|
<%= casting_call.status %>
|
|
</td>
|
|
<td class="text-right">
|
|
<div class="btn-group">
|
|
<%= button_tag t(".actions.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">
|
|
<%= link_to fa_icon("link fw", text: "Copy Audition URL"), casting_call_url(casting_call.token), class: "dropdown-item", data: { behavior: "clipboard" } %>
|
|
<% if policy(casting_call).show? %>
|
|
<%= link_to fa_icon("tasks fw", text: "View"), [casting_call.project, casting_call], class: "dropdown-item", target: '_blank' %>
|
|
<% end %>
|
|
<% if policy(casting_call).edit? %>
|
|
<%= link_to fa_icon("pencil fw", text: "Edit"), [:edit, casting_call.project, casting_call], class: "dropdown-item" %>
|
|
<% end %>
|
|
<% if policy(casting_call).cancel? && !casting_call.cancelled? %>
|
|
<%= link_to fa_icon("ban fw", text: "Cancel"), [:cancel, casting_call.project, casting_call], class: "dropdown-item", method: :post %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|