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

#1825 [Control] add: custom color for controls #1955

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

evarisk-charles
Copy link
Contributor

No description provided.

@evarisk-charles evarisk-charles self-assigned this Jan 10, 2025
@evarisk-charles evarisk-charles added 2 Enhancement New feature or request labels Jan 10, 2025
@evarisk-charles evarisk-charles linked an issue Jan 10, 2025 that may be closed by this pull request
@@ -86,6 +86,18 @@
exit;
}

if ($action == 'update_theme_color') {
Copy link
Contributor

Choose a reason for hiding this comment

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

pas ouf le nom

@@ -86,6 +86,18 @@
exit;
}

if ($action == 'update_theme_color') {
$digiqualiPassedTimeColor = GETPOST('passedTime');
Copy link
Contributor

Choose a reason for hiding this comment

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

pas ouf le nom

dolibarr_set_const($db, 'DIGIQUALI_PASSED_TIME_COLOR', $digiqualiPassedTimeColor, 'chaine', 0, '', $conf->entity);
dolibarr_set_const($db, 'DIGIQUALI_URGENT_TIME_COLOR', $digiqualiUrgentTimeColor, 'chaine', 0, '', $conf->entity);
dolibarr_set_const($db, 'DIGIQUALI_MEDIUM_TIME_COLOR', $digiqualiMediumTimeColor, 'chaine', 0, '', $conf->entity);
dolibarr_set_const($db, 'DIGIQUALI_PERFECT_TIME_COLOR', $digiqualiPerfectTimeColor, 'chaine', 0, '', $conf->entity);
Copy link
Contributor

Choose a reason for hiding this comment

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

manque le seteventmessages

// Theme dashboard time spent.
print load_fiche_titre($langs->transnoentities('ControlColorParam'), '', '');

$parameters = [
Copy link
Contributor

Choose a reason for hiding this comment

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

overkill ce tableau juste le spéc

print '<td>' . $langs->transnoentities('Value') . '</td>';
print '</tr>';

for ($i = 0; $i < 4; $i++) {
Copy link
Contributor

Choose a reason for hiding this comment

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

foreach ou count dynamique pour le for

@nicolas-eoxia nicolas-eoxia merged commit 8122a04 into Evarisk:develop Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 Enhancement New feature or request
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Alerte X jours avant la date 90J,60J,30J.
2 participants