Skip to content

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

Use base modal in customer modal templates

Anna Siwik9132e5ed6193
diff --git a/templates/dashboard/customer/modal/confirm_promote.html b/templates/dashboard/customer/modal/confirm_promote.html
index 347e5c0059..0200a63cee 100644
--- a/templates/dashboard/customer/modal/confirm_promote.html
+++ b/templates/dashboard/customer/modal/confirm_promote.html
@@ -1,23 +1,21 @@
+{% extends "dashboard/base_modal.html" %}
+
{% load i18n %}
-<form action="{% url 'dashboard:customer-promote' pk=customer.pk %}" method="post" novalidate>
- {% csrf_token %}
- <div class="modal-content">
- <div class="row">
- <div class="col s12">
- <h5>
- {% trans "Promote to staff member" context "Dashboard confirmation modal" %}
- </h5>
- </div>
- </div>
- {% trans "Are you sure?" context "Dashboard confirmation modal" %}
- </div>
- <div class="modal-footer">
- <a href="#!" class="modal-action modal-close btn-flat waves-effect">
- {% trans "Cancel" context "Dashboard cancel action" %}
- </a>
- <button type="submit" class="modal-action btn-flat waves-effect">
- {% trans "Promote" context "Dashboard promote action" %}
- </button>
- </div>
-</form>
+{% block action_url %}
+{% url 'dashboard:customer-promote' pk=customer.pk %}
+{% endblock %}
+
+{% block title %}
+{% trans "Promote to staff member" context "Modal promote to staff member title" %}
+{% endblock %}
+
+{% block content %}
+<div class="col">
+ {% trans "Are you sure?" context "Modal promote to staff member text" %}
+</div>
+{% endblock %}
+
+{% block primary_action %}
+{% trans "Promote" context "Modal promote to staff member primary action" %}
+{% endblock %}