Skip to content

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

Add missing help-box columns

Krzysztof Białogłowiczc3eb32f8ba38
diff --git a/templates/dashboard/product/product_image_form.html b/templates/dashboard/product/product_image_form.html
index c6918abd1c..86fe6eddcb 100644
--- a/templates/dashboard/product/product_image_form.html
+++ b/templates/dashboard/product/product_image_form.html
@@ -43,46 +43,51 @@
{% block menu_catalogue_class %} active{% endblock %}
{% block content %}
- <div class="card">
- <form method="post" enctype="multipart/form-data">
- <div class="card-content">
- {% csrf_token %}
- <input type="hidden" name="success_url" value="{% url 'dashboard:product-update' pk=product.pk %}#images">
- <div class="row">
- <div class="col s12 m8">
+ <div class="row">
+ <div class="col s12 m9">
+ <div class="card">
+ <form method="post" enctype="multipart/form-data">
+ <div class="card-content">
+ {% csrf_token %}
+ <input type="hidden" name="success_url" value="{% url 'dashboard:product-update' pk=product.pk %}#images">
<div class="row">
- {{ form.image|materializecss }}
+ <div class="col s12 m8">
+ <div class="row">
+ {{ form.image|materializecss }}
+ </div>
+ {% if product_image.pk %}
+ <p class="no-margin">
+ {% trans "Pick the most relevant part of the image using the red circle." context "Image form text" %}
+ </p>
+ {% endif %}
+ </div>
+ <div class="col s12 m4">
+ {% if show_variants %}
+ <div class="row">
+ {{ form.variants|materializecss }}
+ </div>
+ {% endif %}
+ </div>
+ </div>
+ <div class="row">
+ {{ form.alt|materializecss }}
</div>
- {% if product_image.pk %}
- <p class="no-margin">
- {% trans "Pick the most relevant part of the image using the red circle." context "Image form text" %}
- </p>
- {% endif %}
</div>
- <div class="col s12 m4">
- {% if show_variants %}
- <div class="row">
- {{ form.variants|materializecss }}
- </div>
+
+ <div class="card-action right-align">
+ {% if product_image.pk %}
+ <a href="{% url "dashboard:product-update" pk=product.pk %}#images" class="btn btn-flat">
+ {% trans "Cancel" context "Image form secondary action" %}</a>
+ <button type="submit" class="btn btn-flat">{% trans "Update" context "Image form primary action" %}</button>
+ {% else %}
+ <a href="{% url "dashboard:product-update" pk=product.pk %}#images" class="btn btn-flat">
+ {% trans "Cancel" context "Image form secondary action" %}</a>
+ <button type="submit" class="btn btn-flat">{% trans "Create" context "Image form secondary action" %}</button>
{% endif %}
</div>
- </div>
- <div class="row">
- {{ form.alt|materializecss }}
- </div>
- </div>
-
- <div class="card-action right-align">
- {% if product_image.pk %}
- <a href="{% url "dashboard:product-update" pk=product.pk %}#images" class="btn btn-flat">
- {% trans "Cancel" context "Image form secondary action" %}</a>
- <button type="submit" class="btn btn-flat">{% trans "Update" context "Image form primary action" %}</button>
- {% else %}
- <a href="{% url "dashboard:product-update" pk=product.pk %}#images" class="btn btn-flat">
- {% trans "Cancel" context "Image form secondary action" %}</a>
- <button type="submit" class="btn btn-flat">{% trans "Create" context "Image form secondary action" %}</button>
- {% endif %}
+ </form>
</div>
- </form>
+ </div>
+ <div class="col s12 m3 help-box"></div>
</div>
{% endblock %}
diff --git a/templates/dashboard/product/stock_form.html b/templates/dashboard/product/stock_form.html
index 06d43b736e..0313e35324 100644
--- a/templates/dashboard/product/stock_form.html
+++ b/templates/dashboard/product/stock_form.html
@@ -53,46 +53,51 @@
{% block menu_catalogue_class %} active{% endblock %}
{% block content %}
- <div class="card">
- <form method="post" id="form-stock" enctype="multipart/form-data">
- <div class="card-content">
- {% csrf_token %}
- <input type="hidden" name="success_url" value="{% url 'dashboard:product-update' pk=product.pk %}#stock">
- <div class="row">
- <div class="col s12 m8">
+ <div class="row">
+ <div class="col s12 m9">
+ <div class="card">
+ <form method="post" id="form-stock" enctype="multipart/form-data">
+ <div class="card-content">
+ {% csrf_token %}
+ <input type="hidden" name="success_url" value="{% url 'dashboard:product-update' pk=product.pk %}#stock">
<div class="row">
- {{ form.variant|materializecss }}
- </div>
- <div class="row">
- {{ form.location|materializecss }}
+ <div class="col s12 m8">
+ <div class="row">
+ {{ form.variant|materializecss }}
+ </div>
+ <div class="row">
+ {{ form.location|materializecss }}
+ </div>
+ </div>
+ <div class="col s12 m4">
+ <div class="row">
+ {{ form.quantity|materializecss }}
+ </div>
+ <div class="row">
+ {{ form.cost_price|materializecss }}
+ </div>
+ </div>
</div>
</div>
- <div class="col s12 m4">
- <div class="row">
- {{ form.quantity|materializecss }}
- </div>
- <div class="row">
- {{ form.cost_price|materializecss }}
- </div>
- </div>
- </div>
- </div>
- <div class="card-action right-align">
- {% if stock.pk %}
- <a href="{% url "dashboard:product-update" pk=product.pk %}#stock" class="btn btn-flat">
- {% trans "Cancel" context "Stock form secondary action" %}</a>
- <button type="submit" class="btn btn-flat">
- {% trans "Update" context "Stock form action" %}
- </button>
- {% else %}
- <a href="{% url "dashboard:product-update" pk=product.pk %}#stock" class="btn btn-flat">
- {% trans "Cancel" context "Stock form secondary action" %}</a>
- <button type="submit" class="btn btn-flat">
- {% trans "Create" context "Stock form action" %}
- </button>
- {% endif %}
+ <div class="card-action right-align">
+ {% if stock.pk %}
+ <a href="{% url "dashboard:product-update" pk=product.pk %}#stock" class="btn btn-flat">
+ {% trans "Cancel" context "Stock form secondary action" %}</a>
+ <button type="submit" class="btn btn-flat">
+ {% trans "Update" context "Stock form action" %}
+ </button>
+ {% else %}
+ <a href="{% url "dashboard:product-update" pk=product.pk %}#stock" class="btn btn-flat">
+ {% trans "Cancel" context "Stock form secondary action" %}</a>
+ <button type="submit" class="btn btn-flat">
+ {% trans "Create" context "Stock form action" %}
+ </button>
+ {% endif %}
+ </div>
+ </form>
</div>
- </form>
+ </div>
+ <div class="col s12 m3 help-box"></div>
</div>
{% endblock %}
diff --git a/templates/dashboard/product/variant_form.html b/templates/dashboard/product/variant_form.html
index 8d9178a125..e41a91d82b 100644
--- a/templates/dashboard/product/variant_form.html
+++ b/templates/dashboard/product/variant_form.html
@@ -46,53 +46,58 @@
{% block menu_catalogue_class %} active{% endblock %}
{% block content %}
- <div class="card">
- <form method="post" id="form-variant" enctype="multipart/form-data">
- <div class="card-content">
- {% csrf_token %}
- <input type="hidden" name="success_url" value="{% url 'dashboard:product-update' pk=product.pk %}#variants">
- <div class="row">
- <div class="col s12 m8">
+ <div class="row">
+ <div class="col s12 m9">
+ <div class="card">
+ <form method="post" id="form-variant" enctype="multipart/form-data">
+ <div class="card-content">
+ {% csrf_token %}
+ <input type="hidden" name="success_url" value="{% url 'dashboard:product-update' pk=product.pk %}#variants">
<div class="row">
- {{ form.name|materializecss }}
- </div>
- {% if attribute_form.fields %}
- {% for attribute_field in attribute_form %}
+ <div class="col s12 m8">
<div class="row">
- {{ attribute_field|materializecss }}
+ {{ form.name|materializecss }}
</div>
- {% endfor %}
- {% else %}
- <p>{% trans "This product has no attributes." context "Variant form text" %}</p>
- {% endif %}
- </div>
+ {% if attribute_form.fields %}
+ {% for attribute_field in attribute_form %}
+ <div class="row">
+ {{ attribute_field|materializecss }}
+ </div>
+ {% endfor %}
+ {% else %}
+ <p>{% trans "This product has no attributes." context "Variant form text" %}</p>
+ {% endif %}
+ </div>
- <div class="col s12 m4">
- <div class="row">
- {{ form.sku|materializecss }}
- </div>
- <div class="row">
- {{ form.price_override|materializecss }}
+ <div class="col s12 m4">
+ <div class="row">
+ {{ form.sku|materializecss }}
+ </div>
+ <div class="row">
+ {{ form.price_override|materializecss }}
+ </div>
+ </div>
</div>
</div>
- </div>
- </div>
- <div class="card-action right-align">
- {% if variant.pk %}
- <a href="{% url "dashboard:product-update" pk=product.pk %}#variants" class="btn btn-flat">
- {% trans "Cancel" context "Variant form secondary action" %}</a>
- <button type="submit" class="btn btn-flat">
- {% trans "Update" context "Variant form action" %}
- </button>
- {% else %}
- <a href="{% url "dashboard:product-update" pk=product.pk %}#variants" class="btn btn-flat">
- {% trans "Cancel" context "Variant form secondary action" %}</a>
- <button type="submit" class="btn btn-flat">
- {% trans "Create" context "Variant form action" %}
- </button>
- {% endif %}
+ <div class="card-action right-align">
+ {% if variant.pk %}
+ <a href="{% url "dashboard:product-update" pk=product.pk %}#variants" class="btn btn-flat">
+ {% trans "Cancel" context "Variant form secondary action" %}</a>
+ <button type="submit" class="btn btn-flat">
+ {% trans "Update" context "Variant form action" %}
+ </button>
+ {% else %}
+ <a href="{% url "dashboard:product-update" pk=product.pk %}#variants" class="btn btn-flat">
+ {% trans "Cancel" context "Variant form secondary action" %}</a>
+ <button type="submit" class="btn btn-flat">
+ {% trans "Create" context "Variant form action" %}
+ </button>
+ {% endif %}
+ </div>
+ </form>
</div>
- </form>
+ </div>
+ <div class="col s12 m3 help-box"></div>
</div>
{% endblock %}