This way it will be easier to change the behavior of all table actions, like adding ARIA attributes. In the past, when we changed the behavior of the `link_to` method, we had to change all table action classes.
17 lines
580 B
Plaintext
17 lines
580 B
Plaintext
<tr id="<%= dom_id(poll) %>" class="poll">
|
|
<td><strong><%= poll.name %></strong></td>
|
|
<td class="text-center"><%= l poll.starts_at.to_date %></td>
|
|
<td class="text-center"><%= l poll.ends_at.to_date %></td>
|
|
<% if feature?(:sdg) %>
|
|
<td class="text-center"><%= poll.sdg_goal_list %></td>
|
|
<td class="text-center"><%= poll.sdg_target_list %></td>
|
|
<% end %>
|
|
<td>
|
|
<%= render Admin::TableActionsComponent.new(poll,
|
|
destroy_confirmation: t("admin.polls.destroy.alert")
|
|
) do |actions| %>
|
|
<%= actions.action(:configure) %>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|