Add llxHeader body css for resource (#29924)

This commit is contained in:
Anthony Damhet 2024-06-08 12:03:31 +02:00 committed by GitHub
parent 4d0e252294
commit c604c005d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 14 additions and 8 deletions

View File

@ -136,7 +136,8 @@ if ($object->id > 0) {
if (getDolGlobalString('MAIN_HTML_TITLE') && preg_match('/productnameonly/', getDolGlobalString('MAIN_HTML_TITLE')) && $object->name) {
$title = $object->ref." - ".$title;
}
llxHeader('', $title);
$help_url = '';
llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-resource page-card_agenda');
if (isModEnabled('notification')) {
$langs->load("mails");

View File

@ -217,7 +217,8 @@ if (empty($reshook)) {
*/
$title = $langs->trans($action == 'create' ? 'AddResource' : 'ResourceSingular');
llxHeader('', $title, '');
$help_url = '';
llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-resource page-card');
$form = new Form($db);
$formresource = new FormResource($db);

View File

@ -109,7 +109,8 @@ $formcompany = new FormCompany($db);
$contactstatic = new Contact($db);
$userstatic = new User($db);
llxHeader('', $langs->trans("Resource"));
$help_url = '';
llxHeader('', $langs->trans("Resource"), $help_url, '', 0, 0, '', '', '', 'mod-resource page-card_contact');
// View and edit mode

View File

@ -95,8 +95,8 @@ include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';
*/
$form = new Form($db);
llxHeader('', $langs->trans("Resource"));
$help_url = '';
llxHeader('', $langs->trans("Resource"), $help_url, '', 0, 0, '', '', '', 'mod-resource page-card_documents');
if ($object->id > 0) {
$object->fetch_thirdparty();

View File

@ -301,7 +301,8 @@ if ($reshook < 0) {
$form = new Form($db);
$pagetitle = $langs->trans('ResourceElementPage');
llxHeader('', $pagetitle, '');
$help_url = '';
llxHeader('', $pagetitle, $help_url, '', 0, 0, '', '', '', 'mod-resource page-element_resource');
$now = dol_now();
$delay_warning = $conf->global->MAIN_DELAY_ACTIONS_TODO * 24 * 60 * 60;

View File

@ -358,7 +358,7 @@ if ($num == 1 && getDolGlobalString('MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE') && !$
// Output page
llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist'); // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll
llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'mod-resource page-list bodyforlist'); // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll
$arrayofselected = is_array($toselect) ? $toselect : array();

View File

@ -72,7 +72,9 @@ if (empty($reshook)) {
* View
*/
llxHeader();
$title = '';
$help_url = '';
llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-resource page-card_notes');
$form = new Form($db);