Skip to content

Commit

Permalink
#187 [Dashboard] add: change reload with button
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Feb 17, 2023
1 parent a4b4f2a commit a51bad7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions dolisirhindex.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@

$currentMonth = date('m', dol_now());

$months = [1 => $langs->trans('January'), 2 => $langs->trans('February'), 3 => $langs->trans('March'), 4 => $langs->trans('April'), 5 => $langs->trans('May'), 6 => $langs->trans('June'), 7 => $langs->trans('July'), 8 => $langs->trans('August'), 9 => $langs->trans('September'), 10 => $langs->trans('October'), 11 => $langs->trans('November'), 12 => $langs->trans('December')];
$morehtmlright = '<div class="wpeo-button button-primary button-square-30 select-dataset-dashboard-info" style="color: white !important;"><i class="button-icon fas fa-redo"></i></div>';
$morehtmlright .= ' ' . img_picto($langs->trans('Filter') . ' ' . $langs->trans('Month'), 'title_agenda', 'class="paddingright pictofixedwidth"') . $form->selectarray('search_month', $months, $currentMonth, 0,0, 0, '', 1, 0, 0, '', 'maxwidth100');
$months = [1 => ucfirst($langs->trans('January')), 2 => ucfirst($langs->trans('February')), 3 => ucfirst($langs->trans('March')), 4 => ucfirst($langs->trans('April')), 5 => ucfirst($langs->trans('May')), 6 => ucfirst($langs->trans('June')), 7 => ucfirst($langs->trans('July')), 8 => ucfirst($langs->trans('August')), 9 => ucfirst($langs->trans('September')), 10 => ucfirst($langs->trans('October')), 11 => ucfirst($langs->trans('November')), 12 => ucfirst($langs->trans('December'))];
$morehtmlright = ' ' . img_picto($langs->trans('Filter') . ' ' . $langs->trans('Month'), 'title_agenda', 'class="paddingright pictofixedwidth"') . $form->selectarray('search_month', $months, $currentMonth, 0,0, 0, '', 1, 0, 0, '', 'maxwidth100');
$morehtmlright .= ' ' . img_picto($langs->trans('Filter') . ' ' . $langs->trans('User'), 'user', 'class="paddingright pictofixedwidth"') . $form->select_dolusers($userID, 'search_userid', '', null, 0, '', null, 0, 0, 0, ' AND u.employee = 1', 0, '', 'maxwidth300', 1);
$morehtmlright .= '<div class="wpeo-button button-primary button-square-30 select-dataset-dashboard-info" style="color: white !important;"><i class="button-icon fas fa-redo"></i></div>';

print load_fiche_titre($title . ' ' . $modDoliSIRH->version, $morehtmlright, 'dolisirh_red.png@dolisirh');

Expand Down
2 changes: 1 addition & 1 deletion js/dolisirh.js
Original file line number Diff line number Diff line change
Expand Up @@ -1346,7 +1346,7 @@ window.eoxiaJS.dashboard.selectDatasetDashboardInfo = function() {
window.eoxiaJS.loader.display($('.fichecenter'));

$.ajax({
url: document.URL + querySeparator + 'action=selectdatasetdashboardinfo&token=' + token + '&search_userid=' + userID + '&search_month=' + month,
url: document.URL + querySeparator + 'token=' + token + '&search_userid=' + userID + '&search_month=' + month,
type: "POST",
processData: false,
contentType: false,
Expand Down

0 comments on commit a51bad7

Please sign in to comment.