Link to product/variant edit page

This commit is contained in:
Jean-Baptiste Bellet
2023-09-19 14:26:14 +02:00
parent 0847f6b0f6
commit 2c478f1d8e
2 changed files with 4 additions and 0 deletions

View File

@@ -61,6 +61,7 @@
%td.align-left
.line-clamp-1= product.inherits_properties ? 'YES' : 'NO' #TODO: consider using https://github.com/RST-J/human_attribute_values, else use I18n.t (also below)
%td.align-right
= link_to t('admin.products_page.actions.edit'), edit_admin_product_path(product)
- product.variants.each do |variant|
- prefix = "[products][][variants_attributes][]" # Couldn't convince the formbuilder to generate this for me, so for now we manually add the prefix
= form.fields_for(variant) do |variant_form|
@@ -85,3 +86,4 @@
%td.align-left
-# empty
%td.align-right
= link_to t('admin.products_page.actions.edit'), edit_admin_product_variant_path(product, variant)

View File

@@ -562,6 +562,8 @@ en:
tax_category: "Tax Category"
inherits_properties: "Inherits Properties?"
import_date: "Import Date"
actions:
edit: Edit
adjustments:
skipped_changing_canceled_order: "You can't change a cancelled order."
# Common properties / models