Skip to content

Commit 84cbc98

Browse files
authored
VACMS-19888 Remove old email signup widget and feature toggle (#2404)
1 parent 4675077 commit 84cbc98

File tree

2 files changed

+1
-47
lines changed

2 files changed

+1
-47
lines changed

src/site/filters/liquid.js

-4
Original file line numberDiff line numberDiff line change
@@ -2241,8 +2241,4 @@ module.exports = function registerFilters() {
22412241
}
22422242
return null;
22432243
};
2244-
2245-
liquid.filters.showExistingEmailForm = () => {
2246-
return cmsFeatureFlags.FEATURE_EMAIL_UPDATE_WIDGET;
2247-
};
22482244
};

src/site/includes/email-update-signup.drupal.liquid

+1-43
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,5 @@
11
<div class="homepage-email-update-wrapper vads-u-background-color--primary-alt-lightest vads-u-padding-x--2p5 vads-u-padding-top--2p5">
2-
{% assign shouldShowExistingEmailForm = '' | showExistingEmailForm %}
3-
4-
{% if shouldShowExistingEmailForm %}
5-
<div class="vads-u-display--flex vads-u-justify-content--center">
6-
<div class="vads-u-margin-top--2p5 medium-screen:vads-u-margin-top--0">
7-
<form
8-
action="https://public.govdelivery.com/accounts/USVACHOOSE/subscribers/qualify"
9-
accept-charset="UTF-8"
10-
method="post"
11-
>
12-
<input type="hidden" name="utf8" value="">
13-
<input type="hidden" name="category_id" id="category_id_top" value="USVACHOOSE_C1">
14-
<input type="hidden" name="email" id="homepage-hidden-email" value="">
15-
<va-text-input
16-
autocomplete="email"
17-
class="vads-u-width--full medium-screen:vads-u-width-auto homepage-email-input"
18-
form-heading="Sign up to get the latest VA updates"
19-
form-heading-level="2"
20-
id="homepage-email-signup-input"
21-
inputmode="email"
22-
label="Email Address"
23-
type="email"
24-
use-forms-pattern="single"
25-
/></va-text-input>
26-
<button
27-
onclick="recordMultipleEvents([
28-
{
29-
event: 'cta-button-click', 'button-type': 'primary', 'button-click-label': 'Sign up',
30-
},
31-
{ event: 'homepage-email-sign-up', action: 'Homepage email sign up' }
32-
]);"
33-
type="submit"
34-
class="vads-u-width--full
35-
medium-screen:vads-u-width--auto
36-
vads-u-display--block vads-u-margin-bottom--2">
37-
Sign up
38-
</button>
39-
</form>
40-
</div>
41-
</div>
42-
{% else %}
43-
<div data-widget-type="homepage-email-signup"></div>
44-
{% endif %}
2+
<div data-widget-type="homepage-email-signup"></div>
453
<div id="vets-banner-1" class="vads-u-display--none medium-screen:vads-u-display--block">
464
<div class="veteran-banner-container vads-u-margin-y--0 vads-u-margin-x--auto">
475
<picture>

0 commit comments

Comments
 (0)