From 4995e44e069f2deef9a9e950d4964f73ea37b9bf Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Mon, 4 Oct 2021 11:43:33 -0700 Subject: [PATCH] IO-1424 Add other referral source --- bodyshop_translations.babel | 21 +++++++++ .../jobs-convert-button.component.jsx | 45 +++++++++++-------- .../jobs-create-jobs-info.component.jsx | 6 +++ .../jobs-detail-general.component.jsx | 6 +++ client/src/graphql/jobs.queries.js | 5 +++ client/src/translations/en_us/common.json | 1 + client/src/translations/es/common.json | 1 + client/src/translations/fr/common.json | 1 + hasura/metadata/tables.yaml | 3 ++ .../down.sql | 4 ++ .../up.sql | 2 + .../down.sql | 1 + .../up.sql | 1 + server/graphql-client/queries.js | 1 + 14 files changed, 80 insertions(+), 18 deletions(-) create mode 100644 hasura/migrations/1633371928424_alter_table_public_jobs_add_column_referral_soure_other/down.sql create mode 100644 hasura/migrations/1633371928424_alter_table_public_jobs_add_column_referral_soure_other/up.sql create mode 100644 hasura/migrations/1633371952863_alter_table_public_jobs_alter_column_referral_soure_other/down.sql create mode 100644 hasura/migrations/1633371952863_alter_table_public_jobs_alter_column_referral_soure_other/up.sql diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel index f5995934e..27e4063e0 100644 --- a/bodyshop_translations.babel +++ b/bodyshop_translations.babel @@ -22303,6 +22303,27 @@ + + referral_source_other + false + + + + + + en-US + false + + + es-MX + false + + + fr-CA + false + + + referralsource false diff --git a/client/src/components/jobs-convert-button/jobs-convert-button.component.jsx b/client/src/components/jobs-convert-button/jobs-convert-button.component.jsx index 2c42c7b58..b2c2b42e1 100644 --- a/client/src/components/jobs-convert-button/jobs-convert-button.component.jsx +++ b/client/src/components/jobs-convert-button/jobs-convert-button.component.jsx @@ -2,6 +2,7 @@ import { useMutation } from "@apollo/client"; import { Button, Form, + Input, notification, Popover, Select, @@ -112,24 +113,32 @@ export function JobsConvertButton({ )} {bodyshop.enforce_referral && ( - - - + <> + + + + + + + )} + + + + + +