Skip to content

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

Display add collection button and information there is no collection

Mira Szewczyk3b07ecaad266
diff --git a/templates/dashboard/collection/list.html b/templates/dashboard/collection/list.html
index ef9a767d55..a1812438e4 100644
--- a/templates/dashboard/collection/list.html
+++ b/templates/dashboard/collection/list.html
@@ -1 +1,37 @@
-{% extends 'dashboard/base.html' %}
\ No newline at end of file
+{% extends 'dashboard/base.html' %}
+
+{% load i18n %}
+
+{% block title %}{% trans "Collections" %} - {{ block.super }}{% endblock %}
+
+{% block body_class %}body-collections{% endblock %}
+
+{% block menu_collections_class %}active{% endblock %}
+
+{% block breadcrumbs %}
+ <ul class="breadcrumbs breadcrumbs--history">
+ <li class="visible-s"><span>{% trans "Collections" %}</span></li>
+ </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 collection" %}"
+ href="#">
+ <i class="material-icons">add</i>
+ </a>
+ </div>
+{% endblock %}
+
+{% block content %}
+ <div class="row">
+ <div class="col s12">
+ {% if collections %}
+ {% for collection in collections %}
+ {% endfor %}
+ {% else %}
+ <p>{% trans "No collections" %}</p>
+ {% endif %}
+ </div>
+ </div>
+{% endblock %}
\ No newline at end of file