Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Extend product list to full screen
dominik-zeglen06a48bc3a6bc
diff --git a/saleor/static/dashboard/scss/components/_form.scss b/saleor/static/dashboard/scss/components/_form.scssindex 7b73db0b14..0ae9ed65b8 100644--- a/saleor/static/dashboard/scss/components/_form.scss+++ b/saleor/static/dashboard/scss/components/_form.scss@@ -197,6 +197,13 @@}}+.input-range {+ .separator {+ display: inline-block;+ margin-top: 10px;+ }+}+.main form, .modal form {@include form;}diff --git a/saleor/static/dashboard/scss/dashboard.scss b/saleor/static/dashboard/scss/dashboard.scssindex 0c5e108c01..4afa7afb64 100644--- a/saleor/static/dashboard/scss/dashboard.scss+++ b/saleor/static/dashboard/scss/dashboard.scss@@ -22,5 +22,6 @@@import "components/tabs";@import "components/timeline";+@import "layouts/products";@import "layouts/style-guide";@import "print";diff --git a/saleor/static/dashboard/scss/layouts/_products.scss b/saleor/static/dashboard/scss/layouts/_products.scssnew file mode 100644index 0000000000..a1db5c4ae1--- /dev/null+++ b/saleor/static/dashboard/scss/layouts/_products.scss@@ -0,0 +1,11 @@+@media (min-width: $large-screen) {+ .body-products-list {+ .main {+ .container {+ width: auto;+ max-width: none;+ margin: 40px 20px 0 270px;+ }+ }+ }+}diff --git a/templates/dashboard/product/list.html b/templates/dashboard/product/list.htmlindex 7787d7570b..86308ccf81 100644--- a/templates/dashboard/product/list.html+++ b/templates/dashboard/product/list.html@@ -11,7 +11,7 @@{% trans "Products" context "Dashboard products list" %} - {{ block.super }}{% endblock %}-{% block body_class %}body-products{% endblock %}+{% block body_class %}body-products-list{% endblock %}{% block menu_products_class %}active{% endblock %}@@ -46,7 +46,7 @@{% block content %}{% if products %}<div class="row">- <div class="col s9">+ <div class="col s12 l9"><div class="card"><form method="POST" action="{% url 'dashboard:product-bulk-update' %}" novalidate id="bulk-actions-form">{% csrf_token %}@@ -113,7 +113,7 @@</div>{% paginate products %}</div>- <div class="col s3">+ <div class="col s12 l3">{% include 'dashboard/includes/_filters.html' %}</div></div>diff --git a/templates/materializecssform/field.html b/templates/materializecssform/field.htmlindex e6f432a15e..92a47b4014 100644--- a/templates/materializecssform/field.html+++ b/templates/materializecssform/field.html@@ -256,12 +256,12 @@{% endif %}</div>{% elif field|is_range %}- <div class="input-field col s12">+ <div class="input-field input-range col s12">{% for value in field.value %}<input type="number" class="col s5"name="{{ field.name }}_{{ forloop.counter0 }}" value="{{ value }}">{% if not forloop.last %}- <div class="col s2 center-align">-</div>+ <div class="col s2 center-align separator">-</div>{% endif %}{% endfor %}<label>{{ field.label }}</label>