- 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 { Dropdown } from 'primereact/dropdown';
|
||||||
import { Tag } from 'primereact/tag';
|
import { Tag } from 'primereact/tag';
|
||||||
import { Calendar } from 'primereact/calendar';
|
import { Calendar } from 'primereact/calendar';
|
||||||
import { storeGet, storeSet } from '../../../../store';
|
import { storeGet } from '../../../../store';
|
||||||
|
|
||||||
|
|
||||||
const AllBandiPreInstructorTableAsync = () => {
|
const AllBandiPreInstructorTableAsync = () => {
|
||||||
@@ -68,7 +68,8 @@ const AllBandiPreInstructorTableAsync = () => {
|
|||||||
|
|
||||||
const getCallback = (resp) => {
|
const getCallback = (resp) => {
|
||||||
if (resp.status === 'SUCCESS') {
|
if (resp.status === 'SUCCESS') {
|
||||||
const { body, totalRecords,
|
const {
|
||||||
|
body, totalRecords,
|
||||||
//currentPage, totalPages, pageSize
|
//currentPage, totalPages, pageSize
|
||||||
} = resp.data;
|
} = resp.data;
|
||||||
setTotalRecordsNum(totalRecords);
|
setTotalRecordsNum(totalRecords);
|
||||||
@@ -92,14 +93,16 @@ const AllBandiPreInstructorTableAsync = () => {
|
|||||||
|
|
||||||
const actionsBodyTemplate = (rowData) => {
|
const actionsBodyTemplate = (rowData) => {
|
||||||
return (
|
return (
|
||||||
<div className="p-d-flex p-flex-column">
|
<div className="appPageSection__tableActions">
|
||||||
<Link to={`/bandi/${rowData.id}`}>
|
<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>
|
</Link>
|
||||||
{role === 'ROLE_INSTRUCTOR_MANAGER' && (
|
{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>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -147,7 +150,8 @@ const AllBandiPreInstructorTableAsync = () => {
|
|||||||
}
|
}
|
||||||
setLazyState({ ...lazyState, filters, first: 0 });
|
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) => {
|
const dateFilterTemplate = (options) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user