Skip to content

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

Move add button to data-tables in shipping method

Krzysztof Białogłowicz4f2392e9f909
diff --git a/templates/dashboard/shipping/method_list.html b/templates/dashboard/shipping/method_list.html
index 8af3111515..2cafa99072 100644
--- a/templates/dashboard/shipping/method_list.html
+++ b/templates/dashboard/shipping/method_list.html
@@ -15,19 +15,14 @@
</ul>
{% endblock %}
-{% block header_extra %}
- <div class="fixed-action-btn">
- <a class="btn-fab btn-floating btn-large waves-effect waves-light teal"
- title="{% trans "Add method" context "Shipping method list add button text" %}"
- href="{% url 'dashboard:shipping-method-add' %}">
- <i class="material-icons">add</i>
- </a>
- </div>
-{% endblock %}
-
{% block content %}
{% if shipping_methods %}
<div class="card">
+ <div class="data-table-header-action">
+ <a href="{% url 'dashboard:shipping-method-add' %}" class="btn-data-table btn-flat" title="{% trans "Add method" context "Shipping method list add button text" %}">
+ {% trans "Add" context "Product form variants tab table action" %}
+ </a>
+ </div>
<div class="data-table-container">
<table class="bordered highlight responsive data-table">
<thead>