Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove unnecessary html from file
Mira87f34ec96598
diff --git a/templates/dashboard/product/product_form.html b/templates/dashboard/product/product_form.htmlindex 9e3ffd87ea..52b19fa5fb 100644--- a/templates/dashboard/product/product_form.html+++ b/templates/dashboard/product/product_form.html@@ -50,40 +50,6 @@{% block menu_catalogue_class %} active{% endblock %}{% block content %}- {% if product.pk %}- <div class="row">- <div class="col s12">- <ul class="tabs">- <li class="tab col s3" role="presentation">- <a href="#details" class="active" role="tab">- <span>- {% trans "Details" context "Product form tab" %}- </span>- <svg data-src="{% static "dashboard/images/edit.svg" %}" width="24" height="24" />- </a>- </li>- {% if product.product_class.has_variants %}- <li class="tab col s3" role="presentation">- <a href="#variants" role="tab">- <span>- {% trans "Variants" context "Dashboard variants" %}- </span>- <svg data-src="{% static "dashboard/images/style.svg" %}" width="24" height="24" />- </a>- </li>- {% endif %}- <li class="tab col s3" role="presentation">- <a href="#stock" role="tab">- <span>- {% trans "Stock" context "Dashboard stock" %}- </span>- <svg data-src="{% static "dashboard/images/store.svg" %}" width="24" height="24" />- </a>- </li>- </ul>- </div>- </div>- {% endif %}<div class="tab-content" id="details"><div class="row"><div class="col m12 l9">@@ -150,199 +116,4 @@<div class="col m12 l3 help-box"></div></div></div>-- {% if product.pk %}- {% if product.product_class.has_variants %}- <div id="variants" class="card tab-content">- <form method="post" action="{% url 'dashboard:variant-bulk-delete' product_pk=product.pk %}" novalidate>- {% csrf_token %}- <div class="data-table-header-action">- <a href="{% url 'dashboard:variant-add' product_pk=product.pk %}" class="btn-data-table btn-show-when-unchecked btn-flat">- {% trans "Add" context "Dashboard add action" %}- </a>- <a href="#modal-product-variant-delete" class="modal-trigger btn-data-table btn-show-when-checked btn-flat" style="display:none" hidden>- {% trans "Delete" context "Dashboard delete action" %}- </a>-- <div class="modal" id="modal-product-variant-delete">- <div class="modal-content">- <h5>- {% trans "Are you sure?" context "Dashboard confirmation modal" %}- </h5>- <p>- {% blocktrans trimmed context "Modal delete variant from product text" %}- You are about to delete variants of this product.- {% endblocktrans %}- </p>- </div>- <div class="modal-footer">- <button type="submit" class="modal-action btn-flat">- {% trans "Delete" context "Dashboard delete action" %}- </button>- <a href="#!" class="modal-action modal-close btn-flat">- {% trans "Cancel" context "Dashboard cancel action" %}- </a>- </div>- </div>- </div>- <div class="data-table-container">- <table class="bordered highlight responsive data-table">- {% if variants %}- <thead>- <tr>- <th class="bulk-checkbox">- <input type="checkbox" id="select-all-variants" class="filled-in select-all switch-actions">- <label for="select-all-variants"></label>- </th>- <th>- {% trans "SKU" context "Product variant table header" %}- </th>- {% for attribute in attributes %}- <th>- {{ attribute.name|capfirst }}- </th>- {% endfor %}- <th class="wide">- {% trans "Variant name" context "Product variant table header" %}- </th>- <th class="right-align">- {% trans "Price" context "Product variant table header" %}- </th>- </tr>- </thead>- <tbody>- {% for variant in variants %}- <tr data-action-go="{% url 'dashboard:variant-update' product_pk=product.pk variant_pk=variant.pk %}" title="{% trans "Edit variant" context "Product variant table link title" %}">- <td class="bulk-checkbox ignore-link">- <input id="id_variants_{{ variant.id }}" name="items" type="checkbox" value="{{ variant.id }}" class="filled-in switch-actions">- <label for="id_variants_{{ variant.id }}"></label>- </td>- <td>- {{ variant.sku }}- </td>- {% for attr_display in variant|attributes_values_with_empty:attributes %}- <td>- {{ attr_display }}- </td>- {% endfor %}- <td>- {{ variant.name }}- </td>- <td class="right-align">- {% gross variant.get_price_per_item html=True %}- </td>- </tr>- {% endfor %}- </tbody>- {% else %}- <tbody>- <tr>- <td>- <span>- {% trans "There are no variants for this product" context "Empty product variant table message" %}- </span>- </td>- </tr>- </tbody>- {% endif %}- </table>- </div>- <input type="hidden" name="success_url" value="{% url 'dashboard:product-update' pk=product.pk %}#variants">- </form>- </div>- {% endif %}- <div id="stock" class="card tab-content">- <form method="post" action="{% url 'dashboard:stock-bulk-delete' product_pk=product.pk %}" novalidate>- {% csrf_token %}- <div class="data-table-header-action">- <a href="" class="btn-data-table btn-show-when-unchecked btn-flat">- {% trans "Add" context "Product form stock tab table action" %}- </a>- <a href="#modal-product-stock-delete" class="modal-trigger btn-data-table btn-show-when-checked btn-flat" style="display:none" hidden>- {% trans "Delete" context "Dashboard delete action" %}- </a>- <div class="modal" id="modal-product-stock-delete">- <div class="modal-content">- <h5>- {% trans "Are you sure?" context "Dashboard confirmation modal" %}- </h5>- <p>- {% blocktrans trimmed context "Modal delete stock from variant text" %}- You are about to delete stock for this product variant.- {% endblocktrans %}- </p>- </div>- <div class="modal-footer">- <button type="submit" class="modal-action btn-flat">- {% trans "Delete" context "Dashboard delete action" %}- </button>- <a href="#!" class="modal-action modal-close btn-flat">- {% trans "Cancel" context "Dashboard cancel action" %}- </a>- </div>- </div>- </div>- <div class="data-table-container">- <table class="bordered highlight responsive data-table">- {% if stock_items %}- <thead>- <tr>- <th class="bulk-checkbox">- <input type="checkbox" id="select-all-stock" class="filled-in select-all switch-actions">- <label for="select-all-stock"></label>- </th>- <th>- {% trans "SKU" context "Stock table header" %}- </th>- <th class="wide">- {% trans "Location" context "Stock table header" %}- </th>- <th class="right-align">- {% trans "Quantity" context "Stock table header" %}- </th>- <th class="right-align">- {% trans "Allocated" context "Stock table header" %}- </th>- </tr>- </thead>- <tbody>- {% for item in stock_items %}- <tr title="{% trans "Edit variant" context "Stock table action" %}">- <td class="bulk-checkbox ignore-link">- <input name="items" type="checkbox" id="{{ item.id }}" class="filled-in switch-actions" value="{{ item.id }}">- <label for="{{ item.id }}"></label>- </td>- <td>- {{ item.variant.sku }}- </td>- <td>- {{ item.location }}- </td>- <td class="right-align">- {{ item.quantity }}- </td>- <td class="right-align">- {{ item.quantity_allocated }}- </td>- </tr>- {% endfor %}- </tbody>- {% else %}- <tbody>- <tr>- <td>- <span>- {% trans "There is no stock for this product." context "Empty stock table message" %}- </span>- </td>- </tr>- </tbody>- {% endif %}- </table>- </div>- <input type="hidden" name="success_url" value="{% url 'dashboard:product-update' pk=product.pk %}#stock">- </form>- </div>-- {% endif %}{% endblock %}