Skip to content

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

Move add button to data-tables in vouchers

Krzysztof Białogłowicz32f18e322ab7
diff --git a/templates/dashboard/discount/voucher_list.html b/templates/dashboard/discount/voucher_list.html
index c94e2ce9e6..63edb31f88 100644
--- a/templates/dashboard/discount/voucher_list.html
+++ b/templates/dashboard/discount/voucher_list.html
@@ -9,15 +9,6 @@
{% block menu_vouchers_class %}active{% endblock %}
-{% block header_extra %}
- <div class="fixed-action-btn">
- <a class="btn-fab btn-floating btn-large waves-effect waves-light teal"
- href="{% url 'dashboard:voucher-add' %}" title="{% trans "Add voucher" context "Voucher list add button text" %}">
- <i class="material-icons">add</i>
- </a>
- </div>
-{% endblock %}
-
{% block breadcrumbs %}
<ul class="breadcrumbs">
<li class="visible-s">{% trans "Vouchers" context "Voucher list breadcrumbs" %}</li>
@@ -29,6 +20,11 @@
{% block content %}
{% if vouchers %}
<div class="card">
+ <div class="data-table-header-action">
+ <a href="{% url 'dashboard:voucher-add' %}" class="btn-data-table btn-flat" title="{% trans "Add voucher" context "Voucher 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>