Update formatting for AT on event IO-625

This commit is contained in:
Patrick Fic
2021-02-16 10:31:47 -08:00
parent 2865623ed3
commit 32a370c3cd
2 changed files with 29 additions and 25 deletions

View File

@@ -1,10 +1,14 @@
Ø.rbc-time-header-cell-single-day {
.rbc-time-header-cell-single-day {
display: unset;
}
.rbc-time-view .rbc-allday-cell {
height: unset;
}
.rbc-event-label {
display: none;
}
.imex-event-arrived {
background-color: rgba(4, 141, 4, 0.4);
}

View File

@@ -1,4 +1,4 @@
import { Button, Popover } from "antd";
import { Button, Popover, Space } from "antd";
import React from "react";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";
@@ -27,7 +27,7 @@ export function ScheduleEventComponent({
{!event.isintake ? (
<strong>{event.title}</strong>
) : (
<div>
<Space>
<strong>{`${(event.job && event.job.ownr_fn) || ""} ${
(event.job && event.job.ownr_ln) || ""
}`}</strong>
@@ -37,7 +37,7 @@ export function ScheduleEventComponent({
} ${(event.job && event.job.v_model_desc) || ""}`}
</span>
<ScheduleEventColor event={event} />
</div>
</Space>
)}
{event.job ? (
@@ -113,27 +113,27 @@ export function ScheduleEventComponent({
const RegularEvent = event.isintake ? (
<div style={{ display: "flex", flexWrap: "wrap" }}>
<strong style={{ margin: ".1rem" }}>{`${
event.job.ro_number || t("general.labels.na")
}`}</strong>
<div style={{ margin: ".1rem" }}>{`${
(event.job && event.job.ownr_fn) || ""
} ${(event.job && event.job.ownr_ln) || ""} ${
(event.job && event.job.ownr_co_nm) || ""
}`}</div>
<div style={{ margin: ".1rem" }}>
{`${(event.job && event.job.v_model_yr) || ""} ${
(event.job && event.job.v_make_desc) || ""
} ${(event.job && event.job.v_model_desc) || ""}`}
</div>
<div style={{ margin: ".1rem" }}>
{`(${
(event.job && event.job.labhrs.aggregate.sum.mod_lb_hrs) || "0"
} / ${
(event.job && event.job.larhrs.aggregate.sum.mod_lb_hrs) || "0"
})`}
</div>
<Space>
<strong>{`${event.job.ro_number || t("general.labels.na")}`}</strong>
<span>{`${(event.job && event.job.ownr_fn) || ""} ${
(event.job && event.job.ownr_ln) || ""
} ${(event.job && event.job.ownr_co_nm) || ""}`}</span>
</Space>
<Space>
<span>
{" "}
{`${(event.job && event.job.v_model_yr) || ""} ${
(event.job && event.job.v_make_desc) || ""
} ${(event.job && event.job.v_model_desc) || ""}`}
</span>
<span>
{`(${
(event.job && event.job.labhrs.aggregate.sum.mod_lb_hrs) || "0"
} / ${
(event.job && event.job.larhrs.aggregate.sum.mod_lb_hrs) || "0"
})`}
</span>
</Space>
{event.job && event.job.alt_transport && (
<div style={{ margin: ".1rem" }}>{event.job.alt_transport}</div>
)}