Skip to content

Commit 5214bbf

Browse files
committed
feat(in-person): specialize Switchio index template
1 parent b6c743b commit 5214bbf

2 files changed

Lines changed: 33 additions & 1 deletion

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{% extends "admin/flow-base.html" %}
2+
3+
{% block title %}
4+
{{ title }}
5+
{% endblock title %}
6+
7+
{% block flow-content %}
8+
<div class="p-3">
9+
<div class="loading">
10+
<p>
11+
<span class="spinner-border align-middle text-primary" role="status"></span>
12+
<span id="loading-message" class="fw-bold p-2">Please wait...</span>
13+
</p>
14+
</div>
15+
<div class="invisible">
16+
<p>Provide the rider's contactless debit or credit card details.</p>
17+
<iframe class="card-collection" name="card-collection-iframe"></iframe>
18+
</div>
19+
<div class="row d-flex justify-content-start p-3 pt-8">
20+
<div class="col-12">
21+
{% url routes.ADMIN_INDEX as url_cancel %}
22+
<a href="{{ url_cancel }}" class="btn btn-lg btn-outline-primary d-block">Cancel</a>
23+
</div>
24+
</div>
25+
</div>
26+
27+
{% include "enrollment_switchio/script.html" with gateway_url_route=routes.IN_PERSON_ENROLLMENT_SWITCHIO_GATEWAY_URL %}
28+
29+
{% for f in forms %}
30+
{% include "core/includes/form.html" with form=f %}
31+
{% endfor %}
32+
{% endblock flow-content %}

benefits/in_person/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,4 +260,4 @@ class SwitchioEnrollmentIndexView(SwitchioIndexView):
260260
route_server_error = routes.IN_PERSON_SERVER_ERROR
261261
route_system_error = routes.IN_PERSON_ENROLLMENT_SYSTEM_ERROR
262262
route_tokenize_success = routes.IN_PERSON_ENROLLMENT_SWITCHIO_INDEX
263-
template_name = ""
263+
template_name = "in_person/enrollment/index_switchio.html"

0 commit comments

Comments
 (0)