-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(enrollment): define blocks for overriding index template
- Loading branch information
1 parent
57928b4
commit 82daac4
Showing
3 changed files
with
47 additions
and
5 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
.../enrollment/templates/enrollment/includes/media-item--bankcardcheck--index--calfresh.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,22 @@ | ||
{% extends "core/includes/media-item.html" %} | ||
{% load i18n %} | ||
|
||
{% block icon %} | ||
{% include "core/includes/icon.html" with name="bankcardcheck" %} | ||
{% endblock icon %} | ||
|
||
{% block heading %} | ||
{% translate "The next step is to connect your contactless card to your transit benefit" %} | ||
{% endblock heading %} | ||
|
||
{% block body %} | ||
<div class="media-body--details"> | ||
<p> | ||
{% translate "You will be directed to our payment partner, " %} | ||
{% include "core/includes/modal-trigger.html" with modal="modal--littlepay" text="Littlepay" period=True %} | ||
{% translate "We don’t store your information, and you won’t be charged." %} | ||
</p> | ||
</div> | ||
|
||
{% include "enrollment/includes/modal--littlepay.html" with id="modal--littlepay" size="modal-md" header="p-md-2 p-3" body="pb-md-3 mb-md-3 mx-md-3 py-0 pt-0 absolute-top" %} | ||
{% endblock body %} |
16 changes: 16 additions & 0 deletions
16
benefits/enrollment/templates/enrollment/index--calfresh.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,16 @@ | ||
{% extends "enrollment/index.html" %} | ||
{% load i18n %} | ||
|
||
{% block media-items %} | ||
<div class="col-12 col-sm-12 col-lg-8"> | ||
<ul class="media-list mx-0 px-0 d-flex justify-content-center flex-column"> | ||
{% include "enrollment/includes/media-item--bankcardcheck--index--calfresh.html" %} | ||
</ul> | ||
</div> | ||
{% endblock media-items %} | ||
|
||
{% block additional-info %} | ||
<div class="col-12 col-sm-12 col-lg-8"> | ||
<p>Info alert here</p> | ||
</div> | ||
{% endblock additional-info %} |
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