Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add missing template for delete view
Marcin Gębala02aee8621fa4
diff --git a/saleor/dashboard/templates/dashboard/category/category_confirm_delete.html b/saleor/dashboard/templates/dashboard/category/category_confirm_delete.htmlnew file mode 100644index 0000000000..aaed729303--- /dev/null+++ b/saleor/dashboard/templates/dashboard/category/category_confirm_delete.html@@ -0,0 +1,47 @@+{% extends "dashboard/base.html" %}+{% load i18n %}+{% load mptt_tags %}++{% block title %}{% trans "Delete category" %} - {{ block.super }}{% endblock %}++{% block content %}+ <form class="form form-horizontal" action="" method="post">+ {% csrf_token %}++ <div class="row">+ <div class="col-lg-12">+ <h1 class="page-header">+ {% blocktrans with category=category %}+ Are you sure you want to delete the category {{ category }}?+ {% endblocktrans %}+ </h1>+ </div>+ </div>++ {% if descendants %}+ <div class="row">+ <div class="col-lg-12">+ {% trans 'The following child categories will be deleted:' %}+ <ul>+ {% recursetree descendants %}+ <li>{{ node.name }}+ {% if not node.is_leaf_node %}+ <ul class="children">+ {{ children }}+ </ul>+ {% endif %}+ </li>+ {% endrecursetree %}+ </ul>+ </div>+ </div>+ {% endif %}++ <div class="form-group">+ <div class="col-md-6">+ <button class="btn btn-danger" type="submit"><i class="glyphicon glyphicon-trash"></i> {% trans "Delete" %}</button>+ <a class="btn btn-default" href="{% url 'dashboard:category-update' pk=category.pk %}"><i class="glyphicon glyphicon-remove"></i> {% trans "Cancel" %}</a>+ </div>+ </div>+ </form>+{% endblock %}