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.
16 lines
522 B
Plaintext
16 lines
522 B
Plaintext
<% default_actions.each do |action| %>
|
|
<tr>
|
|
<td><%= t("admin.dashboard.actions.index.default.#{action}") %></td>
|
|
<td><%= Dashboard::Action.human_attribute_name("action_type_resource") %></td>
|
|
<td class="text-center"><%= t("admin.dashboard.actions.index.active") %></td>
|
|
<td colspan="4"> </td>
|
|
<td>
|
|
<%= render Admin::TableActionsComponent.new(
|
|
action,
|
|
actions: [:edit],
|
|
edit_path: admin_settings_path(anchor: "tab-proposals"),
|
|
) %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|