Skip to content

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

Change dashes to underscores in template file names

Anna Siwikfbaa5dceec2a
diff --git a/templates/checkout/details.html b/templates/checkout/details.html
index 2a1f36a202..a25cddd272 100644
--- a/templates/checkout/details.html
+++ b/templates/checkout/details.html
@@ -60,7 +60,7 @@
<div class="row checkout__review__section">
<div class="col-12">
<h3>{% trans "Promo code" context "Order review section title" %}</h3>
- {% include "checkout/snippets/voucher-form.html" with discount=checkout.discount form=voucher_form %}
+ {% include "checkout/snippets/voucher_form.html" with discount=checkout.discount form=voucher_form %}
</div>
</div>
<div class="row checkout__review__section">
diff --git a/templates/checkout/shipping_address.html b/templates/checkout/shipping_address.html
index 79d7bb55d2..4c7b0adc91 100644
--- a/templates/checkout/shipping_address.html
+++ b/templates/checkout/shipping_address.html
@@ -7,7 +7,7 @@
{% csrf_token %}
<h2>{% trans "Shipping address" context "Checkout shipping address title" %}</h2>
{% if request.user.is_authenticated %}
- {% include "checkout/snippets/addresses-form.html" with addresses_form=user_form addresses=additional_addresses address_form=address_form only %}
+ {% include "checkout/snippets/addresses_form.html" with addresses_form=user_form addresses=additional_addresses address_form=address_form only %}
{% else %}
{% bootstrap_form user_form %}
{% include "userprofile/snippets/address-form.html" with address_form=address_form only %}
diff --git a/templates/checkout/snippets/addresses-form.html b/templates/checkout/snippets/addresses_form.html
similarity index 84%
rename from templates/checkout/snippets/addresses-form.html
rename to templates/checkout/snippets/addresses_form.html
index af0d6999c2..d31f820ba2 100644
--- a/templates/checkout/snippets/addresses-form.html
+++ b/templates/checkout/snippets/addresses_form.html
@@ -2,13 +2,13 @@
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
{% if addresses_form.SHIPPING_ADDRESS %}
{% trans "Same as shipping" context "Checkout addresses form label" as same_as_shipping %}
- {% include "checkout/snippets/addresses-form-panel.html" with parent_element_id="accordion" radio_name=addresses_form.address.html_name radio_value=addresses_form.SHIPPING_ADDRESS label=same_as_shipping value=addresses_form.address.value only %}
+ {% include "checkout/snippets/addresses_form_panel.html" with parent_element_id="accordion" radio_name=addresses_form.address.html_name radio_value=addresses_form.SHIPPING_ADDRESS label=same_as_shipping value=addresses_form.address.value only %}
{% endif %}
{% for address in addresses %}
- {% include "checkout/snippets/addresses-form-panel.html" with parent_element_id="accordion" radio_name=addresses_form.address.html_name radio_value=address.id label=address value=addresses_form.address.value address=address only %}
+ {% include "checkout/snippets/addresses_form_panel.html" with parent_element_id="accordion" radio_name=addresses_form.address.html_name radio_value=address.id label=address value=addresses_form.address.value address=address only %}
{% endfor %}
{% if addresses_form.NEW_ADDRESS and address_form %}
{% trans "Enter a new address" context "Checkout addresses form label" as enter_a_new_address %}
- {% include "checkout/snippets/addresses-form-panel.html" with parent_element_id="accordion" radio_name=addresses_form.address.html_name radio_value=addresses_form.NEW_ADDRESS label=enter_a_new_address value=addresses_form.address.value address_form=address_form only %}
+ {% include "checkout/snippets/addresses_form_panel.html" with parent_element_id="accordion" radio_name=addresses_form.address.html_name radio_value=addresses_form.NEW_ADDRESS label=enter_a_new_address value=addresses_form.address.value address_form=address_form only %}
{% endif %}
</div>
diff --git a/templates/checkout/snippets/addresses-form-panel.html b/templates/checkout/snippets/addresses_form_panel.html
similarity index 100%
rename from templates/checkout/snippets/addresses-form-panel.html
rename to templates/checkout/snippets/addresses_form_panel.html
diff --git a/templates/checkout/snippets/voucher-form.html b/templates/checkout/snippets/voucher_form.html
similarity index 100%
rename from templates/checkout/snippets/voucher-form.html
rename to templates/checkout/snippets/voucher_form.html
diff --git a/templates/checkout/summary.html b/templates/checkout/summary.html
index 1b7c02b308..f507aefb5c 100644
--- a/templates/checkout/summary.html
+++ b/templates/checkout/summary.html
@@ -5,7 +5,7 @@
<form method="post" novalidate>
{% csrf_token %}
<h2>{% trans "Billing address" context "Checkout summary title" %}</h2>
- {% include "checkout/snippets/addresses-form.html" with addresses_form=addresses_form addresses=additional_addresses address_form=address_form only %}
+ {% include "checkout/snippets/addresses_form.html" with addresses_form=addresses_form addresses=additional_addresses address_form=address_form only %}
<p class="text-md-right">
<button type="submit" class="btn primary">
{% trans "Order &amp Pay" context "Checkout summary primary action" %}
diff --git a/templates/checkout/summary_without_shipping.html b/templates/checkout/summary_without_shipping.html
index 0c4f3f4c15..2b3d9c05df 100644
--- a/templates/checkout/summary_without_shipping.html
+++ b/templates/checkout/summary_without_shipping.html
@@ -7,7 +7,7 @@
{% csrf_token %}
<h2>{% trans "Billing address" context "Checkout summary without shipping title" %}</h2>
{% if request.user.is_authenticated %}
- {% include "checkout/snippets/addresses-form.html" with addresses_form=addresses_form addresses=additional_addresses address_form=address_form only %}
+ {% include "checkout/snippets/addresses_form.html" with addresses_form=addresses_form addresses=additional_addresses address_form=address_form only %}
{% else %}
{% bootstrap_form user_form %}
{% include "userprofile/snippets/address-form.html" with address_form=address_form only %}