fix(referrals): restore existing hosted referral CTA and remove native placeholder
This commit is contained in:
7 files changed
+27
-11
No files matched your search
@@ -7,7 +7,7 @@ import { formModeForRuntime, resolveFormAIframe, resolveFormMode, resolveMockFor
|
||||
const { lang = 'en', showBackground = false, route = '' } = Astro.props;
|
||||
const text = formMessages(lang);
|
||||
const title = Astro.props.title ?? text.heading;
|
||||
const logicalForm: LogicalForm = Astro.props.logicalForm ?? (Astro.props.title === 'Physician & Insurer Referrals' ? 'referral' : 'service');
|
||||
const logicalForm: LogicalForm = Astro.props.logicalForm ?? 'service';
|
||||
const config = resolveFormMode(import.meta.env.PUBLIC_AIA_FORMS_MODE);
|
||||
const mode = formModeForRuntime(config);
|
||||
const mockResult = resolveMockFormResult(import.meta.env.PUBLIC_AIA_FORMS_MOCK_RESULT);
|
||||
|
||||
@@ -26,4 +26,4 @@ At the Arizona Institute for Autism, we are here to support your clients reach n
|
||||
|
||||
To provide the highest level of optimal care, we know that it is essential to provide a working partnership with the client’s diagnostic provider, physician, and their insurance company. To facilitate this collaboration, we have built a system of reporting metrics on the child’s treatment plan with supporting progress charts we share with our partners. This information keeps everyone involved up to date on the client’s progress and future needs. If you are an insurance company or diagnostic provider interested in working with us, contact us to learn more about our referral process.
|
||||
|
||||
<Button href="#form-title" center>Refer a Client</Button>
|
||||
<Button href="https://form.jotform.com/231638510219149" center>Refer a Client</Button>
|
||||
@@ -14,7 +14,7 @@ import PageHero from '../components/PageHero.astro';
|
||||
import ServiceInquiryDrawer from '../components/ServiceInquiryDrawer.astro';
|
||||
import { pageHeroImages } from '../data/page-visuals';
|
||||
const { entry } = Astro.props;
|
||||
const showForm = ['client-consultation', 'schedule-consultation', 'referrals'].includes(entry.data.slug);
|
||||
const showForm = ['client-consultation', 'schedule-consultation'].includes(entry.data.slug);
|
||||
const serviceTitles: Record<string, Record<string, string>> = {
|
||||
en: {
|
||||
'aba-therapy': 'Behavioral',
|
||||
@@ -86,5 +86,5 @@ if (entry.data.slug === 'team' && entry.data.lang === 'en' && !entry.data.team)
|
||||
: <article class:list={['prose', 'source-page', 'container', { 'service-page': isService }]}><slot /></article>}
|
||||
{isTour && <OpenStreetMap lang={entry.data.lang} />}
|
||||
{isService && (entry.data.lang === 'en' || entry.data.lang === 'es') && <ServiceInquiryDrawer service={entry.data.slug} lang={entry.data.lang} route={route} />}
|
||||
{showForm && <FormShell lang={entry.data.lang} route={route} title={bannerTitle} logicalForm={entry.data.slug === 'referrals' ? 'referral' : 'service'} showBackground={entry.data.slug === 'client-consultation'} />}
|
||||
{showForm && <FormShell lang={entry.data.lang} route={route} title={bannerTitle} logicalForm="service" showBackground={entry.data.slug === 'client-consultation'} />}
|
||||
</BaseLayout>
|
||||
@@ -1,5 +1,5 @@
|
||||
export type FormMode = 'live' | 'off' | 'mock';
|
||||
export type LogicalForm = 'general' | 'service' | 'referral';
|
||||
export type LogicalForm = 'general' | 'service';
|
||||
export type MockFormResult = 'success' | 'failed' | 'unavailable';
|
||||
|
||||
export interface FormModeConfig {
|
||||
@@ -170,7 +170,6 @@ export const formRouteMapping: ReadonlyArray<{
|
||||
{ route: '/client-consultation', logicalForm: 'service', kind: 'native-instance' },
|
||||
{ route: '/es/client-consultation', logicalForm: 'service', kind: 'native-instance' },
|
||||
{ route: '/schedule-consultation', logicalForm: 'service', kind: 'native-instance' },
|
||||
{ route: '/referrals', logicalForm: 'referral', kind: 'native-instance' },
|
||||
{ route: '/aba-therapy', logicalForm: 'service', kind: 'native-instance' },
|
||||
{ route: '/autism-evaluations', logicalForm: 'service', kind: 'native-instance' },
|
||||
{ route: '/learner-social-club', logicalForm: 'service', kind: 'native-instance' },
|
||||
|
||||
Reference in new issue
Block a user