diff --git a/benefits/core/context_processors.py b/benefits/core/context_processors.py index 2d3032cf3a..a9d4dccc85 100644 --- a/benefits/core/context_processors.py +++ b/benefits/core/context_processors.py @@ -13,6 +13,7 @@ def _agency_context(agency): "info_url": agency.info_url, "long_name": agency.long_name, "phone": agency.phone, + "selector_logo_template": agency.selector_logo_template, "short_name": agency.short_name, "slug": agency.slug, } diff --git a/benefits/core/migrations/0001_initial.py b/benefits/core/migrations/0001_initial.py index 6746ad65ce..0f34ef4a96 100644 --- a/benefits/core/migrations/0001_initial.py +++ b/benefits/core/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 4.2.4 on 2023-08-07 16:23 +# Generated by Django 4.2.4 on 2023-08-09 21:08 from django.db import migrations, models import django.db.models.deletion @@ -109,6 +109,7 @@ class Migration(migrations.Migration): ("active", models.BooleanField(default=False)), ("jws_signing_alg", models.TextField()), ("index_template", models.TextField()), + ("selector_logo_template", models.TextField()), ("eligibility_index_template", models.TextField()), ("enrollment_success_template", models.TextField()), ("help_template", models.TextField(null=True)), diff --git a/benefits/core/migrations/0002_data.py b/benefits/core/migrations/0002_data.py index 9a87248d70..835eca2e3c 100644 --- a/benefits/core/migrations/0002_data.py +++ b/benefits/core/migrations/0002_data.py @@ -257,6 +257,7 @@ def load_data(app, *args, **kwargs): jws_signing_alg=os.environ.get("MST_AGENCY_JWS_SIGNING_ALG", "RS256"), payment_processor=mst_payment_processor, index_template="core/index--mst.html", + selector_logo_template="core/includes/agency-selector-logo--mst.html", eligibility_index_template="eligibility/index--mst.html", enrollment_success_template="enrollment/success--mst.html", help_template="core/includes/help--mst.html", @@ -278,6 +279,7 @@ def load_data(app, *args, **kwargs): jws_signing_alg=os.environ.get("SACRT_AGENCY_JWS_SIGNING_ALG", "RS256"), payment_processor=sacrt_payment_processor, index_template="core/index--sacrt.html", + selector_logo_template="core/includes/agency-selector-logo--sacrt.html", eligibility_index_template="eligibility/index--sacrt.html", enrollment_success_template="enrollment/success--sacrt.html", ) diff --git a/benefits/core/models.py b/benefits/core/models.py index 31138ddb5b..3b0faa6b82 100644 --- a/benefits/core/models.py +++ b/benefits/core/models.py @@ -202,6 +202,7 @@ class TransitAgency(models.Model): # The JWS-compatible signing algorithm jws_signing_alg = models.TextField() index_template = models.TextField() + selector_logo_template = models.TextField() eligibility_index_template = models.TextField() enrollment_success_template = models.TextField() help_template = models.TextField(null=True) diff --git a/benefits/core/templates/core/includes/agency-selector-logo--mst.html b/benefits/core/templates/core/includes/agency-selector-logo--mst.html new file mode 100644 index 0000000000..d114540ff3 --- /dev/null +++ b/benefits/core/templates/core/includes/agency-selector-logo--mst.html @@ -0,0 +1,11 @@ +{% extends "core/includes/agency-selector-logo.html" %} + +{% block small_logo_dimensions %} +width="46" +height="29" +{% endblock small_logo_dimensions %} + +{% block large_logo_dimensions %} +width="117" +height="74" +{% endblock large_logo_dimensions %} diff --git a/benefits/core/templates/core/includes/agency-selector-logo--sacrt.html b/benefits/core/templates/core/includes/agency-selector-logo--sacrt.html new file mode 100644 index 0000000000..59e4a4fd47 --- /dev/null +++ b/benefits/core/templates/core/includes/agency-selector-logo--sacrt.html @@ -0,0 +1,11 @@ +{% extends "core/includes/agency-selector-logo.html" %} + +{% block small_logo_dimensions %} +width="24" +height="24" +{% endblock small_logo_dimensions %} + +{% block large_logo_dimensions %} +width="74" +height="74" +{% endblock large_logo_dimensions %} diff --git a/benefits/core/templates/core/includes/modal--agency-selector.html b/benefits/core/templates/core/includes/modal--agency-selector.html index 31a33cc740..e306535162 100644 --- a/benefits/core/templates/core/includes/modal--agency-selector.html +++ b/benefits/core/templates/core/includes/modal--agency-selector.html @@ -9,7 +9,7 @@