IO-1275 WIP Appointment notes.

This commit is contained in:
Patrick Fic
2021-07-28 11:00:02 -07:00
parent 35323ba624
commit 59b8bae182
18 changed files with 286 additions and 4791 deletions

View File

@@ -1,4 +1,5 @@
import { Button, Popover, Space } from "antd";
import { AlertFilled } from "@ant-design/icons";
import React, { useState } from "react";
import { useTranslation } from "react-i18next";
import { connect } from "react-redux";
@@ -83,6 +84,9 @@ export function ScheduleEventComponent({
{(event.job && event.job.alt_transport) || ""}
<ScheduleAtChange job={event && event.job} />
</DataLabel>
<DataLabel label={t("appointments.fields.note")}>
{event.note || ""}
</DataLabel>
</div>
) : null}
@@ -161,6 +165,7 @@ export function ScheduleEventComponent({
const RegularEvent = event.isintake ? (
<div style={{ display: "flex", flexWrap: "wrap" }}>
<Space>
{event.note && <AlertFilled className="production-alert" />}
<strong>{`${event.job.ro_number || t("general.labels.na")}`}</strong>
<span>{`${(event.job && event.job.ownr_fn) || ""} ${
(event.job && event.job.ownr_ln) || ""