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!
This commit is contained in:
parent
1263eb82bb
commit
9b246c0b91
@ -96,8 +96,8 @@ if ($result) {
|
|||||||
$title = $langs->trans("DeclarationTVAMainInterface");
|
$title = $langs->trans("DeclarationTVAMainInterface");
|
||||||
llxHeader('', $title);
|
llxHeader('', $title);
|
||||||
|
|
||||||
// Print page header
|
// Print page header with create button
|
||||||
print load_fiche_titre($title, '', 'title_accountancy');
|
print load_fiche_titre($title, '<a href="declarationtva_create.php" class="butAction">' . $langs->trans("CreateDeclaration") . '</a>', 'title_accountancy');
|
||||||
|
|
||||||
// Print declarations section
|
// Print declarations section
|
||||||
print '<div class="fiche">';
|
print '<div class="fiche">';
|
||||||
@ -105,13 +105,7 @@ print '<div class="titre">' . $langs->trans("DeclarationTVADeclarations") . '</d
|
|||||||
|
|
||||||
if (empty($declarations)) {
|
if (empty($declarations)) {
|
||||||
print '<div class="info">' . $langs->trans("NoDeclarationsFound") . '</div>';
|
print '<div class="info">' . $langs->trans("NoDeclarationsFound") . '</div>';
|
||||||
print '<div class="info">';
|
|
||||||
print '<a href="declarationtva_create.php" class="butAction">' . $langs->trans("CreateDeclaration") . '</a>';
|
|
||||||
print '</div>';
|
|
||||||
} else {
|
} else {
|
||||||
print '<div class="info">';
|
|
||||||
print '<a href="declarationtva_create.php" class="butAction">' . $langs->trans("CreateDeclaration") . '</a>';
|
|
||||||
print '</div>';
|
|
||||||
print '<table class="noborder centpercent">';
|
print '<table class="noborder centpercent">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<th>' . $langs->trans("DeclarationNumber") . '</th>';
|
print '<th>' . $langs->trans("DeclarationNumber") . '</th>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user