added recored by column
This commit is contained in:
parent
9c41788a6c
commit
cf23803b99
@ -85,12 +85,13 @@ const AttendLogs = ({ Id }) => {
|
|||||||
);
|
);
|
||||||
tooltipTriggerList.forEach((el) => new bootstrap.Tooltip(el));
|
tooltipTriggerList.forEach((el) => new bootstrap.Tooltip(el));
|
||||||
}, [] );
|
}, [] );
|
||||||
|
console.log(logs[0]?.updatedByEmployee?.firstName)
|
||||||
return (
|
return (
|
||||||
<div className="table-responsive">
|
<div className="table-responsive">
|
||||||
<div className="text-start">
|
<div className="text-start">
|
||||||
{logs && !loading && (
|
{logs && !loading && (
|
||||||
<p>
|
<p>
|
||||||
Attendance for{" "}
|
Attendance logs for{" "}
|
||||||
{logs[0]?.employee?.firstName + " " + logs[0]?.employee?.lastName}{" "}
|
{logs[0]?.employee?.firstName + " " + logs[0]?.employee?.lastName}{" "}
|
||||||
on {logs[0]?.activityTime.slice(0, 10)}{" "}
|
on {logs[0]?.activityTime.slice(0, 10)}{" "}
|
||||||
</p>
|
</p>
|
||||||
@ -106,11 +107,13 @@ const AttendLogs = ({ Id }) => {
|
|||||||
<table className="table table-sm mb-0">
|
<table className="table table-sm mb-0">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style={{ width: "20%" }}>Date</th>
|
<th >Date</th>
|
||||||
<th style={{ width: "15%" }}>Time</th>
|
<th >Time</th>
|
||||||
<th style={{ width: "20%" }}>Activity</th>
|
<th >Activity</th>
|
||||||
<th style={{ width: "20%" }}>Location</th>
|
<th >Location</th>
|
||||||
<th style={{ width: "45%" }}>Description</th>
|
<th >Recored By</th>
|
||||||
|
<th >Description</th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -125,7 +128,7 @@ const AttendLogs = ({ Id }) => {
|
|||||||
<td>
|
<td>
|
||||||
{log?.latitude != 0 ? (
|
{log?.latitude != 0 ? (
|
||||||
<i
|
<i
|
||||||
class="bx bx-location-plus text-warning cursor-pointer"
|
class="bx bx-location-plus text-danger cursor-pointer"
|
||||||
data-bs-toggle="tooltip"
|
data-bs-toggle="tooltip"
|
||||||
data-bs-offset="0,8"
|
data-bs-offset="0,8"
|
||||||
data-bs-placement="top"
|
data-bs-placement="top"
|
||||||
@ -139,9 +142,13 @@ const AttendLogs = ({ Id }) => {
|
|||||||
"--"
|
"--"
|
||||||
)}
|
)}
|
||||||
</td>
|
</td>
|
||||||
<td className="text-wrap" colSpan={3}>
|
<td className="text-wrap" >
|
||||||
{log?.comment}
|
{`${logs[0]?.updatedByEmployee?.firstName ?? ''} ${logs[0]?.updatedByEmployee?.lastName ?? ''}`} mahajan
|
||||||
</td>
|
</td>
|
||||||
|
<td className="text-wrap" colSpan={3} >
|
||||||
|
{log?.comment || "--"}
|
||||||
|
</td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
))}
|
))}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user