Skip to content

Commit

Permalink
add setup
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic34 committed Oct 9, 2024
1 parent d5b3465 commit 6f4eadd
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
4 changes: 4 additions & 0 deletions htdocs/langs/en_US/products.lang
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,10 @@ QtyRecalculatedWithPackaging=The quantity of the line were recalculated accordin

#Attributes
Attributes=Attributes
ProductAttributeExtrafields=Variant attributes extrafields
ProductAttributeExtrafieldsSetup=Setup of Variant attributes extrafields
ProductAttributeValueExtrafields=Variant attributes values extrafields
ProductAttributeValueExtrafieldsSetup=Setup of Variant attributes values extrafields
VariantAttributes=Variant attributes
ProductAttributes=Variant attributes for products
ProductAttributeName=Variant attribute %s
Expand Down
2 changes: 1 addition & 1 deletion htdocs/variants/admin/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@

$head = adminProductAttributePrepareHead();

print dol_get_fiche_head($head, 'admin', $langs->trans("ProductAttributeValue"), -1, 'product');
print dol_get_fiche_head($head, 'admin', $title, -1, 'product');

print '<form method="POST" action="'.$_SERVER["PHP_SELF"].'">';
print '<input type="hidden" name="token" value="'.newToken().'">';
Expand Down
10 changes: 4 additions & 6 deletions htdocs/variants/admin/product_attribute_extrafields.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,15 @@
* View
*/

$textobject = $langs->transnoentitiesnoconv("Variants");

llxHeader('', $langs->trans("ProductAttributeValueSetup"));
$title = $langs->trans("ProductAttributeExtrafieldsSetup");
llxHeader('', $title);

$linkback = '<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>';
print load_fiche_titre($langs->trans("ProductAttributeValueSetup"), $linkback, 'title_setup');
print "<br>\n";
print load_fiche_titre($title, $linkback, 'title_setup');

$head = adminProductAttributePrepareHead();

print dol_get_fiche_head($head, 'product_attribute', $langs->trans("Variants"), -1, 'shipment');
print dol_get_fiche_head($head, 'product_attribute', $title, -1, 'product');

require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';

Expand Down
10 changes: 4 additions & 6 deletions htdocs/variants/admin/product_attribute_value_extrafields.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,15 @@
* View
*/

$textobject = $langs->transnoentitiesnoconv("ProductAttributeValue");

llxHeader('', $langs->trans("ProductAttributeValueSetup"));
$title = $langs->trans("ProductAttributeValueExtrafieldsSetup");
llxHeader('', $title);

$linkback = '<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>';
print load_fiche_titre($langs->trans("ProductAttributeValueSetup"), $linkback, 'title_setup');
print "<br>\n";
print load_fiche_titre($title, $linkback, 'title_setup');

$head = adminProductAttributePrepareHead();

print dol_get_fiche_head($head, 'product_attribute_value', $langs->trans("ProductAttributeValue"), -1, 'product');
print dol_get_fiche_head($head, 'product_attribute_value', $title, -1, 'product');

require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';

Expand Down
4 changes: 2 additions & 2 deletions htdocs/variants/lib/variants.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ function adminProductAttributePrepareHead()
$h++;

$head[$h][0] = DOL_URL_ROOT.'/variants/admin/product_attribute_extrafields.php';
$head[$h][1] = $langs->trans("ProductAttribute");
$head[$h][1] = $langs->trans("ProductAttributeExtrafields");
$head[$h][2] = 'product_attribute';
$h++;

$head[$h][0] = DOL_URL_ROOT.'/variants/admin/product_attribute_value_extrafields.php';
$head[$h][1] = $langs->trans("ProductAttributeValue");
$head[$h][1] = $langs->trans("ProductAttributeValueExtrafields");
$head[$h][2] = 'product_attribute_value';
$h++;

Expand Down

0 comments on commit 6f4eadd

Please sign in to comment.