IO-920 Required referral fields.

This commit is contained in:
Patrick Fic
2021-04-26 15:32:16 -07:00
parent e8db267a18
commit a408de0b90
16 changed files with 399 additions and 10 deletions

View File

@@ -93,6 +93,12 @@ export function JobsDetailGeneral({ bodyshop, jobRO, job, form }) {
<Form.Item
label={t("jobs.fields.referralsource")}
name="referral_source"
rules={[
{
required: job.converted && bodyshop.enforce_referral,
message: t("general.validation.required"),
},
]}
>
<Select disabled={jobRO} allowClear>
{bodyshop.md_referral_sources.map((s) => (