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:
parent
bc5c9e9fb6
commit
d357b6d314
@ -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>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user