Remove non-working validate button from declaration list

- Removed validate button from declaration list actions
- Validation should only be done from the detailed view page
- Keeps only working actions: Delete (draft), Submit (validated), View
- Simplifies the list interface and avoids broken functionality
This commit is contained in:
Frank Cools 2025-10-06 18:15:13 +02:00
parent 342d315066
commit bc5c9e9fb6

View File

@ -172,7 +172,6 @@ if (empty($declarations)) {
print '<td class="center">';
if ($d['status'] == 'draft') {
print '<a href="' . $_SERVER['PHP_SELF'] . '?action=validate_declaration&declaration_id=' . $d['rowid'] . '&token=' . newToken() . '" class="button">' . $langs->trans("Validate") . '</a> ';
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> ';