Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1003 [Documents] fix: enhance document list #1021

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

theodaviddd
Copy link

No description provided.

@theodaviddd theodaviddd linked an issue Jul 23, 2024 that may be closed by this pull request
@theodaviddd theodaviddd self-assigned this Jul 23, 2024
@theodaviddd theodaviddd changed the title Fix enhance document list #1003 [Documents] fix: enhance document list Jul 23, 2024
@nicolas-eoxia nicolas-eoxia changed the base branch from main to develop July 23, 2024 23:57
@theodaviddd
Copy link
Author

theodaviddd commented Aug 13, 2024

  • Pagination à côté du titre de la liste
  • Garder tous les paramètres d'URL
  • Pagination mini 0 => 1
  • Pagination dolibarr friendly ? => pas possible, il faut appeler print_fleche_navigation qui met un ?page ce qui est un probleme si on a un id en paramètre (control card par exemple)
  • Search & cancel dolibarr friendly => marche pas car ca submit le form de génération donc pas adapté a la box documents
  • Get title field list => pareil, ?sortfield meme si on a un ?id avant donc ca bug

@@ -215,6 +264,20 @@ function saturne_show_documents(string $modulepart, $modulesubdir, $filedir, str
$genbutton = '';
}
$out .= $genbutton;
$querySeparator = (strpos($_SERVER['REQUEST_URI'], '?') === false) ? '?' : '&';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

il sert à rien ici


$fileList = dol_sort_array($fileList, $sortfield, $sortorder);

$page = GETPOST('page', 'int') ?: 1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

psr12

$out = '<td class="'. $morehtml .'">';
$out .= '<input class="saturne-search" id="search_' . strtolower($name) . '" type="'. $type .'" name="search_' . strtolower($name) . '" value="' . GETPOST('search_' . strtolower($name)) . '">';
$out .= '</td>';
return $out;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

un espace entre le return

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+psr12

@theodaviddd
Copy link
Author

b285c8a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Pull requests
Development

Successfully merging this pull request may close these issues.

[Amélioration] Affichage des DU générés
2 participants