Skip to content

Commit

Permalink
#187 [Dashboard] add: picto for refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Feb 17, 2023
1 parent 57cbd5e commit e5b7abf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions dolisirhindex.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@
$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 = 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 select-timespent-dataset-month');
$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 select-user-dashboard', 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>';
$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);

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 @@ -1259,7 +1259,7 @@ window.eoxiaJS.dashboard.init = function() {
window.eoxiaJS.dashboard.event = function() {
$( document ).on( 'change', '.add-dashboard-widget', window.eoxiaJS.dashboard.addDashBoardInfo );
$( document ).on( 'click', '.close-dashboard-widget', window.eoxiaJS.dashboard.closeDashBoardInfo );
$( document ).on( 'change', '.select-timespent-dataset-month, .select-user-dashboard', window.eoxiaJS.dashboard.selectDatasetDashboardInfo );
$( document ).on( 'click', '.select-dataset-dashboard-info', window.eoxiaJS.dashboard.selectDatasetDashboardInfo );
};

/**
Expand Down

0 comments on commit e5b7abf

Please sign in to comment.