Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Update template
michal1e84cc8894bb
diff --git a/templates/dashboard/_filters.html b/templates/dashboard/_filters.htmlnew file mode 100644index 0000000000..9fc99fd2c5--- /dev/null+++ b/templates/dashboard/_filters.html@@ -0,0 +1,22 @@+{% load i18n %}+{% load materializecss %}++<div class="row">+ <div class="col s12">+ <div class="card">+ <div class="card-content">+ <span class="card-title">{% trans 'Filters' context 'Dashboard card title' %}</span>+ <form method="get">+ {% for field in filter.form %}+ <div class="col s4">+ {{ field|materializecss }}+ </div>+ {% endfor %}+ <div class="card-action">+ <button class="btn primary" type="submit">{% trans 'Update' context 'Category price filter' %}</button>+ </div>+ </form>+ </div>+ </div>+ </div>+</div>diff --git a/templates/dashboard/product/list.html b/templates/dashboard/product/list.htmlindex a07066dffd..111482a6c7 100644--- a/templates/dashboard/product/list.html+++ b/templates/dashboard/product/list.html@@ -44,23 +44,7 @@{% block content %}{% if products %}- <div class="row">- <div class="col s12">- <div class="card">- <div class="card-content">- <span class="card-title">{% trans 'Filters' context 'Dashboard card title' %}</span>- <form method="get">- {% for field in filter.form %}- <div class="col s4">- {{ field|materializecss }}- </div>- {% endfor %}- <button class="btn primary" type="submit">{% trans 'Update' context 'Category price filter' %}</button>- </form>- </div>- </div>- </div>- </div>+ {% include './../_filters.html' %}<div class="row"><div class="col s12"><div class="card">