Skip to content

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

Move payments templates

Michal Ociepka2d4015fc936f
diff --git a/order/templates/order/details.html b/order/templates/order/details.html
deleted file mode 100644
index 91b0508d26..0000000000
--- a/order/templates/order/details.html
+++ /dev/null
@@ -1,9 +0,0 @@
-{% extends "base.html" %}
-
-{% load as_bootstrap from bootstrap %}
-
-{% block content %}
-<h2>Payment</h2>
-{% block forms %}{% endblock %}
-
-{% endblock content %}
diff --git a/order/templates/order/authorizenet.html b/payment/templates/payment/authorizenet.html
similarity index 94%
rename from order/templates/order/authorizenet.html
rename to payment/templates/payment/authorizenet.html
index b16c63b298..4052ed476b 100644
--- a/order/templates/order/authorizenet.html
+++ b/payment/templates/payment/authorizenet.html
@@ -1,4 +1,4 @@
-{% extends "order/details.html" %}
+{% extends "payment/details.html" %}
{% load as_bootstrap from bootstrap %}
{% load gross from prices %}
diff --git a/payment/templates/payment/details.html b/payment/templates/payment/details.html
new file mode 100644
index 0000000000..bc00a7d53f
--- /dev/null
+++ b/payment/templates/payment/details.html
@@ -0,0 +1,20 @@
+{% extends "base.html" %}
+
+{% load as_bootstrap from bootstrap %}
+
+{% block content %}
+<h2>Payment</h2>
+{% block forms %}
+{% if form %}
+<form method="post" action="{{ form.action }}" class="form-horizontal">
+ {{ form|as_bootstrap }}
+ <div class="form-actions">
+ <button type="submit" class="btn btn-primary">
+ Save changes
+ </button>
+ </div>
+</form>
+{% endif %}
+{% endblock forms %}
+
+{% endblock content %}
diff --git a/order/templates/order/payment.html b/payment/templates/payment/index.html
similarity index 90%
rename from order/templates/order/payment.html
rename to payment/templates/payment/index.html
index 7925904b01..6c0eabfc0b 100644
--- a/order/templates/order/payment.html
+++ b/payment/templates/payment/index.html
@@ -1,4 +1,4 @@
-{% extends "order/details.html" %}
+{% extends "payment/details.html" %}
{% load as_bootstrap from bootstrap %}
{% load gross from prices %}
diff --git a/order/templates/order/paypal.html b/payment/templates/payment/paypal.html
similarity index 90%
rename from order/templates/order/paypal.html
rename to payment/templates/payment/paypal.html
index a2b4597536..6f6f58fdcd 100644
--- a/order/templates/order/paypal.html
+++ b/payment/templates/payment/paypal.html
@@ -1,4 +1,4 @@
-{% extends "order/details.html" %}
+{% extends "payment/details.html" %}
{% load as_bootstrap from bootstrap %}
{% load gross from prices %}