Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Move order modals to separate directory and cut prefixes
Jakub Draganek02681c0ff36a
diff --git a/saleor/dashboard/order/views.py b/saleor/dashboard/order/views.pyindex 85f5c3ad02..629f2b4b4d 100644--- a/saleor/dashboard/order/views.py+++ b/saleor/dashboard/order/views.py@@ -96,7 +96,7 @@ def order_add_note(request, order_pk):status = 400ctx = {'order': order, 'form': form}ctx.update(csrf(request))- template = 'dashboard/order/modal_add_note.html'+ template = 'dashboard/order/modal/add_note.html'return TemplateResponse(request, template, ctx, status=status)@@ -119,7 +119,7 @@ def capture_payment(request, order_pk, payment_pk):status = 400 if form.errors else 200ctx = {'captured': payment.captured_amount, 'currency': payment.currency,'form': form, 'order': order, 'payment': payment}- return TemplateResponse(request, 'dashboard/order/modal_capture.html', ctx,+ return TemplateResponse(request, 'dashboard/order/modal/capture.html', ctx,status=status)@@ -142,7 +142,7 @@ def refund_payment(request, order_pk, payment_pk):status = 400 if form.errors else 200ctx = {'captured': payment.captured_amount, 'currency': payment.currency,'form': form, 'order': order, 'payment': payment}- return TemplateResponse(request, 'dashboard/order/modal_refund.html', ctx,+ return TemplateResponse(request, 'dashboard/order/modal/refund.html', ctx,status=status)@@ -160,7 +160,7 @@ def release_payment(request, order_pk, payment_pk):status = 400 if form.errors else 200ctx = {'captured': payment.captured_amount, 'currency': payment.currency,'form': form, 'order': order, 'payment': payment}- return TemplateResponse(request, 'dashboard/order/modal_release.html', ctx,+ return TemplateResponse(request, 'dashboard/order/modal/release.html', ctx,status=status)@@ -191,7 +191,7 @@ def orderline_change_quantity(request, order_pk, line_pk):elif form.errors:status = 400ctx = {'order': order, 'object': item, 'form': form}- template = 'dashboard/order/modal_change_quantity.html'+ template = 'dashboard/order/modal/change_quantity.html'return TemplateResponse(request, template, ctx, status=status)@@ -227,7 +227,7 @@ def orderline_split(request, order_pk, line_pk):elif form.errors:status = 400ctx = {'order': order, 'object': item, 'form': form, 'line_pk': line_pk}- template = 'dashboard/order/modal_split_order_line.html'+ template = 'dashboard/order/modal/split_order_line.html'return TemplateResponse(request, template, ctx, status=status)@@ -252,7 +252,7 @@ def orderline_cancel(request, order_pk, line_pk):status = 400ctx = {'order': order, 'item': item, 'form': form}return TemplateResponse(- request, 'dashboard/order/modal_cancel_line.html',+ request, 'dashboard/order/modal/cancel_line.html',ctx, status=status)@@ -275,7 +275,7 @@ def ship_delivery_group(request, order_pk, group_pk):elif form.errors:status = 400ctx = {'order': order, 'group': group, 'form': form}- template = 'dashboard/order/modal_ship_delivery_group.html'+ template = 'dashboard/order/modal/ship_delivery_group.html'return TemplateResponse(request, template, ctx, status=status)@@ -298,7 +298,7 @@ def cancel_delivery_group(request, order_pk, group_pk):elif form.errors:status = 400ctx = {'order': order, 'group': group}- template = 'dashboard/order/modal_cancel_delivery_group.html'+ template = 'dashboard/order/modal/cancel_delivery_group.html'return TemplateResponse(request, template, ctx, status=status)@@ -343,7 +343,7 @@ def cancel_order(request, order_pk):elif form.errors:status = 400ctx = {'order': order}- return TemplateResponse(request, 'dashboard/order/modal_cancel_order.html',+ return TemplateResponse(request, 'dashboard/order/modal/cancel_order.html',ctx, status=status)@@ -364,5 +364,5 @@ def remove_order_voucher(request, order_pk):status = 400ctx = {'order': order}return TemplateResponse(request,- 'dashboard/order/modal_order_remove_voucher.html',+ 'dashboard/order/modal/order_remove_voucher.html',ctx, status=status)diff --git a/templates/dashboard/order/modal_add_note.html b/templates/dashboard/order/modal/add_note.htmlsimilarity index 100%rename from templates/dashboard/order/modal_add_note.htmlrename to templates/dashboard/order/modal/add_note.htmldiff --git a/templates/dashboard/order/modal_cancel_delivery_group.html b/templates/dashboard/order/modal/cancel_delivery_group.htmlsimilarity index 100%rename from templates/dashboard/order/modal_cancel_delivery_group.htmlrename to templates/dashboard/order/modal/cancel_delivery_group.htmldiff --git a/templates/dashboard/order/modal_cancel_line.html b/templates/dashboard/order/modal/cancel_line.htmlsimilarity index 100%rename from templates/dashboard/order/modal_cancel_line.htmlrename to templates/dashboard/order/modal/cancel_line.htmldiff --git a/templates/dashboard/order/modal_cancel_order.html b/templates/dashboard/order/modal/cancel_order.htmlsimilarity index 100%rename from templates/dashboard/order/modal_cancel_order.htmlrename to templates/dashboard/order/modal/cancel_order.htmldiff --git a/templates/dashboard/order/modal_capture.html b/templates/dashboard/order/modal/capture.htmlsimilarity index 100%rename from templates/dashboard/order/modal_capture.htmlrename to templates/dashboard/order/modal/capture.htmldiff --git a/templates/dashboard/order/modal_change_quantity.html b/templates/dashboard/order/modal/change_quantity.htmlsimilarity index 100%rename from templates/dashboard/order/modal_change_quantity.htmlrename to templates/dashboard/order/modal/change_quantity.htmldiff --git a/templates/dashboard/order/modal_order_remove_voucher.html b/templates/dashboard/order/modal/order_remove_voucher.htmlsimilarity index 100%rename from templates/dashboard/order/modal_order_remove_voucher.htmlrename to templates/dashboard/order/modal/order_remove_voucher.htmldiff --git a/templates/dashboard/order/modal_refund.html b/templates/dashboard/order/modal/refund.htmlsimilarity index 100%rename from templates/dashboard/order/modal_refund.htmlrename to templates/dashboard/order/modal/refund.htmldiff --git a/templates/dashboard/order/modal_release.html b/templates/dashboard/order/modal/release.htmlsimilarity index 100%rename from templates/dashboard/order/modal_release.htmlrename to templates/dashboard/order/modal/release.htmldiff --git a/templates/dashboard/order/modal_ship_delivery_group.html b/templates/dashboard/order/modal/ship_delivery_group.htmlsimilarity index 100%rename from templates/dashboard/order/modal_ship_delivery_group.htmlrename to templates/dashboard/order/modal/ship_delivery_group.htmldiff --git a/templates/dashboard/order/modal_split_order_line.html b/templates/dashboard/order/modal/split_order_line.htmlsimilarity index 100%rename from templates/dashboard/order/modal_split_order_line.htmlrename to templates/dashboard/order/modal/split_order_line.html