Skip to content

Commit

Permalink
Merge branch 'master' of github.com:chamilo/chamilo-lms
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Oct 6, 2021
2 parents 456701f + ad77b7d commit 2497502
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 31 deletions.
23 changes: 23 additions & 0 deletions assets/css/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,29 @@
@apply border-ch-text rounded-sm p-1;
}

// Progress bars
.progress {
@apply rounded-sm ring-1 ring-ch-secondary bg-ch-primary text-sm text-center min-h-full ml-12 mr-4;
}
.progress .progress-bar {
@apply bg-ch-secondary text-ch-text-secondary;
}

// Pager
.pager-bar {
}
.pager-bar .pager-select {
}
.pager-bar .pager-counter {
@apply mt-4;
}
.pager-bar .pager-jumper {
@apply mt-4;
}
.pager-bar .pager-jumper .btn-link {
@apply -mt-2 mx-2;
}

@import "scss/index.scss";
}

Expand Down
1 change: 1 addition & 0 deletions public/main/inc/lib/display.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2255,6 +2255,7 @@ public static function getMdiIcon(string $name, string $additionalClass = null,
* @param string $additionalClass Optional. Additional class
*
* @return string
* @deprecated Use getMdiIcon() instead
*/
public static function returnFontAwesomeIcon(
$name,
Expand Down
40 changes: 9 additions & 31 deletions public/main/inc/lib/sortable_table.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,39 +300,17 @@ public function get_pager()
$params['urlVar'] = $this->param_prefix.'page_nr';
$params['currentPage'] = $this->page_nr;
$icon_attributes = ['style' => 'vertical-align: middle;'];
/*$params['prevImg'] = Display:: return_icon(
'action_prev.png',
get_lang('Previous page'),
$icon_attributes
);*/
$params['prevImg'] = Display::returnFontAwesomeIcon('caret-left');

/*$params['nextImg'] = Display:: return_icon(
'action_next.png',
get_lang('Next page'),
$icon_attributes
);*/
$params['nextImg'] = Display::returnFontAwesomeIcon('caret-right');

/*$params['firstPageText'] = Display:: return_icon(
'action_first.png',
get_lang('First page'),
$icon_attributes
);*/
$params['firstPageText'] = Display::returnFontAwesomeIcon('step-backward');

/*$params['lastPageText'] = Display:: return_icon(
'action_last.png',
get_lang('Last page'),
$icon_attributes
);*/
$params['lastPageText'] = Display::returnFontAwesomeIcon('step-forward');
$params['prevImg'] = Display::getMdiIcon('step-backward');
$params['nextImg'] = Display::getMdiIcon('step-forward');
$params['firstPageText'] = Display::getMdiIcon('step-backward-2');
$params['lastPageText'] = Display::getMdiIcon('step-forward-2');
$params['firstPagePre'] = '';
$params['lastPagePre'] = '';
$params['firstPagePost'] = '';
$params['lastPagePost'] = '';
$params['spacesBeforeSeparator'] = '';
$params['spacesAfterSeparator'] = '';
$params['curPageLinkClassName'] = 'ch-pager';
$query_vars = array_keys($_GET);
$query_vars_needed = [
$this->param_prefix.'column',
Expand Down Expand Up @@ -402,15 +380,15 @@ public function return_table()
$form = $this->get_page_select_form();
$nav = $this->get_navigation_html();
$html = '<div class="q-card">';
$html .= '<div class="flex flex-row justify-between">';
$html .= '<div class="flex flex-row justify-between pager-bar">';
$html .= '<div class="col">';
$html .= '<div class="page-select pb-2 pt-2">'.$form.'</div>';
$html .= '<div class="pb-2 pt-2 pager-select">'.$form.'</div>';
$html .= '</div>';
$html .= '<div class="col">';
$html .= '<div class="row justify-center">'.$this->get_table_title().'</div>';
$html .= '<div class="row justify-center pager-counter">'.$this->get_table_title().'</div>';
$html .= '</div>';
$html .= '<div class="col">';
$html .= '<div class="row justify-end">'.$nav.'</div>';
$html .= '<div class="row justify-end pager-jumper">'.$nav.'</div>';
$html .= '</div>';
$html .= '</div>';
$html .= '</div>';
Expand Down

0 comments on commit 2497502

Please sign in to comment.