diff --git a/benefits/core/templates/core/includes/modal-trigger-link.html b/benefits/core/templates/core/includes/modal-trigger-link.html deleted file mode 100644 index 1d78c7305..000000000 --- a/benefits/core/templates/core/includes/modal-trigger-link.html +++ /dev/null @@ -1,2 +0,0 @@ - -{{ text }}. diff --git a/benefits/core/templates/core/includes/modal-trigger.html b/benefits/core/templates/core/includes/modal-trigger.html index 4f3abef0b..44cbc7c5c 100644 --- a/benefits/core/templates/core/includes/modal-trigger.html +++ b/benefits/core/templates/core/includes/modal-trigger.html @@ -1,2 +1,4 @@ - - + +{# djlint:off #} +{{ text }}{% if login %}{% endif %}{% if period %}.{% endif %} +{# djlint:on #} diff --git a/benefits/core/templates/core/index.html b/benefits/core/templates/core/index.html index 9394fffe5..cbc9af750 100644 --- a/benefits/core/templates/core/index.html +++ b/benefits/core/templates/core/index.html @@ -10,7 +10,7 @@ {% endblock headline %} {% block call-to-action %} - {% translate "Choose your Provider" as trigger_text %} - {% include "core/includes/modal-trigger.html" with id="modal--agency-selector" classes="btn btn-lg btn-primary" text=trigger_text %} + {% translate "Choose your Provider" as text %} + {% include "core/includes/modal-trigger.html" with modal="modal--agency-selector" classes="btn btn-lg btn-primary" text=text period=False %} {% include "core/includes/modal--agency-selector.html" with id="modal--agency-selector" %} {% endblock call-to-action %} diff --git a/benefits/eligibility/templates/eligibility/includes/media-item--bankcardcheck--start.html b/benefits/eligibility/templates/eligibility/includes/media-item--bankcardcheck--start.html index b05937954..76f4cc6f3 100644 --- a/benefits/eligibility/templates/eligibility/includes/media-item--bankcardcheck--start.html +++ b/benefits/eligibility/templates/eligibility/includes/media-item--bankcardcheck--start.html @@ -14,8 +14,8 @@

{% translate "Your contactless card must be a debit or credit card by Visa or Mastercard." %} - {% translate "Learn more about contactless cards" as trigger_text %} - {% include "core/includes/modal-trigger-link.html" with id="modal--contactless" text=trigger_text %} + {% translate "Learn more about contactless cards" as text %} + {% include "core/includes/modal-trigger.html" with modal="modal--contactless" text=text period=True %}

diff --git a/benefits/eligibility/templates/eligibility/includes/media-item--idcardcheck--start--senior.html b/benefits/eligibility/templates/eligibility/includes/media-item--idcardcheck--start--senior.html index d252de14f..dd3a89ee7 100644 --- a/benefits/eligibility/templates/eligibility/includes/media-item--idcardcheck--start--senior.html +++ b/benefits/eligibility/templates/eligibility/includes/media-item--idcardcheck--start--senior.html @@ -10,8 +10,8 @@

{% translate "You will be able to create an account using your email address if you do not already have one. We use your Login.gov account to verify your identity." %} - {% translate "Learn more about identity verification" as trigger_text %} - {% include "core/includes/modal-trigger-link.html" with id="modal--identity-verification" text=trigger_text %} + {% translate "Learn more about identity verification" as text %} + {% include "core/includes/modal-trigger.html" with modal="modal--identity-verification" text=text period=True %}

{% translate "For this process you will need:" %}

diff --git a/benefits/eligibility/templates/eligibility/includes/selection-label--senior.html b/benefits/eligibility/templates/eligibility/includes/selection-label--senior.html index 9c583d1a9..b7df3f413 100644 --- a/benefits/eligibility/templates/eligibility/includes/selection-label--senior.html +++ b/benefits/eligibility/templates/eligibility/includes/selection-label--senior.html @@ -8,11 +8,7 @@ {% block description %} {% translate "You must be 65 years or older. You will need to verify your identity with" %} - - - . + {% include "core/includes/modal-trigger.html" with classes="border-0 bg-transparent p-0" id="login" modal="modal--login-gov" login=True period=True %} {% include "eligibility/includes/modal--senior-help.html" with id="modal--login-gov" size="modal-lg" %} {% endblock description %} diff --git a/benefits/enrollment/templates/enrollment/includes/media-item--bankcardcheck--index.html b/benefits/enrollment/templates/enrollment/includes/media-item--bankcardcheck--index.html index 4974b5f90..16c76f2e4 100644 --- a/benefits/enrollment/templates/enrollment/includes/media-item--bankcardcheck--index.html +++ b/benefits/enrollment/templates/enrollment/includes/media-item--bankcardcheck--index.html @@ -14,8 +14,8 @@

{% translate "You will be directed to our payment partner, " %} - {% include "core/includes/modal-trigger-link.html" with id="modal--littlepay" text="Littlepay" %} {% translate "We don’t store your information, and you won’t be charged." %} + {% include "core/includes/modal-trigger.html" with modal="modal--littlepay" text="Littlepay" period=True %}

{% translate "Please use a debit or credit card by Visa or Mastercard." %}