Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Remove unused old-style table partials (#13708)

Damian Legawiec2bd424a84c6b
diff --git a/spree/admin/app/views/spree/admin/customer_returns/_table_header.html.erb b/spree/admin/app/views/spree/admin/customer_returns/_table_header.html.erb
deleted file mode 100644
index b003d6454a..0000000000
--- a/spree/admin/app/views/spree/admin/customer_returns/_table_header.html.erb
+++ /dev/null
@@ -1,8 +0,0 @@
-<tr>
- <th scope="col"><%= Spree.t(:number) %></th>
- <th scope="col"><%= Spree.t(:created_at) %></th>
- <th scope="col"><%= Spree.t(:customer) %></th>
- <th scope="col"><%= Spree.t(:order) %></th>
- <th scope="col"><%= Spree.t(:reimbursement_status) %></th>
- <th scope="col"><%= Spree.t(:pre_tax_total) %></th>
-</tr>
\ No newline at end of file
diff --git a/spree/admin/app/views/spree/admin/customer_returns/_table_row.html.erb b/spree/admin/app/views/spree/admin/customer_returns/_table_row.html.erb
deleted file mode 100644
index 3e646ec864..0000000000
--- a/spree/admin/app/views/spree/admin/customer_returns/_table_row.html.erb
+++ /dev/null
@@ -1,31 +0,0 @@
-<% if customer_return.order.present? %>
- <tr
- id="<%= spree_dom_id customer_return %>"
- data-controller="row-link"
- class="cursor-pointer"
- >
- <td class="font-bold" data-action="click->row-link#openLink">
- <% if can?(:edit, customer_return) %>
- <%= link_to customer_return.number,
- spree.edit_admin_order_customer_return_path( customer_return.order, customer_return),
- data: {
- row_link_target: "link",
- } %>
- <% else %>
- <%= customer_return.number %>
- <% end %>
- </td>
- <td data-action="click->row-link#openLink"><%= spree_time(customer_return.created_at) %></td>
- <td data-action="click->row-link#openLink"><%= render "spree/admin/orders/customer_summary", order: customer_return.order %></td>
- <td data-action="click->row-link#openLink"><%= link_to customer_return.order.number,
- spree.edit_admin_order_path(customer_return.order) %></td>
- <td data-action="click->row-link#openLink">
- <% if customer_return.fully_reimbursed? %>
- <span class="badge badge-success"><%= Spree.t(:reimbursed) %></span>
- <% else %>
- <span class="badge badge-inactive"><%= Spree.t(:incomplete) %></span>
- <% end %>
- </td>
- <td data-action="click->row-link#openLink"><%= customer_return.display_pre_tax_total.to_html %></td>
- </tr>
-<% end %>
diff --git a/spree/admin/app/views/spree/admin/gift_cards/_gift_card.html.erb b/spree/admin/app/views/spree/admin/gift_cards/_gift_card.html.erb
deleted file mode 100644
index 4c16139f6e..0000000000
--- a/spree/admin/app/views/spree/admin/gift_cards/_gift_card.html.erb
+++ /dev/null
@@ -1,28 +0,0 @@
-<% link = @user.present? ? spree.admin_user_gift_card_path(gift_card, user_id: @user.id) : spree.admin_gift_card_path(gift_card) %>
-
-<tr id="<%= spree_dom_id gift_card %>" data-controller="row-link">
- <td class="w-1/4 py-0">
- <%= link_to gift_card.code.upcase, link, class: 'font-bold block w-full h-full py-2', data: { 'turbo-frame': '_top', row_link_target: :link } %>
- </td>
- <td class="w-10 cursor-pointer" data-action="click->row-link#openLink"><%= gift_card.display_amount %></td>
- <td class="w-10 cursor-pointer" data-action="click->row-link#openLink"><%= gift_card.display_amount_used %></td>
- <td class="w-10 cursor-pointer" data-action="click->row-link#openLink"><%= gift_card.currency.upcase %></td>
- <td class="w-10 cursor-pointer" data-action="click->row-link#openLink"><%= active_badge(gift_card.active?, label: gift_card.display_state) %></td>
- <td class="w-10 cursor-pointer" data-action="click->row-link#openLink">
- <% if gift_card.expires_at.present? %>
- <%= spree_date(gift_card.expires_at) %>
- <% else %>
- <span class="text-gray-600">
- <%= Spree.t(:not_available) %>
- </span>
- <% end %></td>
- <td class="w-15 cursor-pointer" data-action="click->row-link#openLink">
- <% if gift_card.user.present? %>
- <%= gift_card.user.email %>
- <% else %>
- <span class="text-gray-600">
- <%= Spree.t(:not_available) %>
- </span>
- <% end %>
- </td>
-</tr>
diff --git a/spree/admin/app/views/spree/admin/gift_cards/_list.html.erb b/spree/admin/app/views/spree/admin/gift_cards/_list.html.erb
deleted file mode 100644
index c53c6e5301..0000000000
--- a/spree/admin/app/views/spree/admin/gift_cards/_list.html.erb
+++ /dev/null
@@ -1,24 +0,0 @@
-<% if @collection.any? %>
- <div class="table-responsive" id="listing_gift_cards">
- <table class="table">
- <thead class="text-gray-600">
- <tr>
- <th scope="col"><%= Spree.t(:code) %></th>
- <th scope="col"><%= Spree.t(:amount) %></th>
- <th scope="col"><%= Spree.t(:used) %></th>
- <th scope="col"><%= Spree.t(:currency) %></th>
- <th scope="col"><%= Spree.t(:status) %></th>
- <th scope="col"><%= Spree.t(:expires_at) %></th>
- <th scope="col"><%= Spree.t(:customer) %></th>
- </tr>
- </thead>
- <tbody>
- <%= render collection: @collection, partial: 'spree/admin/gift_cards/gift_card' %>
- </tbody>
- </table>
- </div>
- <%= render partial: 'spree/admin/shared/index_table_options', locals: { collection: @collection } %>
-<% else %>
- <% new_object_url = @user.present? ? spree.new_admin_user_gift_card_path(@user) : spree.new_admin_gift_card_path %>
- <%= render 'spree/admin/shared/no_resource_found', model_class: Spree::GiftCard, new_object_url: new_object_url %>
-<% end %>
\ No newline at end of file
diff --git a/spree/admin/app/views/spree/admin/metafield_definitions/_table_header.html.erb b/spree/admin/app/views/spree/admin/metafield_definitions/_table_header.html.erb
deleted file mode 100644
index 5bf7aae1f7..0000000000
--- a/spree/admin/app/views/spree/admin/metafield_definitions/_table_header.html.erb
+++ /dev/null
@@ -1,11 +0,0 @@
-<thead>
- <tr>
- <th><%= Spree.t(:key) %></th>
- <th><%= Spree.t(:name) %></th>
- <th><%= Spree.t(:resource) %></th>
- <th><%= Spree.t(:type) %></th>
- <th><%= Spree.t(:display_on) %></th>
- <th><%= Spree.t('admin.metafield_definitions.used_in') %></th>
- <th></th>
- </tr>
-</thead>
\ No newline at end of file
diff --git a/spree/admin/app/views/spree/admin/metafield_definitions/_table_row.html.erb b/spree/admin/app/views/spree/admin/metafield_definitions/_table_row.html.erb
deleted file mode 100644
index 3b3d3ebe46..0000000000
--- a/spree/admin/app/views/spree/admin/metafield_definitions/_table_row.html.erb
+++ /dev/null
@@ -1,22 +0,0 @@
-<tr id="<%= spree_dom_id(metafield_definition) %>">
- <td><code><%= metafield_definition.full_key %></code></td>
- <td><%= metafield_definition.name %></td>
- <td><%= metafield_definition.resource_type.demodulize.titleize %></td>
- <td><span class="badge badge-light"><%= metafield_definition.metafield_type.demodulize.titleize %></span></td>
- <td>
- <%= form_with model: metafield_definition, url: admin_metafield_definition_path(metafield_definition), method: :patch, data: { controller: 'auto-submit' } do |f| %>
- <%= f.select :display_on, display_on_options(Spree::MetafieldDefinition), {}, { class: 'form-select form-select-sm', data: { action: 'auto-submit#submit' } } %>
- <% end %>
- </td>
- <td>
- <% if metafield_definition.metafields.count.positive? %>
- <%= metafield_definition.metafields.count %>
- <%= Spree.t(metafield_definition.resource_type.demodulize.pluralize.to_sym) %>
- <% else %>
- <span class="text-gray-600"><%= Spree.t(:not_available) %></span>
- <% end %>
- </td>
- <td class="text-right">
- <%= link_to_edit(metafield_definition, data: { turbo_frame: '_top' }) %>
- </td>
-</tr>
\ No newline at end of file
diff --git a/spree/admin/app/views/spree/admin/newsletter_subscribers/_table_header.html.erb b/spree/admin/app/views/spree/admin/newsletter_subscribers/_table_header.html.erb
deleted file mode 100644
index 00bcd96346..0000000000
--- a/spree/admin/app/views/spree/admin/newsletter_subscribers/_table_header.html.erb
+++ /dev/null
@@ -1,8 +0,0 @@
-<tr>
- <th scope="col"><%= sort_link @search, :email, Spree.t(:email) %></th>
- <th scope="col"><%= Spree.t(:customer) %></th>
- <th scope="col"><%= Spree.t(:verified) %>?</th>
- <th scope="col"><%= Spree.t(:verified_at) %></th>
- <th scope="col"><%= sort_link @search, :created_at, Spree.t(:created_at) %></th>
- <th scope="col"></th>
-</tr>
\ No newline at end of file
diff --git a/spree/admin/app/views/spree/admin/newsletter_subscribers/_table_row.html.erb b/spree/admin/app/views/spree/admin/newsletter_subscribers/_table_row.html.erb
deleted file mode 100644
index 003adad22d..0000000000
--- a/spree/admin/app/views/spree/admin/newsletter_subscribers/_table_row.html.erb
+++ /dev/null
@@ -1,36 +0,0 @@
-<tr id="<%= spree_dom_id newsletter_subscriber %>">
- <td class="w-30">
- <%= newsletter_subscriber.email %>
- <%= clipboard_component(newsletter_subscriber.email) %>
- </td>
- <td class="w-1/4">
- <% if newsletter_subscriber.user.present? %>
- <%= link_to newsletter_subscriber.user.full_name, spree.admin_user_path(newsletter_subscriber.user) %>
- <% else %>
- <span class="text-gray-600"><%= Spree.t(:not_available) %></span>
- <% end %>
- </td>
- <td class="w-10">
- <%= active_badge(newsletter_subscriber.verified?) %>
- </td>
- <td class="w-15">
- <% if newsletter_subscriber.verified_at.present? %>
- <%= spree_date(newsletter_subscriber.verified_at) %>
- <% else %>
- <span class="text-gray-600"><%= Spree.t(:not_available) %></span>
- <% end %>
- </td>
- <td class="w-15">
- <%= spree_date(newsletter_subscriber.created_at) %>
- </td>
- <td class="w-5">
- <%= dropdown do %>
- <%= dropdown_toggle class: 'btn-light btn-sm' do %>
- <%= icon('dots-vertical', class: 'mr-0') %>
- <% end %>
- <%= dropdown_menu do %>
- <%= link_to_delete(newsletter_subscriber, icon: 'trash', class: 'dropdown-item text-danger') %>
- <% end %>
- <% end %>
- </td>
-</tr>
\ No newline at end of file
diff --git a/spree/admin/app/views/spree/admin/option_types/_table_header.html.erb b/spree/admin/app/views/spree/admin/option_types/_table_header.html.erb
deleted file mode 100644
index 75a7f40a5a..0000000000
--- a/spree/admin/app/views/spree/admin/option_types/_table_header.html.erb
+++ /dev/null
@@ -1,19 +0,0 @@
-<tr>
- <th class="no-border handel-head"></th>
- <th scope="col"><%= Spree.t(:internal_name) %></th>
- <th scope="col">
- <%= Spree.t(:presentation) %>
- <%= help_bubble("How this option is presented to customers") %>
- </th>
- <th scope="col">
- <%= Spree.t(:filterable) %>
- <%= help_bubble("Whether this option can be used in product filters") %>
- </th>
- <th scope="col">
- <%= Spree.t(:option_values) %>
- </th>
- <th scope="col">
- <%= Spree.t(:products) %>
- </th>
- <th scope="col"></th>
-</tr>
\ No newline at end of file
diff --git a/spree/admin/app/views/spree/admin/option_types/_table_row.html.erb b/spree/admin/app/views/spree/admin/option_types/_table_row.html.erb
deleted file mode 100644
index 520885773b..0000000000
--- a/spree/admin/app/views/spree/admin/option_types/_table_row.html.erb
+++ /dev/null
@@ -1,19 +0,0 @@
-<tr id="<%= spree_dom_id option_type %>" data-controller="row-link" data-sortable-update-url="<%= spree.admin_option_type_path(option_type) %>">
- <td class="move-handle text-center w-5">
- <%= icon('grip-vertical', class: 'rounded-md hover:bg-gray-100 p-2') %>
- </td>
- <td class="w-20 cursor-pointer" data-action="click->row-link#openLink"><code><%= option_type.name %></code></td>
- <td class="w-35 cursor-pointer font-bold" data-action="click->row-link#openLink"><%= option_type.presentation %></td>
- <td class="w-10 cursor-pointer" data-action="click->row-link#openLink">
- <%= active_badge(option_type.filterable) %>
- </td>
- <td class="w-10 cursor-pointer" data-action="click->row-link#openLink">
- <%= option_type.option_values.count %>
- </td>
- <td class="w-10 cursor-pointer" data-action="click->row-link#openLink">
- <%= option_type.products.count %>
- </td>
- <td class="w-10 actions cursor-pointer">
- <%= link_to_edit option_type, data: { row_link_target: :link, turbo_frame: '_top' } %>
- </td>
-</tr>
diff --git a/spree/admin/app/views/spree/admin/orders/_list.html.erb b/spree/admin/app/views/spree/admin/orders/_list.html.erb
deleted file mode 100644
index 66f6a63635..0000000000
--- a/spree/admin/app/views/spree/admin/orders/_list.html.erb
+++ /dev/null
@@ -1,28 +0,0 @@
-<% if @collection.any? %>
- <div class="table-responsive">
- <table class="table" id="listing_orders">
- <thead>
- <tr>
- <th scope="col"><%= I18n.t(:number, scope: 'activerecord.attributes.spree/order') %></th>
- <% if controller_name == 'orders' %>
- <th scope="col"><%= sort_link @search, :completed_at, Spree.t(:date) %></th>
- <% else %>
- <th scope="col"><%= sort_link @search, :created_at, Spree.t(:date) %></th>
- <% end %>
- <th class="d-customer"><%= Spree.t(:customer) %></th>
- <th scope="col"><%= Spree.t(:package_from) %></th>
- <th scope="col"><%= I18n.t(:payment_state, scope: 'activerecord.attributes.spree/order') %></th>
- <th scope="col"><%= I18n.t(:shipment_state, scope: 'activerecord.attributes.spree/order') %></th>
- <th class="text-right"><%= sort_link @search, :item_count, I18n.t(:item_count, scope: 'activerecord.attributes.spree/order') %></th>
- <th class="text-right"><%= sort_link @search, :total, I18n.t(:total, scope: 'activerecord.attributes.spree/order') %></th>
- </tr>
- </thead>
- <tbody>
- <%= render collection: @collection, partial: 'spree/admin/orders/order', cached: !(defined?(current_vendor) && current_vendor) ? spree_base_cache_scope : false %>
- </tbody>
- </table>
- </div>
-<% else %>
- <%= render 'spree/admin/shared/no_resource_found', new_object_url: nil, model_class: Spree::Order %>
-<% end %>
-<%= render 'spree/admin/shared/index_table_options', collection: @collection %>
diff --git a/spree/admin/app/views/spree/admin/orders/_order.html.erb b/spree/admin/app/views/spree/admin/orders/_order.html.erb
deleted file mode 100644
index a9107fc248..0000000000
--- a/spree/admin/app/views/spree/admin/orders/_order.html.erb
+++ /dev/null
@@ -1,28 +0,0 @@
-<tr id="<%= dom_id(order) %>" data-controller="row-link">
- <td class="p-0 w-10">
- <%= link_to order.number, spree.edit_admin_order_path(order), class: 'font-bolder block p-2 px-4 no-underline', data: { 'turbo-frame': '_top', row_link_target: :link } %>
- </td>
- <td class="w-15 cursor-pointer" data-action="click->row-link#openLink">
- <%= spree_time_ago(order.completed? ? order.completed_at : order.created_at, format: '%b %e, %Y %l:%M%P') %>
- </td>
- <td class="d-customer w-15 cursor-pointer" data-action="click->row-link#openLink">
- <%= render 'spree/admin/orders/customer_summary', order: order %>
- </td>
- <td class="whitespace-normal w-20 cursor-pointer" data-action="click->row-link#openLink">
- <% order.shipments.map(&:stock_location).compact.uniq.each_with_index do |stock_location, index| %>
- <% if index > 0 %>, <% end %><%= stock_location.name %>
- <% end %>
- </td>
- <td class="w-10 cursor-pointer" data-action="click->row-link#openLink">
- <%= order_payment_state(order) %>
- </td>
- <td class="w-10 cursor-pointer" data-action="click->row-link#openLink">
- <%= order_shipment_state(order) %>
- </td>
- <td class="text-right w-10 cursor-pointer" data-action="click->row-link#openLink">
- <%= pluralize(order.item_count, 'item') %>
- </td>
- <td class="text-right w-10 cursor-pointer" data-action="click->row-link#openLink">
- <%= order.display_total.to_html %>
- </td>
-</tr>
diff --git a/spree/admin/app/views/spree/admin/policies/_table_header.html.erb b/spree/admin/app/views/spree/admin/policies/_table_header.html.erb
deleted file mode 100644
index 300e0ebfbe..0000000000
--- a/spree/admin/app/views/spree/admin/policies/_table_header.html.erb
+++ /dev/null
@@ -1,8 +0,0 @@
-<tr>
- <th scope="col"><%= Spree.t(:name) %></th>
- <th scope="col"><%= Spree.t(:slug) %></th>
- <th scope="col"><%= Spree.t(:filled) %></th>
- <th scope="col"><%= Spree.t(:updated_at) %></th>
- <th scope="col"><%= I18n.t('activerecord.attributes.spree/policy.owner') %></th>
- <th scope="col"></th>
-</tr>
\ No newline at end of file
diff --git a/spree/admin/app/views/spree/admin/policies/_table_row.html.erb b/spree/admin/app/views/spree/admin/policies/_table_row.html.erb
deleted file mode 100644
index c695517205..0000000000
--- a/spree/admin/app/views/spree/admin/policies/_table_row.html.erb
+++ /dev/null
@@ -1,20 +0,0 @@
-<tr id="<%= spree_dom_id policy %>" data-controller="row-link">
- <td class="w-30 cursor-pointer" data-action="click->row-link#openLink">
- <%= link_to policy.name, spree.edit_admin_policy_path(policy.id), class: 'no-underline flex items-center font-bold text-gray-900', data: { row_link_target: :link, turbo_frame: '_top' } %>
- </td>
- <td class="w-1/4 cursor-pointer" data-action="click->row-link#openLink">
- <code><%= policy.slug %></code>
- </td>
- <td class="w-10 cursor-pointer" data-action="click->row-link#openLink">
- <%= active_badge(policy.with_body?) %>
- </td>
- <td class="w-10 cursor-pointer" data-action="click->row-link#openLink">
- <%= spree_time(policy.updated_at) %>
- </td>
- <td class="w-15 cursor-pointer" data-action="click->row-link#openLink">
- <%= policy.owner.name %>
- </td>
- <td class="w-10 actions">
- <%= link_to_edit(policy, url: spree.edit_admin_policy_path(policy.id), class: 'btn btn-light btn-sm', data: { turbo_frame: '_top' }) if can?(:edit, policy) %>
- </td>
-</tr>
\ No newline at end of file
diff --git a/spree/admin/app/views/spree/admin/price_lists/_table_header.html.erb b/spree/admin/app/views/spree/admin/price_lists/_table_header.html.erb
deleted file mode 100644
index 979bc51cb6..0000000000
--- a/spree/admin/app/views/spree/admin/price_lists/_table_header.html.erb
+++ /dev/null
@@ -1,7 +0,0 @@
-<tr>
- <th class="no-border handel-head"></th>
- <th scope="col"><%= sort_link @search, :name, Spree.t(:name) %></th>
- <th scope="col"><%= Spree.t(:status) %></th>
- <th scope="col"><%= Spree.t(:starts_at) %></th>
- <th scope="col"><%= Spree.t(:ends_at) %></th>
-</tr>
diff --git a/spree/admin/app/views/spree/admin/products/_list.html.erb b/spree/admin/app/views/spree/admin/products/_list.html.erb
deleted file mode 100644
index a83e68716b..0000000000
--- a/spree/admin/app/views/spree/admin/products/_list.html.erb
+++ /dev/null
@@ -1,47 +0,0 @@
- <% if @collection.any? %>
- <div data-controller="bulk-operation bulk-dialog" data-action="keydown.esc->bulk-operation#cancel" tabindex="0">
- <%= form_tag spree.admin_products_path, method: :put, data: { 'bulk-operation-target': 'form' } do %>
- <%= render 'spree/admin/shared/bulk_modal' %>
- <%= render 'spree/admin/products/bulk_operations' %>
-
- <div class="table-responsive">
- <table class="table" id="listing_products">
- <thead>
- <tr>
- <th scope="col" class="pr-0 w-5">
- <%= bulk_operations_select_all_checkbox %>
- </th>
- <th scope="col">
- <%= sort_link @search,
- :name,
- Spree.t(:name),
- {
- default_order: "desc",
- title: "admin_products_listing_name_title"
- }
- %>
- </th>
- <th scope="col" class="text-center">
- <%= Spree.t(:status) %>
- <%= help_bubble(Spree.t("admin.products.help_bubble")) %>
- </th>
- <th scope="col"><%= Spree.t(:inventory) %></th>
- <% if defined?(current_vendor) %>
- <th scope="col" class="d-vendor"><%= Spree.t(:vendor) %></th>
- <% end %>
- <th scope="col"><%= Spree.t(:price) %></th>
-
- <%= render_admin_partials(:products_table_header_partials) %>
- </tr>
- </thead>
- <tbody>
- <%= render partial: 'spree/admin/products/product', collection: @collection, cached: spree_base_cache_scope %>
- </tbody>
- </table>
- </div>
- <% end %>
- </div>
- <%= render partial: 'spree/admin/shared/index_table_options', locals: { collection: @collection } %>
- <% else %>
- <%= render 'spree/admin/shared/no_resource_found' %>
- <% end %>
diff --git a/spree/admin/app/views/spree/admin/products/_product.html.erb b/spree/admin/app/views/spree/admin/products/_product.html.erb
deleted file mode 100644
index ece44d0d6f..0000000000
--- a/spree/admin/app/views/spree/admin/products/_product.html.erb
+++ /dev/null
@@ -1,29 +0,0 @@
-<tr id="<%= dom_id product %>" data-controller="row-link">
- <td class="pr-0 w-5">
- <%= bulk_operations_checkbox(product) %>
- </td>
- <td scope="row" class="w-40 py-0 whitespace-normal" data-action="click->row-link#openLink">
- <%= link_to spree.edit_admin_product_path(product), class: 'flex items-center w-full no-underline h-full py-2', data: { row_link_target: :link, 'turbo-frame': '_top' } do %>
- <div class="mr-6">
- <%= render 'spree/admin/shared/product_image', object: product %>
- </div>
- <span class="text-gray-900 font-medium">
- <%= product.name %>
- </span>
- <% end %>
- </td>
- <%= render 'spree/admin/products/product_status', product: product %>
- <td class="w-20 cursor-pointer whitespace-normal" data-action="click->row-link#openLink">
- <%= display_inventory(product) %>
- </td>
- <% if defined?(current_vendor) %>
- <td class="d-vendor w-15 cursor-pointer" data-action="click->row-link#openLink">
- <%= product.vendor&.name %>
- </td>
- <% end %>
- <td class="w-10 cursor-pointer" data-action="click->row-link#openLink">
- <%= display_admin_price(product) %>
- </td>
-
- <%= render_admin_partials(:products_table_row_partials, product: product) %>
-</tr>
diff --git a/spree/admin/app/views/spree/admin/products/_product_status.html.erb b/spree/admin/app/views/spree/admin/products/_product_status.html.erb
deleted file mode 100644
index 1b3b4f5bfd..0000000000
--- a/spree/admin/app/views/spree/admin/products/_product_status.html.erb
+++ /dev/null
@@ -1,3 +0,0 @@
-<td class="status text-center w-10 cursor-pointer" data-action="click->row-link#openLink" id="<%= dom_id(product, :status) %>">
- <%= product_status(product) %>
-</td>
\ No newline at end of file
diff --git a/spree/admin/app/views/spree/admin/promotions/_table_header.html.erb b/spree/admin/app/views/spree/admin/promotions/_table_header.html.erb
deleted file mode 100644
index e1d93e0d6a..0000000000
--- a/spree/admin/app/views/spree/admin/promotions/_table_header.html.erb
+++ /dev/null
@@ -1,7 +0,0 @@
-<tr>
- <th scope="col"><%= sort_link @search, :name, Spree.t(:name) %></th>
- <th scope="col"><%= Spree.t(:code) %></th>
- <th scope="col"><%= Spree.t(:kind) %></th>
- <th scope="col"><%= Spree.t(:usage_limit) %></th>
- <th scope="col"><%= Spree.t(:status) %></th>
-</tr>
\ No newline at end of file
diff --git a/spree/admin/app/views/spree/admin/promotions/_table_row.html.erb b/spree/admin/app/views/spree/admin/promotions/_table_row.html.erb
deleted file mode 100644
index 8737e09766..0000000000
--- a/spree/admin/app/views/spree/admin/promotions/_table_row.html.erb
+++ /dev/null
@@ -1,31 +0,0 @@
-<tr id="<%= spree_dom_id promotion %>" data-controller="row-link">
- <td class="w-30 p-0">
- <%= link_to promotion.name, spree.admin_promotion_path(promotion), class: 'font-bold block py-2 px-4 w-full h-full', data: { row_link_target: :link, turbo_frame: '_top' } %>
- </td>
- <td class="w-20 cursor-pointer" data-action="click->row-link#openLink">
- <% if promotion.coupon_code? && promotion.code.present? %>
- <code><%= promotion.code.upcase %></code>
- <% elsif promotion.multi_codes? && promotion.code_prefix.present? %>
- <code><%= promotion.code_prefix %>-<%= '*' * 6 %></code>
- <% else %>
- <span class="text-gray-600 small"><%= Spree.t(:not_available) %></span>
- <% end %>
- </td>
- </td>
- <td class="w-10 cursor-pointer" data-action="click->row-link#openLink">
- <span class="badge badge-<% if promotion.automatic? %>info<% else %>light<% end %>">
- <% if promotion.automatic? %>
- <%= icon('automation', class: 'mr-2') %>
- <% else %>
- <%= icon('ticket', class: 'mr-2') %>
- <% end %>
- <%= promotion.kind.humanize %>
- </span>
- </td>
- <td class="w-10 cursor-pointer" data-action="click->row-link#openLink">
- <%= render 'spree/admin/promotions/usage_limit', promotion: promotion %>
- </td>
- <td class="w-10 cursor-pointer" data-action="click->row-link#openLink">
- <%= render 'spree/admin/promotions/status', promotion: promotion %>
- </td>
-</tr>
\ No newline at end of file
diff --git a/spree/admin/app/views/spree/admin/return_authorizations/_list.html.erb b/spree/admin/app/views/spree/admin/return_authorizations/_list.html.erb
deleted file mode 100644
index a32f318d68..0000000000
--- a/spree/admin/app/views/spree/admin/return_authorizations/_list.html.erb
+++ /dev/null
@@ -1,21 +0,0 @@
-<% if @collection.any? %>
- <div class="table-responsive">
- <table class="table">
- <thead>
- <tr>
- <th scope="col"><%= Spree.t(:number) %></th>
- <th scope="col"><%= Spree.t(:created_at) %></th>
- <th scope="col"><%= Spree.t(:customer) %></th>
- <th class="text-center w-10"><%= Spree.t(:status) %></th>
- </tr>
- </thead>
- <tbody>
- <%= render partial: "spree/admin/return_authorizations/return_authorization",
- collection: @collection,
- cached: spree_base_cache_scope %>
- </tbody>
- </table>
- </div>
-<% else %>
- <%= render 'spree/admin/shared/no_resource_found', new_object_url: nil %>
-<% end %>
diff --git a/spree/admin/app/views/spree/admin/stock_items/_table_header.html.erb b/spree/admin/app/views/spree/admin/stock_items/_table_header.html.erb
deleted file mode 100644
index 3994f2e95e..0000000000
--- a/spree/admin/app/views/spree/admin/stock_items/_table_header.html.erb
+++ /dev/null
@@ -1,9 +0,0 @@
-<tr>
- <th scope="col"><%= Spree.t(:variant) %></th>
- <th scope="col"><%= Spree.t(:stock_location) %></th>
- <th scope="col" class="text-center">
- <%= Spree.t(:backorderable) %>
- <%= help_bubble(Spree.t(:continue_selling_when_out_of_stock)) %>
- </th>
- <th scope="col"><%= Spree.t(:count_on_hand) %></th>
-</tr>
\ No newline at end of file
diff --git a/spree/admin/app/views/spree/admin/stock_items/_table_row.html.erb b/spree/admin/app/views/spree/admin/stock_items/_table_row.html.erb
deleted file mode 100644
index 62ace91486..0000000000
--- a/spree/admin/app/views/spree/admin/stock_items/_table_row.html.erb
+++ /dev/null
@@ -1,43 +0,0 @@
-<tr>
- <td scope="row p-0" class="w-1/2">
- <%= render 'spree/admin/variants/variant', variant: stock_item.variant %>
- </td>
- <td class="w-20">
- <% if can?(:manage, stock_item.stock_location) %>
- <%= link_to stock_item.stock_location.display_name, spree.edit_admin_stock_location_path(stock_item.stock_location), data: { turbo_frame: '_top' } %>
- <% else %>
- <%= stock_item.stock_location.display_name %>
- <% end %>
- </td>
- <td class="text-center w-10">
- <% if can?(:update, stock_item) %>
- <%= form_for stock_item,
- url: spree.admin_stock_item_path(stock_item),
- method: :put,
- html: { data: { controller: 'auto-submit'}, class: 'flex items-center justify-center' } do |f| %>
- <div class="custom-control form-checkbox">
- <%= f.check_box :backorderable, class: 'custom-control-input', id: "stock_item_backorderable_#{stock_item.id}", data: { action: 'auto-submit#submit' } %>
- <label class="custom-control-label" for="stock_item_backorderable_<%= stock_item.id %>"><span></span></label>
- </div>
- <% end %>
- <% else %>
- <%= active_badge(stock_item.backorderable?) %>
- <% end %>
- </td>
- <td class="w-20">
- <% if can?(:update, stock_item) %>
- <%= turbo_frame_tag stock_item do %>
- <%= form_for stock_item,
- url: spree.admin_stock_item_path(stock_item),
- method: :put,
- html: { class: 'flex' } do |f| %>
-
- <%= f.number_field :count_on_hand, class: 'form-input mr-2', required: true, min: 0 %>
- <%= turbo_save_button_tag Spree.t('actions.update'), class: 'btn btn-primary' %>
- <% end %>
- <% end %>
- <% else %>
- <%= stock_item.count_on_hand %>
- <% end %>
- </td>
-</tr>
diff --git a/spree/admin/app/views/spree/admin/stock_transfers/_table_header.html.erb b/spree/admin/app/views/spree/admin/stock_transfers/_table_header.html.erb
deleted file mode 100644
index ffdba319cb..0000000000
--- a/spree/admin/app/views/spree/admin/stock_transfers/_table_header.html.erb
+++ /dev/null
@@ -1,9 +0,0 @@
-<tr>
- <th scope="col"><%= Spree.t(:number) %></th>
- <th scope="col"><%= Spree.t(:reference) %></th>
- <th scope="col"><%= Spree.t(:source) %></th>
- <th scope="col"><%= Spree.t(:destination) %></th>
- <th scope="col"><%= Spree.t(:variants_count) %></th>
- <th scope="col"><%= Spree.t(:created_at) %></th>
- <th scope="col"></th>
-</tr>
\ No newline at end of file
diff --git a/spree/admin/app/views/spree/admin/stock_transfers/_table_row.html.erb b/spree/admin/app/views/spree/admin/stock_transfers/_table_row.html.erb
deleted file mode 100644
index 0481267ec0..0000000000
--- a/spree/admin/app/views/spree/admin/stock_transfers/_table_row.html.erb
+++ /dev/null
@@ -1,11 +0,0 @@
-<tr id="<%= spree_dom_id stock_transfer %>" data-controller="row-link" class="cursor-pointer">
- <td scope="row" data-action="click->row-link#openLink"><%= stock_transfer.number %></td>
- <td class="truncate" data-action="click->row-link#openLink"><%= stock_transfer.reference.presence %></td>
- <td data-action="click->row-link#openLink"><%= stock_transfer.source_location&.display_name.presence || Spree.t(:none) %></td>
- <td data-action="click->row-link#openLink"><%= stock_transfer.destination_location.display_name %></td>
- <td data-action="click->row-link#openLink"><%= stock_transfer.destination_movements.size %></td>
- <td data-action="click->row-link#openLink"><%= spree_time_ago(stock_transfer.created_at) %></td>
- <td class="actions" data-action="click->row-link#openLink">
- <%= link_to '', admin_stock_transfer_path(stock_transfer), data: { row_link_target: 'link' }, class: 'hidden' %>
- </td>
-</tr>
\ No newline at end of file
diff --git a/spree/admin/app/views/spree/admin/webhook_deliveries/_table_header.html.erb b/spree/admin/app/views/spree/admin/webhook_deliveries/_table_header.html.erb
deleted file mode 100644
index 695a701aaf..0000000000
--- a/spree/admin/app/views/spree/admin/webhook_deliveries/_table_header.html.erb
+++ /dev/null
@@ -1,8 +0,0 @@
-<tr>
- <th scope="col"><%= sort_link(@search, :event_name, Spree.t('admin.webhook_deliveries.event')) %></th>
- <th scope="col"><%= sort_link(@search, :success, Spree.t(:status)) %></th>
- <th scope="col"><%= sort_link(@search, :delivered_at, Spree.t('admin.webhook_deliveries.delivered_at')) %></th>
- <th scope="col"><%= sort_link(@search, :execution_time, Spree.t('admin.webhook_deliveries.execution_time')) %></th>
- <th scope="col"><%= sort_link(@search, :response_code, Spree.t('admin.webhook_deliveries.response_code')) %></th>
- <th scope="col"><%= Spree.t(:details) %></th>
-</tr>
diff --git a/spree/admin/app/views/spree/admin/webhook_deliveries/_table_row.html.erb b/spree/admin/app/views/spree/admin/webhook_deliveries/_table_row.html.erb
deleted file mode 100644
index 4f8faeaa7b..0000000000
--- a/spree/admin/app/views/spree/admin/webhook_deliveries/_table_row.html.erb
+++ /dev/null
@@ -1,22 +0,0 @@
-<tr id="<%= spree_dom_id webhook_delivery %>">
- <td class="w-40">
- <code><%= webhook_delivery.event_name %></code>
- </td>
- <td class="text-center w-10">
- <%= webhook_delivery_status_badge(webhook_delivery) %>
- </td>
- <td class="w-20">
- <%= webhook_delivery.delivered_at ? spree_time(webhook_delivery.delivered_at) : '-' %>
- </td>
- <td class="w-20">
- <%= webhook_delivery.execution_time ? "#{webhook_delivery.execution_time}ms" : '-' %>
- </td>
- <td class="w-20">
- <code><%= webhook_delivery.response_code || '-' %></code>
- </td>
- <td class="w-20">
- <%= link_to icon('eye'), spree.admin_webhook_endpoint_webhook_delivery_path(webhook_delivery.webhook_endpoint, webhook_delivery),
- class: 'btn btn-sm btn-light px-2',
- data: { action: 'drawer#open', turbo_frame: :drawer } %>
- </td>
-</tr>
\ No newline at end of file
diff --git a/spree/admin/app/views/spree/admin/webhook_endpoints/_table_header.html.erb b/spree/admin/app/views/spree/admin/webhook_endpoints/_table_header.html.erb
deleted file mode 100644
index 93726fa488..0000000000
--- a/spree/admin/app/views/spree/admin/webhook_endpoints/_table_header.html.erb
+++ /dev/null
@@ -1,7 +0,0 @@
-<tr>
- <th scope="col"><%= Spree.t(:url) %></th>
- <th scope="col" class="text-center"><%= Spree.t(:active) %></th>
- <th scope="col"><%= Spree.t('admin.webhook_endpoints.subscriptions') %></th>
- <th scope="col"><%= Spree.t('admin.webhook_endpoints.deliveries') %></th>
- <th scope="col"><%= Spree.t(:created_at) %></th>
-</tr>
diff --git a/spree/admin/app/views/spree/admin/webhook_endpoints/_table_row.html.erb b/spree/admin/app/views/spree/admin/webhook_endpoints/_table_row.html.erb
deleted file mode 100644
index e59a4ab02f..0000000000
--- a/spree/admin/app/views/spree/admin/webhook_endpoints/_table_row.html.erb
+++ /dev/null
@@ -1,24 +0,0 @@
-<tr id="<%= spree_dom_id webhook_endpoint %>" data-controller="row-link">
- <td class="w-40 p-0">
- <%= link_to webhook_endpoint.url,
- spree.admin_webhook_endpoint_path(webhook_endpoint),
- class: 'font-bold w-full h-full block p-3',
- data: { row_link_target: 'link', turbo_frame: '_top' } %>
- </td>
- <td class="text-center w-10 cursor-pointer" data-action="click->row-link#openLink">
- <%= active_badge(webhook_endpoint.active?) %>
- </td>
- <td class="w-10 cursor-pointer" data-action="click->row-link#openLink">
- <span class="text-gray-600">
- <%= webhook_endpoint.subscriptions.size %> <%= Spree.t('admin.webhook_endpoints.events') %>
- </span>
- </td>
- <td class="w-20 cursor-pointer" data-action="click->row-link#openLink">
- <span class="text-green-500">
- <%= webhook_endpoint.webhook_deliveries.successful.count %>
- </span> / <%= webhook_endpoint.webhook_deliveries.count %>
- </td>
- <td class="w-20 cursor-pointer" data-action="click->row-link#openLink">
- <%= spree_time(webhook_endpoint.created_at) %>
- </td>
-</tr>