@@ -561,7 +561,15 @@ function participants_list(participants, api_url, is_teacher, enrollment_statuse
561561 pageLength : localStorage . getItem ( 'participantsListPageLength' ) ? parseInt ( localStorage . getItem ( 'participantsListPageLength' ) , 10 ) : 50 ,
562562 deferRender : true ,
563563 autoWidth : false ,
564- language : { url : pageLanguageUrl } ,
564+ language : {
565+ paginate : {
566+ first : '<i class="bi-chevron-double-left"></i>' ,
567+ last : '<i class="bi-chevron-double-right"></i>' ,
568+ next : '<i class="bi-chevron-right"></i>' ,
569+ previous : '<i class="bi-chevron-left"></i>'
570+ } ,
571+ url : pageLanguageUrl
572+ } ,
565573 initComplete : function ( ) {
566574 if ( aplusTranslationsReady ) {
567575 try { updateHeaderTranslations ( ) ; } catch ( e ) { }
@@ -596,15 +604,25 @@ function participants_list(participants, api_url, is_teacher, enrollment_statuse
596604 }
597605 } catch ( e ) { }
598606 } ,
599- dom : "<'row'<'col-md-3 col-sm-6'l><'col-md-5 col-sm-6'B><'col-md-4 col-sm-12'f>>" +
607+ dom : "<'row'<'col-md-3 col-sm-6'l><'col-md-6 col-sm-6'B><'col-md-3 col-sm-12'f>>" +
600608 "<'row'<'col-sm-12 mt-3'i>>" +
601609 "<'row'<'#table-participants-div.col-sm-12'tr>>" +
602610 "<'row'<'col-sm-5'i><'col-sm-7'p>>" ,
603611 buttons : [
604- $ . extend ( true , { } , buttonCommon , { extend : 'csvHtml5' , className : 'btn-sm' } ) ,
605- $ . extend ( true , { } , buttonCommon , { extend : 'copyHtml5' , className : 'btn-sm' } ) ,
606- $ . extend ( true , { } , buttonCommon , { extend : 'excelHtml5' , className : 'btn-sm' } ) ,
607- { text : 'Reset filters' , className : 'btn-reset-filters btn-sm' , name : 'resetFilters' , action : function ( ) { clearSearch ( ) ; } }
612+ $ . extend ( true , { } , buttonCommon , {
613+ text : '<i class="bi-filetype-csv"></i> CSV' ,
614+ extend : 'csvHtml5'
615+ } ) ,
616+ $ . extend ( true , { } , buttonCommon , {
617+ text : '<i class="bi-clipboard"></i> ' + _ ( 'Copy to clipboard' ) ,
618+ extend : 'copyHtml5'
619+ } ) ,
620+ {
621+ text : '<i class="bi-arrow-counterclockwise"></i> ' + _ ( 'Reset filters' ) ,
622+ action : function ( e , dt , node , config ) {
623+ clearSearch ( ) ;
624+ }
625+ }
608626 ]
609627 } ) ;
610628
0 commit comments