Skip to content

Commit

Permalink
feat(sbmtd/senior): define TransitAgency with placeholder templates
Browse files Browse the repository at this point in the history
  • Loading branch information
angela-tran committed Aug 9, 2023
1 parent 8c0280c commit 28a5e80
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
19 changes: 19 additions & 0 deletions benefits/core/migrations/0002_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,25 @@ def load_data(app, *args, **kwargs):
sacrt_agency.eligibility_types.set([sacrt_senior_type])
sacrt_agency.eligibility_verifiers.set([sacrt_senior_verifier])

sbmtd_agency = TransitAgency.objects.create(
slug="sbmtd",
short_name=os.environ.get("SBMTD_AGENCY_SHORT_NAME", "SBMTD (sample)"),
long_name=os.environ.get("SBMTD_AGENCY_LONG_NAME", "Santa Barbara MTD (sample)"),
agency_id="sbmtd",
merchant_id=os.environ.get("SBMTD_AGENCY_MERCHANT_ID", "sbmtd"),
info_url="https://sbmtd.gov/taptopride/",
phone="805-963-3366",
active=os.environ.get("SBMTD_AGENCY_ACTIVE", "True").lower() == "true",
private_key=client_private_key,
public_key=client_public_key,
jws_signing_alg=os.environ.get("SBMTD_AGENCY_JWS_SIGNING_ALG", "RS256"),
payment_processor=mst_payment_processor,
index_template="core/index--sbmtd.html",
eligibility_index_template="eligibility/index--sbmtd.html",
)
sbmtd_agency.eligibility_types.set([sbmtd_senior_type])
sbmtd_agency.eligibility_verifiers.set([sbmtd_senior_verifier])


class Migration(migrations.Migration):
dependencies = [
Expand Down
1 change: 1 addition & 0 deletions benefits/core/templates/core/index--sbmtd.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% extends "core/agency-index.html" %}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% extends "eligibility/index.html" %}

0 comments on commit 28a5e80

Please sign in to comment.