From 9b246c0b9101d16b714bfac444fbc06acb71c664 Mon Sep 17 00:00:00 2001 From: Frank Cools Date: Thu, 2 Oct 2025 18:06:36 +0200 Subject: [PATCH] Move Create Declaration button to page header UX Improvement: - Moved 'Create Declaration' button to top right of page header - Button now always visible regardless of list length - Removed duplicate button from declarations section - Better user experience with prominent action button - Follows Dolibarr standard pattern for page headers The create button is now easily accessible at the top of the page! --- declarationtvaindex.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/declarationtvaindex.php b/declarationtvaindex.php index d7b4305..c33b360 100644 --- a/declarationtvaindex.php +++ b/declarationtvaindex.php @@ -96,8 +96,8 @@ if ($result) { $title = $langs->trans("DeclarationTVAMainInterface"); llxHeader('', $title); -// Print page header -print load_fiche_titre($title, '', 'title_accountancy'); +// Print page header with create button +print load_fiche_titre($title, '' . $langs->trans("CreateDeclaration") . '', 'title_accountancy'); // Print declarations section print '
'; @@ -105,13 +105,7 @@ print '
' . $langs->trans("DeclarationTVADeclarations") . '' . $langs->trans("NoDeclarationsFound") . '
'; - print ''; } else { - print ''; print ''; print ''; print '';
' . $langs->trans("DeclarationNumber") . '