Remove non-working submit button from declaration list

- Removed submit button from declaration list actions
- Submit functionality should be handled from detailed view page
- Keeps only working actions: Delete (draft), View (all)
- Simplifies the list interface and removes broken functionality
This commit is contained in:
Frank Cools 2025-10-06 18:15:50 +02:00
parent bc5c9e9fb6
commit d357b6d314

View File

@ -173,8 +173,6 @@ if (empty($declarations)) {
if ($d['status'] == 'draft') {
print '<a href="' . $_SERVER['PHP_SELF'] . '?action=delete_declaration&declaration_id=' . $d['rowid'] . '&token=' . newToken() . '" class="button button-delete" onclick="return confirm(\'' . $langs->trans("ConfirmDeleteDeclaration") . '\')">' . $langs->trans("Delete") . '</a> ';
} elseif ($d['status'] == 'validated') {
print '<a href="' . $_SERVER['PHP_SELF'] . '?action=submit_declaration&declaration_id=' . $d['rowid'] . '&token=' . newToken() . '" class="button">' . $langs->trans("Submit") . '</a> ';
}
print '<a href="declarationtva_view.php?id=' . $d['rowid'] . '" class="button">' . $langs->trans("View") . '</a>';