Remove redundant current configuration summary section

- Remove the 'Current Configuration' section that duplicated information
- Users can see their configuration directly in the form above
- Simplify configuration page by removing redundant summary
- Improve user experience with cleaner, more focused interface
This commit is contained in:
Frank Cools 2025-10-07 20:15:50 +02:00
parent 62a0b5dba2
commit 6de32d198f

View File

@ -223,48 +223,6 @@ print '</div>';
print '</form>';
// Print current configuration summary
print '<div class="fiche">';
print '<div class="titre">' . $langs->trans("CurrentConfiguration") . '</div>';
if (empty($mappings_by_line)) {
print '<div class="info">' . $langs->trans("NoConfigurationFound") . '</div>';
} else {
// Group by section for display
$mappings_by_section = array();
foreach ($mappings_by_line as $line => $account_codes) {
if (isset($ca3_definitions[$line])) {
$section = $ca3_definitions[$line]['section'];
if (!isset($mappings_by_section[$section])) {
$mappings_by_section[$section] = array();
}
$mappings_by_section[$section][$line] = $account_codes;
}
}
foreach ($mappings_by_section as $section_code => $section_mappings) {
$section_info = $section_headers[$section_code];
print '<div class="titre">' . $section_info['title'] . '</div>';
print '<table class="noborder centpercent">';
print '<tr class="liste_titre">';
print '<th>' . $langs->trans("CA3Line") . '</th>';
print '<th>' . $langs->trans("SelectedAccounts") . '</th>';
print '<th>' . $langs->trans("AccountCount") . '</th>';
print '</tr>';
foreach ($section_mappings as $line => $account_codes) {
print '<tr>';
print '<td><strong>' . $line . '</strong></td>';
print '<td>' . implode(', ', $account_codes) . '</td>';
print '<td>' . count($account_codes) . '</td>';
print '</tr>';
}
print '</table>';
print '<br>';
}
}
} elseif ($tab == 'templates') {
// Tab 2: Template Management