- updates in styles, col 'actions' of the table for pre instructor;
This commit is contained in:
@@ -24,7 +24,7 @@ import ProperBandoLabel from '../../../../components/ProperBandoLabel';
|
||||
import { Dropdown } from 'primereact/dropdown';
|
||||
import { Tag } from 'primereact/tag';
|
||||
import { Calendar } from 'primereact/calendar';
|
||||
import { storeGet, storeSet } from '../../../../store';
|
||||
import { storeGet } from '../../../../store';
|
||||
|
||||
|
||||
const AllBandiPreInstructorTableAsync = () => {
|
||||
@@ -68,7 +68,8 @@ const AllBandiPreInstructorTableAsync = () => {
|
||||
|
||||
const getCallback = (resp) => {
|
||||
if (resp.status === 'SUCCESS') {
|
||||
const { body, totalRecords,
|
||||
const {
|
||||
body, totalRecords,
|
||||
//currentPage, totalPages, pageSize
|
||||
} = resp.data;
|
||||
setTotalRecordsNum(totalRecords);
|
||||
@@ -92,14 +93,16 @@ const AllBandiPreInstructorTableAsync = () => {
|
||||
|
||||
const actionsBodyTemplate = (rowData) => {
|
||||
return (
|
||||
<div className="p-d-flex p-flex-column">
|
||||
<div className="appPageSection__tableActions">
|
||||
<Link to={`/bandi/${rowData.id}`}>
|
||||
<Button severity="info" label={__('Mostra', 'gepafin')} icon="pi pi-eye" size="small" iconPos="right" />
|
||||
<Button severity="info" label={__('Mostra', 'gepafin')} icon="pi pi-eye" size="small"
|
||||
iconPos="right"/>
|
||||
</Link>
|
||||
{role === 'ROLE_INSTRUCTOR_MANAGER' && (
|
||||
<Button severity="info" label={__('Scarica graduatoria', 'gepafin')} icon="pi pi-download" size="small" iconPos="right" style={{marginTop:'10px'}} onClick={() => handleDownloadRanking(rowData.id)}/>
|
||||
<Button severity="info" label={__('Scarica graduatoria', 'gepafin')} icon="pi pi-download"
|
||||
size="small" iconPos="right"
|
||||
onClick={() => handleDownloadRanking(rowData.id)}/>
|
||||
)}
|
||||
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -147,7 +150,8 @@ const AllBandiPreInstructorTableAsync = () => {
|
||||
}
|
||||
setLazyState({ ...lazyState, filters, first: 0 });
|
||||
}}
|
||||
itemTemplate={statusItemTemplate} placeholder={translationStrings.selectOneLabel} className="p-column-filter"/>;
|
||||
itemTemplate={statusItemTemplate} placeholder={translationStrings.selectOneLabel}
|
||||
className="p-column-filter"/>;
|
||||
};
|
||||
|
||||
const dateFilterTemplate = (options) => {
|
||||
|
||||
Reference in New Issue
Block a user