-
Notifications
You must be signed in to change notification settings - Fork 9
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
Feat: Add SBTMD Mobility Pass configuration #1771
Merged
Merged
Changes from 10 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
f2ad63d
feat(sbtmd): add Mobility Pass EligibilityType, EligibilityVerifier -…
machikoyasuda 1f5ae46
feat(sbmtd): add templates for media item, selection label, elig start
machikoyasuda a44b852
feat(stmtd): add Mobility Pass form
machikoyasuda d79f6d0
feat(sbmtd): spanish copy
machikoyasuda ea4edac
feat(stmtd): add Help q/a
machikoyasuda a0654c6
feat(sbmtd): new server public key var
machikoyasuda 2ecbf53
chore: run makemessages
machikoyasuda b9cdb3a
chore: rereun makemessages
machikoyasuda aef5c67
feat(sbmtd): add sbmtd, mst-specific server public key env vars
machikoyasuda c2e6574
feat(sbmtd): add SBMTD_MOBILITY_PASS_GROUP_ID
machikoyasuda e209a18
fix(sbmtd): add sbmtd mobility pass eligibility type to sbmtd
machikoyasuda File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{% load i18n %} | ||
|
||
<h2 class="h2-sm pt-4 pt-lg-8" id="mst-courtesy-card">{% translate "What is a Mobility Pass?" %}</h2> | ||
<p class="pt-2 pt-lg-4"> | ||
{% blocktranslate trimmed %} | ||
The Santa Barbara Metropolitan Transit District issues Mobility Pass cards to eligible riders. This transit benefit may need to be renewed in the future based on the expiration date of the Mobility Pass. Learn more at the <a href="https://sbmtd.gov/fares-passes/" target="_blank" rel="noopener noreferrer">SBMTD Fares & Passes</a>. | ||
{% endblocktranslate %} | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...y/templates/eligibility/includes/media-item--idcardcheck--start--sbmtd-mobility-pass.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% extends "eligibility/includes/media-item--idcardcheck.html" %} | ||
|
||
{% load i18n %} | ||
|
||
{% block heading %} | ||
{% translate "Your current Mobility Pass number" %} | ||
{% endblock heading %} | ||
|
||
{% block body %} | ||
<div class="media-body--details"> | ||
<p> | ||
{% translate "You do not need to have your physical card, but you will need your four-digit Mobility Pass number on the back of the card." %} | ||
</p> | ||
</div> | ||
{% endblock body %} |
10 changes: 10 additions & 0 deletions
10
...fits/eligibility/templates/eligibility/includes/selection-label--sbmtd-mobility-pass.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% extends "eligibility/includes/selection-label.html" %} | ||
{% load i18n %} | ||
|
||
{% block label %} | ||
{% translate "SBMTD Mobility Pass" %} | ||
{% endblock label %} | ||
|
||
{% block description %} | ||
{% translate "This option is for people who have a current SBMTD Mobility Pass." %} | ||
{% endblock description %} |
25 changes: 25 additions & 0 deletions
25
benefits/eligibility/templates/eligibility/start--sbmtd-mobility-pass.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{% extends "eligibility/start.html" %} | ||
{% load i18n %} | ||
|
||
{% block page-title %} | ||
{% translate "Agency card overview" %} | ||
{% endblock page-title %} | ||
|
||
{% block headline %} | ||
<div class="col-lg-8"> | ||
<h1>{% translate "You selected a Mobility Pass transit benefit." %}</h1> | ||
</div> | ||
{% endblock headline %} | ||
|
||
{% block media-item %} | ||
{% include "eligibility/includes/media-item--idcardcheck--start--sbmtd-mobility-pass.html" %} | ||
{% endblock media-item %} | ||
|
||
{% block call-to-action %} | ||
<div class="row d-flex justify-content-lg-end"> | ||
<div class="col-lg-3 offset-2 offset-sm-2 offset-lg-0 col-sm-8 col-8"> | ||
{% url "eligibility:confirm" as button_url %} | ||
<a href="{{ button_url }}" class="btn btn-lg btn-primary" role="button">{% translate "Continue" %}</a> | ||
</div> | ||
</div> | ||
{% endblock call-to-action %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry just noticed something else.
We need an app config and key vault secrets for this
active
setting as well.And let's go ahead and make the default
False
here so it doesn't turn on by accident.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@machikoyasuda we'll need a follow-up PR for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, all the
MOBILITY_PASS_*
environment variables need key vault secrets defined in Terraform. I'll create a new issue.See #1777