From 099a7b650cea31f82463db049aa4ba8b2cb2e2cc Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 13 Oct 2025 21:11:09 +0200 Subject: [PATCH] Clean setup pages --- htdocs/admin/stocktransfer.php | 36 +++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/htdocs/admin/stocktransfer.php b/htdocs/admin/stocktransfer.php index 35d16f887c3..c6c406c4fb2 100644 --- a/htdocs/admin/stocktransfer.php +++ b/htdocs/admin/stocktransfer.php @@ -181,9 +181,6 @@ print load_fiche_titre($langs->trans($page_name), $linkback, 'stock'); $head = stocktransferAdminPrepareHead(); print dol_get_fiche_head($head, 'settings', '', -1, "stocktransfer@stocktransfer"); -// Setup page goes here -print ''.$langs->trans("StockTransferSetupPage").''; - /*if ($action == 'edit') { @@ -499,6 +496,39 @@ foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) { } } + +if (!empty($setupnotempty)) { + print '
'; + print load_fiche_titre($langs->trans("OtherOptions", $myTmpObjectKey), '', ''); + + print '
'; // You can use div-table-responsive-no-min if you don't need reserved height for your table + print ''; + + print ''; + print ''; + print ''; + print ''."\n"; + + // Notifications + /* + print ''; + print ''; + print ''; + */ + + // More PDF options + print ''; + print ''; + print ''; + + print '
'.$langs->trans("Parameter").'
'.img_picto('', 'email', 'class="pictofixedwidth"').$langs->trans("Notifications").''; + print $langs->trans("YouMayFindNotificationsFeaturesIntoModuleNotification"); + print '
'.img_picto('', 'pdf', 'class="pictofixedwidth"').$langs->trans("MoreOptionsRelatedToPDF").''; + print img_picto('', 'url', 'class="pictofixedwidth"').''.$langs->trans("SeeInPDFSetupPage").''; + print '
'; +} + + if (empty($setupnotempty)) { print '
'.$langs->trans("NothingToSetup"); }