Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix paths to images on dashboard
weronkab0e33c5400a2
diff --git a/saleor/settings.py b/saleor/settings.pyindex 85ebbb80d5..86d55cc9f4 100644--- a/saleor/settings.py+++ b/saleor/settings.py@@ -74,7 +74,8 @@ STATIC_ROOT = os.path.join(PROJECT_ROOT, 'static')STATIC_URL = '/static/'STATICFILES_DIRS = [('assets', os.path.join(PROJECT_ROOT, 'saleor', 'static', 'assets')),- ('images', os.path.join(PROJECT_ROOT, 'saleor', 'static', 'images'))+ ('images', os.path.join(PROJECT_ROOT, 'saleor', 'static', 'images')),+ ('dashboard', os.path.join(PROJECT_ROOT, 'saleor', 'static', 'dashboard'))]STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder',diff --git a/saleor/static/dashboard/images/arrow_left.svg b/saleor/static/dashboard/images/arrow_left.svgnew file mode 100644index 0000000000..e3f3fe8fea--- /dev/null+++ b/saleor/static/dashboard/images/arrow_left.svg@@ -0,0 +1,4 @@+<svg fill="#FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">+ <path d="M0 0h24v24H0z" fill="none"/>+ <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/>+</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/images/mobile_menu.svg b/saleor/static/dashboard/images/mobile_menu.svgnew file mode 100644index 0000000000..5bc798808b--- /dev/null+++ b/saleor/static/dashboard/images/mobile_menu.svg@@ -0,0 +1,18 @@+<?xml version="1.0" encoding="utf-8"?>+<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"+ width="28px" height="20px" viewBox="0 0 136.689 110" enable-background="new 0 0 136.689 110" xml:space="preserve">+<g>+ <g>+ <path fill="#333333" d="M9.282,86.005c0,0,0-3.11,3.107-3.11h111.909c0,0,3.11,0,3.11,3.11v12.435c0,0,0,3.106-3.11,3.106H12.39+ c0,0-3.107,0-3.107-3.106V86.005z"/>+ </g>+ <g>+ <path fill="#333333" d="M9.282,48.703c0,0,0-3.11,3.107-3.11h111.909c0,0,3.11,0,3.11,3.11v12.433c0,0,0,3.108-3.11,3.108H12.39+ c0,0-3.107,0-3.107-3.108V48.703z"/>+ </g>+ <g>+ <path fill="#333333" d="M9.282,11.398c0,0,0-3.108,3.107-3.108h111.909c0,0,3.11,0,3.11,3.108v12.435c0,0,0,3.108-3.11,3.108+ H12.39c0,0-3.107,0-3.107-3.108V11.398z"/>+ </g>+</g>+</svg>diff --git a/saleor/static/dashboard/images/search.svg b/saleor/static/dashboard/images/search.svgnew file mode 100644index 0000000000..18d2065946--- /dev/null+++ b/saleor/static/dashboard/images/search.svg@@ -0,0 +1,4 @@+<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">+ <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>+ <path d="M0 0h24v24H0z" fill="none"/>+</svg>\ No newline at end of filediff --git a/saleor/static/dashboard/scss/components/_breadcrumbs.scss b/saleor/static/dashboard/scss/components/_breadcrumbs.scssindex e152cf24b7..591ff65160 100644--- a/saleor/static/dashboard/scss/components/_breadcrumbs.scss+++ b/saleor/static/dashboard/scss/components/_breadcrumbs.scss@@ -14,7 +14,7 @@&--history {li {&:before {- content: url('/static/images/chevron_right.svg');+ content: url('/static/dashboard/images/chevron_right.svg');vertical-align: text-bottom;display: inline-block;}@@ -46,7 +46,7 @@&.back-mobile {display: inline-block;svg {- vertical-align: text-top;+ vertical-align: middle;margin-right: 10px;}}diff --git a/templates/dashboard/base.html b/templates/dashboard/base.htmlindex 02d73fcbe4..8afe60ec31 100644--- a/templates/dashboard/base.html+++ b/templates/dashboard/base.html@@ -48,23 +48,23 @@</li></ul><a class="dropdown-button" data-constrainwidth="false" href="#" data-activates="user-action">- <svg data-src="{% static "images/account_circle.svg" %}" width="24" height="24" fill="#fff" />+ <svg data-src="{% static "/dashboard/images/account_circle.svg" %}" width="24" height="24" fill="#fff" /></a>{% if SEARCH_IS_ENABLED %}<a href="{% url "dashboard:search" %}" class="hide-on-med-and-up dropdown-button">- <svg data-src="{% static "images/search.svg" %}" width="20" height="20" fill="#fff" />+ <svg data-src="{% static "dashboard/images/search.svg" %}" width="24" height="24" fill="#fff" /></a>{% endif %}</div><ul class="left"><li><a href="#" id="toggle-menu">- <svg data-src="{% static "images/mobile_menu.svg" %}" width="24" height="24" />+ <svg data-src="{% static "dashboard/images/mobile_menu.svg" %}" width="24" height="24" /></a></li><li><a href="{% url 'dashboard:index' %}" class="logo">- <svg data-src="{% static "images/saleor_logo.svg" %}" height="38px" width="176px" />+ <svg data-src="{% static "dashboard/images/saleor_logo.svg" %}" height="38px" width="176px" /></a></li><li class="search">@@ -73,7 +73,7 @@<div class="input-field"><input id="search" type="search" placeholder="{% trans "Search" context "Dashboard search" %}" name="q" value="{% if query %}{{ query }}{% endif %}"><label>- <svg data-src="{% static "images/search.svg" %}" width="20" height="20" fill="#fff" />+ <svg data-src="{% static "dashboard/images/search.svg" %}" width="24" height="24" fill="#fff" /></label></div></form>diff --git a/templates/dashboard/category/detail.html b/templates/dashboard/category/detail.htmlindex eba50eb9ef..290aecc2cf 100644--- a/templates/dashboard/category/detail.html+++ b/templates/dashboard/category/detail.html@@ -34,7 +34,7 @@</li><li class="back-mobile"><a href="{% url 'dashboard:category-list' %}" class="breadcrumbs--ellipsed-item">- <svg data-src="{% static "images/arrow-left.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "dashboard/images/arrow-left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li><li>diff --git a/templates/dashboard/category/list.html b/templates/dashboard/category/list.htmlindex cf27b9560c..09e5ae58e6 100644--- a/templates/dashboard/category/list.html+++ b/templates/dashboard/category/list.html@@ -33,7 +33,7 @@</div>{% if root %}<a class="dropdown-button right" href="#" data-activates="category-delete" data-constrainwidth="false">- <svg data-src="{% static "images/more_vert.svg" %}" height="24" width="24" />+ <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" /></a><ul id="category-delete" class="dropdown-content"><li>@@ -68,7 +68,7 @@{% if path %}<li class="back-mobile"><a href="{% url 'dashboard:category-list' %}">- <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "dashboard/images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li>{% for node in path %}@@ -110,7 +110,7 @@</p>{% if node.hidden %}<span class="list-item-icon">- <svg data-src="{% static "images/visibility_off.svg" %}" width="20" height="20" />+ <svg data-src="{% static "dashboard/images/visibility_off.svg" %}" width="20" height="20" /></span>{% endif %}</a>diff --git a/templates/dashboard/customer/detail.html b/templates/dashboard/customer/detail.htmlindex 6d1408bc80..4a9c108f23 100644--- a/templates/dashboard/customer/detail.html+++ b/templates/dashboard/customer/detail.html@@ -26,7 +26,7 @@</li><li class="back-mobile"><a href="{% url "dashboard:customers" %}">- <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "dashboard/images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li><li><span class="breadcrumbs--elipsed-item">{{ customer }}</span></li>@@ -105,7 +105,7 @@{% else %}<span>{% trans "No default shipping address." context "Customer without default shipping address message" %}</span>{% endif %}- <svg data-src="{% static "images/email.svg" %}" width="14" height="14" />+ <svg data-src="{% static "dashboard/images/email.svg" %}" width="14" height="14" /><a href="mailto:{{ customer.email }}">{{ customer.email }}</a>diff --git a/templates/dashboard/discount/sale_form.html b/templates/dashboard/discount/sale_form.htmlindex 1c4199c17f..3421684ebb 100644--- a/templates/dashboard/discount/sale_form.html+++ b/templates/dashboard/discount/sale_form.html@@ -25,7 +25,7 @@{% if sale.pk %}<a class="dropdown-button right" href="#" data-activates="sale-delete"data-constrainwidth="false">- <svg data-src="{% static "images/more_vert.svg" %}" height="24" width="24" />+ <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" /></a><ul id="sale-delete" class="dropdown-content"><li>@@ -47,7 +47,7 @@</li><li class="back-mobile"><a href="{% url 'dashboard:sale-list' %}">- <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "dashboard/images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li><li>diff --git a/templates/dashboard/discount/voucher_form.html b/templates/dashboard/discount/voucher_form.htmlindex 6bf005d276..a5640085d8 100644--- a/templates/dashboard/discount/voucher_form.html+++ b/templates/dashboard/discount/voucher_form.html@@ -25,7 +25,7 @@{% if voucher.pk %}<a class="dropdown-button right" href="#" data-activates="voucher-delete"data-constrainwidth="false">- <svg data-src="{% static "images/more_vert.svg" %}" height="24" width="24" />+ <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" /></a><ul id="voucher-delete" class="dropdown-content"><li>@@ -46,7 +46,7 @@</li><li class="back-mobile"><a href="{% url 'dashboard:voucher-list' %}">- <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "dashboard/images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li><li>diff --git a/templates/dashboard/includes/_address.html b/templates/dashboard/includes/_address.htmlindex 75ec48c4cb..71c0e8b6e3 100644--- a/templates/dashboard/includes/_address.html+++ b/templates/dashboard/includes/_address.html@@ -5,7 +5,7 @@<div class="formatted-address">{% format_address address latin=True %}</div>{% if address.phone %}<div>- <svg data-src="{% static "images/phone.svg" %}" width="14" height="14" />+ <svg data-src="{% static "dashboard/images/phone.svg" %}" width="14" height="14" /><a href="tel:{{ address.phone }}">{{ address.phone }}</a>diff --git a/templates/dashboard/includes/_back-link.html b/templates/dashboard/includes/_back-link.htmlindex 9413fe3f25..d184412e61 100644--- a/templates/dashboard/includes/_back-link.html+++ b/templates/dashboard/includes/_back-link.html@@ -1,3 +1,3 @@<a href="{{ url }}{% if hash %}{{ hash }}{% endif %}" class="header-button">- <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "dashboard/images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a>diff --git a/templates/dashboard/includes/_pagination.html b/templates/dashboard/includes/_pagination.htmlindex 968d114838..4d11dfb8c2 100644--- a/templates/dashboard/includes/_pagination.html+++ b/templates/dashboard/includes/_pagination.html@@ -8,11 +8,11 @@{% if not page_obj.has_previous %} class="disabled"{% endif %}>{% if page_obj.has_previous %}<a href="{% construct_get_query page=page_obj.previous_page_number %}">- <svg data-src="{% static "images/chevron_left.svg" %}" fill="#000" />+ <svg data-src="{% static "dashboard/images/chevron_left.svg" %}" fill="#000" /></a>{% else %}<a href="#!">- <svg data-src="{% static "images/chevron_left.svg" %}" fill="#9E9E9E" />+ <svg data-src="{% static "dashboard/images/chevron_left.svg" %}" fill="#9E9E9E" /></a>{% endif %}</li>@@ -26,11 +26,11 @@<li{% if not page_obj.has_next %} class="disabled"{% endif %}>{% if page_obj.has_next %}<a href="{% construct_get_query page=page_obj.next_page_number %}">- <svg data-src="{% static "images/chevron_right.svg" %}" fill="#000" />+ <svg data-src="{% static "dashboard/images/chevron_right.svg" %}" fill="#000" /></a>{% else %}<a href="#!">- <svg data-src="{% static "images/chevron_right.svg" %}" fill="#9E9E9E" />+ <svg data-src="{% static "dashboard/images/chevron_right.svg" %}" fill="#9E9E9E" /></a>{% endif %}</li>diff --git a/templates/dashboard/order/address_form.html b/templates/dashboard/order/address_form.htmlindex fe08b12b70..031501c7bc 100644--- a/templates/dashboard/order/address_form.html+++ b/templates/dashboard/order/address_form.html@@ -30,7 +30,7 @@</li><li class="back-mobile"><a href="{% url "dashboard:order-details" order_pk=order.pk %}">- <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "dashboard/images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li><li>diff --git a/templates/dashboard/order/detail.html b/templates/dashboard/order/detail.htmlindex 07f90a36aa..6404503168 100644--- a/templates/dashboard/order/detail.html+++ b/templates/dashboard/order/detail.html@@ -23,7 +23,7 @@{% block header_extra %}{% if order.can_cancel %}<a class="dropdown-button right" href="#" data-activates="context-menu" data-constrainwidth="false">- <svg data-src="{% static "images/more_vert.svg" %}" height="24" width="24" />+ <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" /></a><ul id="context-menu" class="dropdown-content"><li>@@ -45,7 +45,7 @@</li><li class="back-mobile"><a href="{% url "dashboard:orders" %}">- <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "dashboard/images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li><li>@@ -65,7 +65,7 @@<span>{% trans "Details" context "Order detail tab" %}</span>- <svg data-src="{% static "images/description.svg" %}" />+ <svg data-src="{% static "dashboard/images/description.svg" %}" /></a></li><li role="presentation" class="tab col s4">@@ -73,7 +73,7 @@<span>{% trans "Payments" context "Order detail tab" %}</span>- <svg data-src="{% static "images/payment.svg" %}" />+ <svg data-src="{% static "dashboard/images/payment.svg" %}" /></a></li><li role="presentation" class="tab col s4">@@ -81,7 +81,7 @@<span>{% trans "History" context "Order detail tab" %}</span>- <svg data-src="{% static "images/history.svg" %}" />+ <svg data-src="{% static "dashboard/images/history.svg" %}" /></a></li></ul>@@ -299,7 +299,7 @@{% if group.status != 'cancelled' %}<a class="dropdown-button" href="#" data-activates="line-actions-{{ item.pk }}" data-constrainwidth="false">{{ item.quantity }}- <svg data-src="{% static "images/arrow_drop_down.svg" %}" width="24" height="24" />+ <svg data-src="{% static "dashboard/images/arrow_drop_down.svg" %}" width="24" height="24" /></a><ul id="line-actions-{{ item.pk }}" class="dropdown-content"><li>@@ -391,7 +391,7 @@{% blocktrans trimmed with voucher=order.discount_name context "Order totals header" %}Voucher {{ voucher }}{% endblocktrans %}- <svg data-src="{% static "images/arrow_drop_down.svg" %}" />+ <svg data-src="{% static "dashboard/images/arrow_drop_down.svg" %}" /></a><ul id="voucher-actions" class="dropdown-content"><li>diff --git a/templates/dashboard/product/attributes/form.html b/templates/dashboard/product/attributes/form.htmlindex 6ed23dc155..3a440a069c 100644--- a/templates/dashboard/product/attributes/form.html+++ b/templates/dashboard/product/attributes/form.html@@ -24,7 +24,7 @@{% block header_extra %}{% if attribute.pk %}<a class="dropdown-button right" href="#" data-activates="attribute-delete" data-constrainwidth="false">- <svg data-src="{% static "images/more_vert.svg" %}" height="24" width="24" />+ <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" /></a><ul id="attribute-delete" class="dropdown-content"><li>@@ -46,7 +46,7 @@</li><li class="back-mobile"><a href="{% url 'dashboard:product-attributes' %}">- <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "dashboard/images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li><li>diff --git a/templates/dashboard/product/attributes/list.html b/templates/dashboard/product/attributes/list.htmlindex 08ee81656e..c576b24805 100644--- a/templates/dashboard/product/attributes/list.html+++ b/templates/dashboard/product/attributes/list.html@@ -14,7 +14,7 @@{% block header_extra %}<div class="fixed-action-btn"><a class="btn-fab btn-floating btn-large waves-effect waves-light teal" href="{% url 'dashboard:product-attribute-add' %}" title="{% trans "Add attribute" context "Attribute list add button text" %}">- <svg data-src="{% static "images/add.svg" %}" />+ <svg data-src="{% static "dashboard/images/add.svg" %}" /></a></div>{% endblock %}diff --git a/templates/dashboard/product/class_list.html b/templates/dashboard/product/class_list.htmlindex 1575b6a55e..d40ba5fcbd 100644--- a/templates/dashboard/product/class_list.html+++ b/templates/dashboard/product/class_list.html@@ -15,7 +15,7 @@{% block header_extra %}<div class="fixed-action-btn"><a class="btn-fab btn-floating btn-large waves-effect waves-light teal" title="{% trans "Add product type" context "Product type list add button text" %}" href="{% url 'dashboard:product-class-add' %}">- <svg data-src="{% static "images/add.svg" %}" />+ <svg data-src="{% static "dashboard/images/add.svg" %}" /></a></div>{% endblock %}diff --git a/templates/dashboard/product/list.html b/templates/dashboard/product/list.htmlindex 8fc012033d..2c3ddba299 100644--- a/templates/dashboard/product/list.html+++ b/templates/dashboard/product/list.html@@ -17,7 +17,7 @@<div class="fixed-action-btn">{% if product_classes %}<a class="btn-fab btn-floating btn-large waves-effect waves-light teal modal-trigger" href="#modal-product-class" title="{% trans "Add product" context "Product list add button text" %}">- <svg data-src="{% static "images/add.svg" %}" />+ <svg data-src="{% static "dashboard/images/add.svg" %}" /></a>{% endif %}</div>diff --git a/templates/dashboard/product/product_class_form.html b/templates/dashboard/product/product_class_form.htmlindex dad3b42e85..f69e58b97b 100644--- a/templates/dashboard/product/product_class_form.html+++ b/templates/dashboard/product/product_class_form.html@@ -32,7 +32,7 @@</li><li class="back-mobile"><a href="{% url "dashboard:product-class-list" %}">- <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "dashboard/images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li><li>@@ -50,7 +50,7 @@{% block header_extra %}{% if product_class.pk %}<a class="dropdown-button right" href="#" data-activates="context-menu" data-constrainwidth="false">- <svg data-src="{% static "images/more_vert.svg" %}" height="24" width="24" />+ <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" /></a><ul id="context-menu" class="dropdown-content"><li>@@ -114,7 +114,7 @@</div><div class="col m12 l3 help-box"><p class="grey-text">- <svg data-src="{% static "images/help.svg" %}" width="18" height="18" />+ <svg data-src="{% static "dashboard/images/help.svg" %}" width="18" height="18" />{% blocktrans trimmed context "Product class help text" %}Product Type is a template used for creating new products.It also controls which attributes can be used during product creation process.diff --git a/templates/dashboard/product/product_form.html b/templates/dashboard/product/product_form.htmlindex 330c944182..4d2cb667b2 100644--- a/templates/dashboard/product/product_form.html+++ b/templates/dashboard/product/product_form.html@@ -32,7 +32,7 @@</li><li class="back-mobile"><a href="{% url "dashboard:product-list" %}">- <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "dashboard/images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li><li>@@ -50,7 +50,7 @@{% block header_extra %}{% if product.pk %}<a class="dropdown-button right" href="#" data-activates="context-menu" data-constrainwidth="false">- <svg data-src="{% static "images/more_vert.svg" %}" height="24" width="24" />+ <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" /></a><ul id="context-menu" class="dropdown-content"><li>@@ -80,7 +80,7 @@<span>{% trans "Details" context "Product form tab" %}</span>- <svg data-src="{% static "images/edit.svg" %}" width="24" height="24" />+ <svg data-src="{% static "dashboard/images/edit.svg" %}" width="24" height="24" /></a></li>{% if product.product_class.has_variants %}@@ -89,7 +89,7 @@<span>{% trans "Variants" context "Dashboard variants" %}</span>- <svg data-src="{% static "images/style.svg" %}" width="24" height="24" />+ <svg data-src="{% static "dashboard/images/style.svg" %}" width="24" height="24" /></a></li>{% endif %}@@ -98,7 +98,7 @@<span>{% trans "Stock" context "Dashboard stock" %}</span>- <svg data-src="{% static "images/store.svg" %}" width="24" height="24" />+ <svg data-src="{% static "dashboard/images/store.svg" %}" width="24" height="24" /></a></li><li class="tab col s3" role="presentation">@@ -106,7 +106,7 @@<span>{% trans "Images" context "Product form tab" %}</span>- <svg data-src="{% static "images/collections.svg" %}" width="24" height="24" />+ <svg data-src="{% static "dashboard/images/collections.svg" %}" width="24" height="24" /></a></li></ul>@@ -465,7 +465,7 @@</div><div class="fixed-action-btn"><a class="btn-fab btn-fab-hidden btn-floating btn-large waves-effect waves-light teal" id="images-btn" href="{% url 'dashboard:product-image-add' product_pk=product.pk %}" title="{% trans "Add image" context "Add image button text" %}">- <svg data-src="{% static "images/add.svg" %}" />+ <svg data-src="{% static "dashboard/images/add.svg" %}" /></a></div>{% endif %}diff --git a/templates/dashboard/product/product_image_form.html b/templates/dashboard/product/product_image_form.htmlindex aece2ef049..4c9f79712b 100644--- a/templates/dashboard/product/product_image_form.html+++ b/templates/dashboard/product/product_image_form.html@@ -29,7 +29,7 @@</li><li class="back-mobile"><a href="{% url "dashboard:product-update" pk=product.pk %}#images" class="breadcrumb">- <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "dashboard/images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li>{% if product_image.pk %}diff --git a/templates/dashboard/product/stock_form.html b/templates/dashboard/product/stock_form.htmlindex 890daefdb4..cacd7ae29d 100644--- a/templates/dashboard/product/stock_form.html+++ b/templates/dashboard/product/stock_form.html@@ -32,7 +32,7 @@</li><li class="back-mobile"><a href="{% url "dashboard:product-update" pk=product.pk %}#stock">- <svg data-src="{% static "images/chevron_left.svg" %}" />+ <svg data-src="{% static "dashboard/images/chevron_left.svg" %}" /></a></li><li>diff --git a/templates/dashboard/product/stock_locations/form.html b/templates/dashboard/product/stock_locations/form.htmlindex 4b60c86fb9..3b151bb916 100644--- a/templates/dashboard/product/stock_locations/form.html+++ b/templates/dashboard/product/stock_locations/form.html@@ -18,7 +18,7 @@{% block header_extra %}{% if location.pk %}<a class="dropdown-button right" href="#" data-activates="attribute-delete" data-constrainwidth="false">- <svg data-src="{% static "images/more_vert.svg" %}" height="24" width="24" />+ <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" /></a><ul id="attribute-delete" class="dropdown-content"><li>@@ -40,7 +40,7 @@</li><li class="back-mobile"><a href="{% url 'dashboard:sale-list' %}">- <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "dashboard/images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li><li>@@ -59,7 +59,7 @@{% block content %}<div class="row">- <div class="col m12 l9">+ <div class="col s12 l9"><div class="card"><form method="post" id="form-product" novalidate><div class="card-content card-content-form">diff --git a/templates/dashboard/product/stock_locations/list.html b/templates/dashboard/product/stock_locations/list.htmlindex e812a97b42..93bb2ddc0a 100644--- a/templates/dashboard/product/stock_locations/list.html+++ b/templates/dashboard/product/stock_locations/list.html@@ -12,7 +12,7 @@{% block header_extra %}<div class="fixed-action-btn"><a class="btn-fab btn-floating btn-large waves-effect waves-light teal" href="{% url 'dashboard:product-stock-location-add' %}" title="{% trans "Add stock location" context "Stock location list add button text" %}">- <svg data-src="{% static "images/add.svg" %}" />+ <svg data-src="{% static "dashboard/images/add.svg" %}" /></a></div>{% endblock %}diff --git a/templates/dashboard/product/variant_form.html b/templates/dashboard/product/variant_form.htmlindex 39891b467e..075df5aa9b 100644--- a/templates/dashboard/product/variant_form.html+++ b/templates/dashboard/product/variant_form.html@@ -28,7 +28,7 @@</li><li class="back-mobile"><a href="{% url "dashboard:product-update" pk=product.pk %}#variants">- <svg data-src="{% static "images/chevron_left.svg" %}" />+ <svg data-src="{% static "dashboard/images/chevron_left.svg" %}" /></a></li><li>diff --git a/templates/dashboard/search/results.html b/templates/dashboard/search/results.htmlindex 1e1171e3f2..5878d87ef5 100644--- a/templates/dashboard/search/results.html+++ b/templates/dashboard/search/results.html@@ -24,7 +24,7 @@<form class="hide-on-med-and-up" method="get" action="{% url "dashboard:search" %}"><input id="icon_prefix" type="text" class="validate left" placeholder="{% trans "Search" context "Dashboard search" %}" name="q" value="{% if query %}{{ query }}{% endif %}"><button class="btn-flat" type="submit">- <svg data-src="{% static "images/search.svg" %}" width="20" height="20" fill="#E57373" />+ <svg data-src="{% static "dashboard/images/search.svg" %}" width="20" height="20" fill="#E57373" /></button></form><form class="hide-on-med-and-up row" method="get" action="{% url "dashboard:search" %}">diff --git a/templates/dashboard/shipping/method_form.html b/templates/dashboard/shipping/method_form.htmlindex c57aa8146f..6a246d610f 100644--- a/templates/dashboard/shipping/method_form.html+++ b/templates/dashboard/shipping/method_form.html@@ -35,7 +35,7 @@</li><li class="back-mobile"><a href="{% url 'dashboard:shipping-methods' %}">- <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "dashboard/images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li><li>@@ -55,7 +55,7 @@{% block header_extra %}{% if shipping_method.pk %}<a class="dropdown-button right" href="#" data-activates="context-menu" data-constrainwidth="false">- <svg data-src="{% static "images/more_vert.svg" %}" height="24" width="24" />+ <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" /></a><ul id="context-menu" class="dropdown-content"><li>diff --git a/templates/dashboard/styleguide/index.html b/templates/dashboard/styleguide/index.htmlindex a5181f018e..153b5cec46 100644--- a/templates/dashboard/styleguide/index.html+++ b/templates/dashboard/styleguide/index.html@@ -29,7 +29,7 @@<div class="nav-wrapper"><ul class="left"><li class="logo">- <svg data-src="{% static "images/saleor_logo.svg" %}" height="38px" width="176px" />+ <svg data-src="{% static "dashboard/images/saleor_logo.svg" %}" height="38px" width="176px" /></li><li><span>Style Guide</span>@@ -134,13 +134,13 @@</div><div class="card"><div class="card-content">- <p class="text-lg"> if you’re using a recent version of IE, Firefox, Safari or Chrome (though not Opera), you can edit the text in sections marked with edit icon <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />. Check how our componentst will look like in your language and with your content.</p>+ <p class="text-lg"> if you’re using a recent version of IE, Firefox, Safari or Chrome (though not Opera), you can edit the text in sections marked with edit icon <svg data-src="{% static "dashboard/images/edit.svg" %}" width="24px" height="24px" />. Check how our componentst will look like in your language and with your content.</p></div></div></div><div id="typography" class="styleguide__content__block"><h3 class="styleguide__content__block--title">- Typography <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />+ Typography <svg data-src="{% static "dashboard/images/edit.svg" %}" width="24px" height="24px" /></h3><div class="card"><div class="card-content">@@ -364,7 +364,7 @@</div><div class="section"><h4>- Labels <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />+ Labels <svg data-src="{% static "dashboard/images/edit.svg" %}" width="24px" height="24px" /></h4><code><span class="label"></span></code><span class="label" contenteditable="true">Example label class</span>@@ -375,14 +375,14 @@</div><div class="section"><h4>- Currency <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />+ Currency <svg data-src="{% static "dashboard/images/edit.svg" %}" width="24px" height="24px" /></h4><code><span class="currency"></span></code><span class="currency" contenteditable="true">USD</span></div><div class="section"><h4>- Text large <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />+ Text large <svg data-src="{% static "dashboard/images/edit.svg" %}" width="24px" height="24px" /></h4><code><p class="text-lg"></p></code><p contenteditable="true">@@ -397,7 +397,7 @@</div><div id="buttons" class="styleguide__content__block"><h3 class="styleguide__content__block--title">- Buttons <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />+ Buttons <svg data-src="{% static "dashboard/images/edit.svg" %}" width="24px" height="24px" /></h3><div class="card"><div class="card-content">@@ -414,7 +414,7 @@</div><div class="col m4 s12"><a class="btn btn-floating btn-large waves-effect waves-light">- <svg data-src="{% static "images/add.svg" %}" />+ <svg data-src="{% static "dashboard/images/add.svg" %}" /></a></div></div>@@ -431,7 +431,7 @@</div><div class="col m4 s12"><a class="btn btn-floating btn-large waves-effect waves-light disabled">- <svg data-src="{% static "images/add.svg" %}" />+ <svg data-src="{% static "dashboard/images/add.svg" %}" /></a></div></div>@@ -454,21 +454,21 @@<h4>Used icons</h4>- <svg data-src="{% static "images/add.svg" %}" />- <svg data-src="{% static "images/account_circle.svg" %}" />- <svg data-src="{% static "images/search.svg" %}" />- <svg data-src="{% static "images/menu.svg" %}" />- <svg data-src="{% static "images/more_vert.svg" %}" height="24" width="24" />- <svg data-src="{% static "images/arrow_left.svg" %}" />- <svg data-src="{% static "images/chevron_right.svg" %}" fill="#000" />- <svg data-src="{% static "images/edit.svg" %}" fill="#000" width="24px" height="24px" />- <svg data-src="{% static "images/style.svg" %}" fill="#000" width="24px" height="24px" />- <svg data-src="{% static "images/store.svg" %}" fill="#000" width="24px" height="24px" />- <svg data-src="{% static "images/collections.svg" %}" fill="#000" width="24px" height="24px" />- <svg data-src="{% static "images/description.svg" %}" fill="#000" width="24px" height="24px" />- <svg data-src="{% static "images/description.svg" %}" fill="#000" width="24px" height="24px" />- <svg data-src="{% static "images/history.svg" %}" fill="#000" width="24px" height="24px" />- <svg data-src="{% static "images/arrow_drop_down.svg" %}" fill="#000" width="24px" height="24px" />+ <svg data-src="{% static "dashboard/images/add.svg" %}" />+ <svg data-src="{% static "dashboard/images/account_circle.svg" %}" />+ <svg data-src="{% static "dashboard/images/search.svg" %}" />+ <svg data-src="{% static "dashboard/images/menu.svg" %}" />+ <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" />+ <svg data-src="{% static "dashboard/images/arrow_left.svg" %}" />+ <svg data-src="{% static "dashboard/images/chevron_right.svg" %}" fill="#000" />+ <svg data-src="{% static "dashboard/images/edit.svg" %}" fill="#000" width="24px" height="24px" />+ <svg data-src="{% static "dashboard/images/style.svg" %}" fill="#000" width="24px" height="24px" />+ <svg data-src="{% static "dashboard/images/store.svg" %}" fill="#000" width="24px" height="24px" />+ <svg data-src="{% static "dashboard/images/collections.svg" %}" fill="#000" width="24px" height="24px" />+ <svg data-src="{% static "dashboard/images/description.svg" %}" fill="#000" width="24px" height="24px" />+ <svg data-src="{% static "dashboard/images/description.svg" %}" fill="#000" width="24px" height="24px" />+ <svg data-src="{% static "dashboard/images/history.svg" %}" fill="#000" width="24px" height="24px" />+ <svg data-src="{% static "dashboard/images/arrow_drop_down.svg" %}" fill="#000" width="24px" height="24px" /></div><div class="section"><h4>@@ -636,7 +636,7 @@<div id="forms" class="styleguide__content__block"><h3 class="styleguide__content__block--title">Forms- <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />+ <svg data-src="{% static "dashboard/images/edit.svg" %}" width="24px" height="24px" /></h3><div class="card"><div class="card-content">@@ -821,7 +821,7 @@<div id="breadcrumbs" class="styleguide__content__block"><h3 class="styleguide__content__block--title">Breadcrumbs- <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />+ <svg data-src="{% static "dashboard/images/edit.svg" %}" width="24px" height="24px" /></h3><div class="subheader top-nav"><div class="container">@@ -833,7 +833,7 @@</li><li class="back-mobile"><a>- <svg data-src="{% static "images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" />+ <svg data-src="{% static "dashboard/images/arrow_left.svg" %}" fill="#fff" width="20px" height="20px" /></a></li><li>@@ -848,7 +848,7 @@<div id="tabs" class="styleguide__content__block"><h3 class="styleguide__content__block--title">Tabs- <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />+ <svg data-src="{% static "dashboard/images/edit.svg" %}" width="24px" height="24px" /></h3><ul class="tabs"><li class="tab col s3" role="presentation">@@ -856,7 +856,7 @@<span contenteditable="true">Details</span>- <svg data-src="{% static "images/edit.svg" %}" />+ <svg data-src="{% static "dashboard/images/edit.svg" %}" /></a></li><li class="tab col s3" role="presentation">@@ -864,7 +864,7 @@<span contenteditable="true">Variants</span>- <svg data-src="{% static "images/style.svg" %}" />+ <svg data-src="{% static "dashboard/images/style.svg" %}" /></a></li><li class="tab col s3" role="presentation">@@ -872,7 +872,7 @@<span contenteditable="true">Stock</span>- <svg data-src="{% static "images/store.svg" %}" />+ <svg data-src="{% static "dashboard/images/store.svg" %}" /></a></li><li class="tab col s3" role="presentation">@@ -880,7 +880,7 @@<span contenteditable="true">Images</span>- <svg data-src="{% static "images/collections.svg" %}" />+ <svg data-src="{% static "dashboard/images/collections.svg" %}" /></a></li></ul>@@ -936,7 +936,7 @@<div id="tables" class="styleguide__content__block"><h3 class="styleguide__content__block--title">Tables- <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />+ <svg data-src="{% static "dashboard/images/edit.svg" %}" width="24px" height="24px" /></h3><div class="section"><h4>@@ -1278,7 +1278,7 @@<div id="lists" class="styleguide__content__block"><h3 class="styleguide__content__block--title">Lists- <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />+ <svg data-src="{% static "dashboard/images/edit.svg" %}" width="24px" height="24px" /></h3><div class="section"><h4>@@ -1427,7 +1427,7 @@<div id="cards" class="styleguide__content__block"><h3 class="styleguide__content__block--title">Cards- <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />+ <svg data-src="{% static "dashboard/images/edit.svg" %}" width="24px" height="24px" /></h3><div class="row"><div class="col m6">@@ -1486,7 +1486,7 @@<div class="section"><h4>Icon</h4><a class="dropdown-button" href="#" data-activates="dropdown1">- <svg data-src="{% static "images/more_vert.svg" %}" height="24" width="24" />+ <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" /></a></div><ul id="dropdown1" class="dropdown-content">@@ -1507,7 +1507,7 @@<div id="modals" class="styleguide__content__block"><h3 class="styleguide__content__block--title">Modals- <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />+ <svg data-src="{% static "dashboard/images/edit.svg" %}" width="24px" height="24px" /></h3><div class="card"><div class="card-content">@@ -1526,7 +1526,7 @@<div class="section"><h4>Dropdown</h4><a class='dropdown-button' href='#' data-activates='dropdown2'>- <svg data-src="{% static "images/more_vert.svg" %}" height="24" width="24" />+ <svg data-src="{% static "dashboard/images/more_vert.svg" %}" height="24" width="24" /></a><ul id='dropdown2' class='dropdown-content'><li>@@ -1569,12 +1569,12 @@<div id="pagination" class="styleguide__content__block"><h3 class="styleguide__content__block--title">Pagination- <svg data-src="{% static "images/edit.svg" %}" width="24px" height="24px" />+ <svg data-src="{% static "dashboard/images/edit.svg" %}" width="24px" height="24px" /></h3><ul class="pagination"><li class="disabled"><a href="#!">- <svg data-src="{% static "images/chevron_left.svg" %}" />+ <svg data-src="{% static "dashboard/images/chevron_left.svg" %}" /></a></li><li class="active">@@ -1604,7 +1604,7 @@</li><li><a href="">- <svg data-src="{% static "images/chevron_right.svg" %}" fill="#000" />+ <svg data-src="{% static "dashboard/images/chevron_right.svg" %}" fill="#000" /></a></li></ul>diff --git a/webpack.config.js b/webpack.config.jsindex 7f2a016946..14abbb3cf8 100644--- a/webpack.config.js+++ b/webpack.config.js@@ -77,8 +77,7 @@ var config = {resolve('node_modules'),resolve('saleor/static/fonts'),resolve('saleor/static/images'),- resolve('saleor/static/img'),- resolve('templates/svg')+ resolve('saleor/static/dashboard/images')]}]