Skip to content

Commit dba8fef

Browse files
committed
tables: cleanup old action styling
1 parent 44d8aa9 commit dba8fef

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

app/components/shared/index_table_component.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div data-controller="index-table-component" data-index-table-component-per-page-value="<%= per_page %>">
22
<% if searchable %>
33
<div class="mb-4">
4-
<label class="group ui-enter-item input input-bordered w-full focus-within:border-primary focus-within:outline-none"
4+
<label for="search" class="group ui-enter-item input input-bordered w-full focus-within:border-primary focus-within:outline-none"
55
style="--ui-enter-delay: 40ms;">
66
<span class="text-base-content/50 group-focus-within:text-primary transition-colors">
77
<%= render IconComponent.new(icon: "search", size: :sm) %>

app/views/regions/index.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
records: @regions,
1111
actions: lambda { |region|
1212
[
13-
{ icon: "edit", label: t("shared.index_table_component.actions.edit"), path: edit_region_path(region), turbo_stream: true, colour: :info },
14-
{ icon: "delete", label: t("shared.index_table_component.actions.delete"), path: region_path(region), method: :delete, colour: :error, confirm: t("regions.destroy.confirm") }
13+
{ icon: "edit", label: t("shared.index_table_component.actions.edit"), path: edit_region_path(region), turbo_stream: true },
14+
{ icon: "delete", label: t("shared.index_table_component.actions.delete"), path: region_path(region), method: :delete, confirm: t("regions.destroy.confirm") }
1515
]
1616
},
1717
clickable_rows: false

app/views/users/index.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
records: @users,
1111
actions: lambda { |user|
1212
[
13-
{ icon: "edit", label: t("shared.index_table_component.actions.edit"), path: edit_user_path(user), turbo_stream: true, colour: :info },
14-
{ icon: "delete", label: t("shared.index_table_component.actions.delete"), path: user_path(user), method: :delete, colour: :error, confirm: t("users.destroy.confirm") }
13+
{ icon: "edit", label: t("shared.index_table_component.actions.edit"), path: edit_user_path(user), turbo_stream: true },
14+
{ icon: "delete", label: t("shared.index_table_component.actions.delete"), path: user_path(user), method: :delete, confirm: t("users.destroy.confirm") }
1515
]
1616
}
1717
) do |table| %>

0 commit comments

Comments
 (0)