Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VACMS-19516 Adjust email container structure and spacing #2348

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 39 additions & 39 deletions src/site/includes/email-update-signup.drupal.liquid
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
<div class="homepage-email-update-wrapper vads-u-background-color--primary-alt-lightest vads-u-padding-x--2p5 vads-u-padding-top--2p5">
{% assign shouldShowExistingEmailForm = '' | showExistingEmailForm %}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assign / if moved from lines 4-6 to lines 2-4. Then the else and endif moved from lines 40-42 to lines 42-44. The rest of the code is unchanged.


{% if shouldShowExistingEmailForm %}
<div class="vads-u-display--flex vads-u-justify-content--center">
<div class="vads-u-margin-top--2p5 medium-screen:vads-u-margin-top--0">
{% assign shouldShowExistingEmailForm = '' | showExistingEmailForm %}

{% if shouldShowExistingEmailForm %}
<form
action="https://public.govdelivery.com/accounts/USVACHOOSE/subscribers/qualify"
accept-charset="UTF-8"
method="post"
>
<input type="hidden" name="utf8" value="✓">
<input type="hidden" name="category_id" id="category_id_top" value="USVACHOOSE_C1">
<input type="hidden" name="email" id="homepage-hidden-email" value="">
<va-text-input
autocomplete="email"
class="vads-u-width--full medium-screen:vads-u-width-auto homepage-email-input"
form-heading="Sign up to get the latest VA updates"
form-heading-level="2"
id="homepage-email-signup-input"
inputmode="email"
label="Email Address"
type="email"
use-forms-pattern="single"
/></va-text-input>
<button
onclick="recordMultipleEvents([
{
event: 'cta-button-click', 'button-type': 'primary', 'button-click-label': 'Sign up',
},
{ event: 'homepage-email-sign-up', action: 'Homepage email sign up' }
]);"
type="submit"
class="vads-u-width--full
medium-screen:vads-u-width--auto
vads-u-display--block vads-u-margin-bottom--2">
Sign up
</button>
</form>
{% else %}
<div data-widget-type="homepage-email-signup"></div>
{% endif %}
<form
action="https://public.govdelivery.com/accounts/USVACHOOSE/subscribers/qualify"
accept-charset="UTF-8"
method="post"
>
<input type="hidden" name="utf8" value="✓">
<input type="hidden" name="category_id" id="category_id_top" value="USVACHOOSE_C1">
<input type="hidden" name="email" id="homepage-hidden-email" value="">
<va-text-input
autocomplete="email"
class="vads-u-width--full medium-screen:vads-u-width-auto homepage-email-input"
form-heading="Sign up to get the latest VA updates"
form-heading-level="2"
id="homepage-email-signup-input"
inputmode="email"
label="Email Address"
type="email"
use-forms-pattern="single"
/></va-text-input>
<button
onclick="recordMultipleEvents([
{
event: 'cta-button-click', 'button-type': 'primary', 'button-click-label': 'Sign up',
},
{ event: 'homepage-email-sign-up', action: 'Homepage email sign up' }
]);"
type="submit"
class="vads-u-width--full
medium-screen:vads-u-width--auto
vads-u-display--block vads-u-margin-bottom--2">
Sign up
</button>
</form>
</div>
</div>
{% else %}
<div data-widget-type="homepage-email-signup"></div>
{% endif %}
<div id="vets-banner-1" class="vads-u-display--none medium-screen:vads-u-display--block">
<div class="veteran-banner-container vads-u-margin-y--0 vads-u-margin-x--auto">
<picture>
Expand Down
Loading