Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Template markup fixes
Marcin Gębalad019667ed272
diff --git a/saleor/dashboard/templates/dashboard/customer/list.html b/saleor/dashboard/templates/dashboard/customer/list.htmlindex 510e971f44..af8c815e43 100644--- a/saleor/dashboard/templates/dashboard/customer/list.html+++ b/saleor/dashboard/templates/dashboard/customer/list.html@@ -39,11 +39,13 @@{% if customers %}<table class="table"><thead>- <th>{% trans "Email" %}</th>- <th>{% trans "Name" %}</th>- <th>{% trans "Location" %}</th>- <th>{% trans "Number of orders" %}</th>- <th>{% trans "Last order" %}</th>+ <tr>+ <th>{% trans "Email" %}</th>+ <th>{% trans "Name" %}</th>+ <th>{% trans "Location" %}</th>+ <th>{% trans "Number of orders" %}</th>+ <th>{% trans "Last order" %}</th>+ </tr></thead><tbody>{% for customer in customers %}diff --git a/saleor/dashboard/templates/dashboard/index.html b/saleor/dashboard/templates/dashboard/index.htmlindex 22de959a9a..aac60bf5f0 100644--- a/saleor/dashboard/templates/dashboard/index.html+++ b/saleor/dashboard/templates/dashboard/index.html@@ -16,11 +16,11 @@<table class="table"><thead><tr>- <td>Order</td>- <td>Gateway</td>- <td>Date</td>- <td>Customer</td>- <td>Amount</td>+ <th>Order</th>+ <th>Gateway</th>+ <th>Date</th>+ <th>Customer</th>+ <th>Amount</th></tr></thead><tbody>@@ -49,9 +49,9 @@<table class="table"><thead><tr>- <td>Order</td>- <td>Customer</td>- <td>Total</td>+ <th>Order</th>+ <th>Customer</th>+ <th>Total</th></tr></thead><tbody>diff --git a/saleor/dashboard/templates/dashboard/order/detail.html b/saleor/dashboard/templates/dashboard/order/detail.htmlindex bf68268474..be9ec9da5a 100644--- a/saleor/dashboard/templates/dashboard/order/detail.html+++ b/saleor/dashboard/templates/dashboard/order/detail.html@@ -32,20 +32,6 @@<th class="col-sm-1">{% trans "Actions" %}</th></tr></thead>- <tbody>- {% for item in group.items.all %}- <tr>- <td><a href="{% url "dashboard:product-update" pk=item.product_id %}">{{ item.product }}</a></td>- <td>{{ item.product_name }}</td>- <td>{{ item.product_sku }}</td>- <td>{% gross item.get_price_per_item %}</td>- <td>{{ item.quantity }}</td>- <td>- <a class="btn btn-link" data-target="#base-modal" href="{% url 'dashboard:order-line-edit' pk=item.pk %}" data-toggle="modal" {% if group.status != 'new' %}disabled{% endif %}>Edit</a>- </td>- </tr>- {% endfor %}- </tbody><tfoot><tr><td>@@ -60,6 +46,20 @@</td></tr></tfoot>+ <tbody>+ {% for item in group.items.all %}+ <tr>+ <td><a href="{% url "dashboard:product-update" pk=item.product_id %}">{{ item.product }}</a></td>+ <td>{{ item.product_name }}</td>+ <td>{{ item.product_sku }}</td>+ <td>{% gross item.get_price_per_item %}</td>+ <td>{{ item.quantity }}</td>+ <td>+ <a class="btn btn-link" data-target="#base-modal" href="{% url 'dashboard:order-line-edit' pk=item.pk %}" data-toggle="modal" {% if group.status != 'new' %}disabled{% endif %}>Edit</a>+ </td>+ </tr>+ {% endfor %}+ </tbody></table>{% endfor %}</div>diff --git a/saleor/dashboard/templates/dashboard/order/list.html b/saleor/dashboard/templates/dashboard/order/list.htmlindex 82174721be..17bf5ca667 100644--- a/saleor/dashboard/templates/dashboard/order/list.html+++ b/saleor/dashboard/templates/dashboard/order/list.html@@ -12,10 +12,12 @@{% include "dashboard/includes/_status_filters.html" %}<table class="table table-bordered"><thead>- <th>{% trans "Order number" %}</th>- <th>{% trans "Customer" %}</th>- <th>{% trans "Amount" %}</th>- <th>{% trans "Status" %}</th>+ <tr>+ <th>{% trans "Order number" %}</th>+ <th>{% trans "Customer" %}</th>+ <th>{% trans "Amount" %}</th>+ <th>{% trans "Status" %}</th>+ </tr></thead><tbody>{% for order in object_list %}diff --git a/saleor/dashboard/templates/dashboard/orders.html b/saleor/dashboard/templates/dashboard/orders.htmldeleted file mode 100644index efcea42394..0000000000--- a/saleor/dashboard/templates/dashboard/orders.html+++ /dev/null@@ -1,33 +0,0 @@-{% extends "dashboard/base.html" %}-{% load prices_i18n %}-{% block content %}--<div class="row">- <div class="col-lg-12">- <h1 class="page-header">Orders</h1>-- <table class="table table-bordered">- <thead>- <th>Order number</th>- <th>Customer</th>- <th>Amount</th>- <th>Status</th>- <th>Actions</th>- </thead>- <tbody>- {% for order in object_list %}- <tr>- <td><a href="">{{ order.id }}</a></td>- <td>{{ order.user|default:"Anonymous" }}</td>- <td>{% gross order.get_total %}</td>- <td>{{ order.status }}</td>- <td>- <a href="#">Prepare shipping</a>- </td>- </tr>- {% endfor %}- </tbody>- </table>- </div>-</div>-{% endblock %}diff --git a/saleor/dashboard/templates/dashboard/payments/list.html b/saleor/dashboard/templates/dashboard/payments/list.htmlindex 5b66738fc0..527d7ec296 100644--- a/saleor/dashboard/templates/dashboard/payments/list.html+++ b/saleor/dashboard/templates/dashboard/payments/list.html@@ -13,13 +13,15 @@<table class="table table-bordered"><thead>- <th>{% trans "Order number" %}</th>- <th>{% trans "Gateway" %}</th>- <th>{% trans "Date" %}</th>- <th>{% trans "Customer" %}</th>- <th>{% trans "Amount" %}</th>- <th>{% trans "Status" %}</th>- <th>{% trans "Captured amount" %}</th>+ <tr>+ <th>{% trans "Order number" %}</th>+ <th>{% trans "Gateway" %}</th>+ <th>{% trans "Date" %}</th>+ <th>{% trans "Customer" %}</th>+ <th>{% trans "Amount" %}</th>+ <th>{% trans "Status" %}</th>+ <th>{% trans "Captured amount" %}</th>+ </tr></thead><tbody>{% for payment in payments %}diff --git a/saleor/dashboard/templates/dashboard/product/list.html b/saleor/dashboard/templates/dashboard/product/list.htmlindex 3b7c775306..17aa0c467f 100644--- a/saleor/dashboard/templates/dashboard/product/list.html+++ b/saleor/dashboard/templates/dashboard/product/list.html@@ -27,10 +27,12 @@</div><table class="table"><thead>- <th>{% trans "Image" %}</th>- <th>{% trans "Name" %}</th>- <th>{% trans "Collection" %}</th>- <th>{% trans "Price" %}</th>+ <tr>+ <th>{% trans "Image" %}</th>+ <th>{% trans "Name" %}</th>+ <th>{% trans "Collection" %}</th>+ <th>{% trans "Price" %}</th>+ </tr></thead><tbody>{% for product in products %}diff --git a/saleor/dashboard/templates/dashboard/product/product_form.html b/saleor/dashboard/templates/dashboard/product/product_form.htmlindex 438f4627c1..e2bc077c30 100644--- a/saleor/dashboard/templates/dashboard/product/product_form.html+++ b/saleor/dashboard/templates/dashboard/product/product_form.html@@ -7,17 +7,6 @@{% block title %}Product details{% endblock %}-{% block custom_css %}-<style type="text/css">- tr#add-variant.collapse.in {- display: table-row;- }- tr#add-image.collapse.in {- display: table-row;- }-</style>-{% endblock %}-{% block content %}<div class="row"><h1 class="page-header">{{ title }}</h1>@@ -46,7 +35,7 @@<span class="panel-title">{% trans "Variants" %}</span></div><div class="panel-body">- {% include "dashboard/includes/_formset_table.html" with formset=variant_formset collapse_id="add-variant" %}+ {% include "dashboard/includes/_formset_table.html" with formset=variant_formset %}</div></div>@@ -55,7 +44,7 @@<span class="panel-title">{% trans "Images" %}</span></div><div class="panel-body">- {% include "dashboard/includes/_formset_table.html" with formset=image_formset collapse_id="add-image" %}+ {% include "dashboard/includes/_formset_table.html" with formset=image_formset %}</div></div>