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.
14 lines
448 B
Plaintext
14 lines
448 B
Plaintext
<%= render Admin::TableActionsComponent.new(organization, actions: []) do |actions| %>
|
|
<% if can_verify? %>
|
|
<%= actions.action(:verify,
|
|
text: t("admin.organizations.index.verify"),
|
|
method: :put) %>
|
|
<% end %>
|
|
|
|
<% if can_reject? %>
|
|
<%= actions.action(:reject,
|
|
text: t("admin.organizations.index.reject"),
|
|
method: :put) %>
|
|
<% end %>
|
|
<% end %>
|