Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Improve showing empty values in tables
Marcin Gębalac91f44b80574
diff --git a/templates/dashboard/category/list.html b/templates/dashboard/category/list.htmlindex 0d25f06a78..e25addc136 100644--- a/templates/dashboard/category/list.html+++ b/templates/dashboard/category/list.html@@ -117,7 +117,6 @@<tr><th>{% trans "Name" context "Category list table header name" %}</th><th>{% trans "Description" context "Category list table header description" %}</th>- <th>{% trans "Visible" context "Category list table header visible" %}</th></tr></thead><tbody>@@ -133,12 +132,6 @@ {% endif %}</td>- <td class="center-align">- {% if node.hidden %}- <svg data-src="{% static "dashboard/images/visibility_off.svg" %}"- width="20" height="20"/>- {% endif %}- </td></tr>{% endfor %}</tbody>diff --git a/templates/dashboard/customer/list.html b/templates/dashboard/customer/list.htmlindex b791b5a49c..1093e2eecd 100644--- a/templates/dashboard/customer/list.html+++ b/templates/dashboard/customer/list.html@@ -59,7 +59,8 @@{{ default_address.city }}, {{ default_address.get_country_display }}</td>{% else %}- <td colspan="2"></td>+ <td>-</td>+ <td>-</td>{% endif %}{% endwith %}<td class="right-align">diff --git a/templates/dashboard/product/product_attribute/list.html b/templates/dashboard/product/product_attribute/list.htmlindex fa1c28a88e..d56c4e71c9 100644--- a/templates/dashboard/product/product_attribute/list.html+++ b/templates/dashboard/product/product_attribute/list.html@@ -50,9 +50,7 @@{{ name }}</td><td>- {% for value in values %}- {{ value }}{% if not forloop.last %}, {% endif %}- {% endfor %}+ {% if values %}{{ values|join:", " }}{% else %}-{% endif %}</td></tr>{% endfor %}diff --git a/templates/dashboard/product/product_class/list.html b/templates/dashboard/product/product_class/list.htmlindex 713dae0fbb..035742f92f 100644--- a/templates/dashboard/product/product_class/list.html+++ b/templates/dashboard/product/product_class/list.html@@ -55,14 +55,14 @@{% if product_attributes %}{{ product_attributes|join:", " }}{% else %}- {% trans "None" %}+ -{% endif %}</td><td>{% if variant_attributes %}{{ variant_attributes|join:", " }}{% else %}- {% trans "None" %}+ -{% endif %}</td></tr>diff --git a/templates/dashboard/staff/list.html b/templates/dashboard/staff/list.htmlindex f182f8229b..99280f9e56 100644--- a/templates/dashboard/staff/list.html+++ b/templates/dashboard/staff/list.html@@ -61,7 +61,7 @@{{ default_address.city }}, {{ default_address.get_country_display }}</td>{% else %}- <td colspan="2"></td>+ <td colspan="2">-</td>{% endif %}{% endwith %}</tr>