Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix rendering month and year fields

Marcin Gębala34010c6d6070
diff --git a/templates/payments/credit_card_expiry_widget.html b/templates/payments/credit_card_expiry_widget.html
index a00107359d..c391003d00 100644
--- a/templates/payments/credit_card_expiry_widget.html
+++ b/templates/payments/credit_card_expiry_widget.html
@@ -1,4 +1,7 @@
-<div class="row">
- <div class="col-6">{{ month }}</div>
- <div class="col-6">{{ year }}</div>
-</div>
+<span style="white-space: nowrap">
+ {% with widget.subwidgets.0 as month %}
+ {% with widget.subwidgets.1 as year %}
+ {% include month.template_name with widget=month %} / {% include year.template_name with widget=year %}
+ {% endwith %}
+ {% endwith %}
+</span>