This commit is contained in:
@@ -529,11 +529,13 @@ const EventsList = () => {
|
||||
{/* <button className="btn btn-primary me-2"><Filter size={16} className="me-2"></Filter>Filter</button> */}
|
||||
<ManageTable columns={columns} onColumnsChange={setColumns} />
|
||||
{AuthService.canEditMedicalEvents() && <button className="btn btn-primary me-2" onClick={() => goToCreateNew()}><Plus size={16}></Plus>Add New Medical Appointment</button>}
|
||||
<Export
|
||||
columns={columns}
|
||||
data={events.filter(event => event.status === (showDeletedItems ? 'inactive' : 'active'))}
|
||||
filename="events"
|
||||
/>
|
||||
{AuthService.canEditDriverAssignment() && (
|
||||
<Export
|
||||
columns={columns}
|
||||
data={events.filter(event => event.status === (showDeletedItems ? 'inactive' : 'active'))}
|
||||
filename="events"
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -689,9 +689,11 @@ const PersonnelInfoTable = ({transRoutes, showCompletedInfo,
|
||||
<>
|
||||
{!showGroupInfo && (<div className="list row mb-4">
|
||||
<div className="col-md-12">
|
||||
<CSVLink className="btn btn-primary btn-sm btn-no-deco" data={generateInboundSeniorsReportData()} filename={`Route Inbound Customers Show-up Report`}>
|
||||
Generate Inbound Participants Report
|
||||
</CSVLink>
|
||||
{canExportRouteReport && (
|
||||
<CSVLink className="btn btn-primary btn-sm btn-no-deco" data={generateInboundSeniorsReportData()} filename={`Route Inbound Customers Show-up Report`}>
|
||||
Generate Inbound Participants Report
|
||||
</CSVLink>
|
||||
)}
|
||||
</div>
|
||||
</div>)}
|
||||
{showGroupInfo && (<div className="list row mb-4">
|
||||
@@ -704,7 +706,7 @@ const PersonnelInfoTable = ({transRoutes, showCompletedInfo,
|
||||
<button className="btn btn-primary btn-sm me-2" onClick={() => goToReportWithSignature()}>Get Route Report With Signature</button>
|
||||
</>
|
||||
)}
|
||||
<button className="btn btn-primary btn-sm" onClick={() => openBulkUpdateModal()}>Bulk Update Route Customer Time</button>
|
||||
{allowForceEdit && <button className="btn btn-primary btn-sm" onClick={() => openBulkUpdateModal()}>Bulk Update Route Customer Time</button>}
|
||||
</div>
|
||||
|
||||
</div>)}
|
||||
|
||||
@@ -450,7 +450,7 @@ const RouteView = () => {
|
||||
style={{ width: '260px' }}
|
||||
value={routeStatusValue}
|
||||
onChange={(e) => setRouteStatusValue(e.target.value)}
|
||||
disabled={isSavingRouteStatus}
|
||||
disabled={isSavingRouteStatus || !canEditRoutes}
|
||||
>
|
||||
{routeStatusOptions.map((option) => (
|
||||
<option key={option.value || 'not-started'} value={option.value}>
|
||||
@@ -461,7 +461,7 @@ const RouteView = () => {
|
||||
<button
|
||||
className="btn btn-primary btn-sm"
|
||||
onClick={saveRouteStatus}
|
||||
disabled={isSavingRouteStatus}
|
||||
disabled={isSavingRouteStatus || !canEditRoutes}
|
||||
>
|
||||
{isSavingRouteStatus ? 'Saving...' : 'Save Status'}
|
||||
</button>
|
||||
|
||||
@@ -2163,7 +2163,9 @@ const RoutesDashboard = () => {
|
||||
</Dropdown.Toggle>
|
||||
<Dropdown.Menu as={customReportFilterMenu}/>
|
||||
</Dropdown>
|
||||
<button className="btn btn-primary"><Download size={16} className="me-2"></Download>Export</button>
|
||||
{AuthService.canExportTransportationScheduleReport() && (
|
||||
<button className="btn btn-primary"><Download size={16} className="me-2"></Download>Export</button>
|
||||
)}
|
||||
</> }
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user