Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Replace old styles with demo styles
Artur Smęt914b2a601249
diff --git a/saleor/settings.py b/saleor/settings.pyindex 03809a46c0..105c4e02f0 100644--- a/saleor/settings.py+++ b/saleor/settings.py@@ -104,7 +104,7 @@ if not DEBUG:TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates',- 'DIRS': [os.path.join(PROJECT_ROOT, 'templates/demo'), os.path.join(PROJECT_ROOT, 'templates')],+ 'DIRS': [os.path.join(PROJECT_ROOT, 'templates'), os.path.join(PROJECT_ROOT, 'templates')],'OPTIONS': {'debug': DEBUG,'context_processors': context_processors,diff --git a/templates/base.html b/templates/base.htmlindex 8e96e0114e..72065d1446 100644--- a/templates/base.html+++ b/templates/base.html@@ -14,7 +14,7 @@{% endblock meta %}{% render_bundle 'vendor' 'css' %}- {% render_bundle 'storefront' 'css' %}+ {% render_bundle 'demo' 'css' %}{% block stylesheet %}{% endblock stylesheet %}@@ -26,54 +26,61 @@<body itemscope itemtype="http://schema.org/WebPage">{% block header %}- <header class="navbar navbar-default navbar-inverse navbar-static-top" role="navigation">- <nav class="container">- <div class="navbar-header">- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">- <span class="sr-only">Toggle navigation</span>- <span class="icon-bar"></span>- <span class="icon-bar"></span>- <span class="icon-bar"></span>- </button>- <a class="navbar-brand" href="/">Saleor</a>+ <header class="navbar" role="navigation">+ <div class="navbar__login hidden-sm-down">+ <div class="container">+ <p class="float-xs-left">{% trans "Test Saleor in Testeor - a sample shop!" %}</p>+ <p class="float-xs-right">+ {% if user.is_authenticated %}+ {% if user.is_staff %}+ <a href="{% url "dashboard:index" %}" traget="_blank">{% trans "Dashboard" %}</a> |+ {% endif %}+ <a href="{% url "profile:details" %}">{% trans "My account" %}</a> |+ <a href="{% url "registration:logout" %}">{% trans "Log out" %}</a>+ {% else %}+ <a href="{% url "registration:request_email_confirmation" %}">{% trans "Register" %}</a> |+ <a href="{% url "registration:login" %}">{% trans "Log in" %}</a>+ {% endif %}+ </p>+ </div>+ </div>+ <div class="navbar__brand">+ <div class="container">+ <img class="hidden-md-up navbar__brand__menu-toggle closed open" src="{% static "img/mobile-bar.svg" %}">+ <a href="/">+ <img src="{% static "img/testeor-logo.svg" %}" alt="Testeor - Saleor demo store">+ </a>+ <div class="float-xs-right">+ <img class="hidden-md-up" src="{% static "img/search-icon.svg" %}">+ <div class="navbar__brand__cart float-xs-right">+ <a href="{% url "cart:index" %}">+ <span class="hidden-sm-down">{% trans "Your cart" %}</span>+ <img class="navbar__brand__cart__icon" src="{% static "img/cart.svg" %}" alt="Cart">+ <span class="badge {% if not cart_counter %}hidden-xs-up{% endif %}">{{ cart_counter }}</span>+ </a>+ <div class="cart-dropdown hidden-md-down">+ {% include 'cart-dropdown.html' %}+ </div></div>- <div class="collapse navbar-collapse navbar-ex1-collapse">- <ul class="nav navbar-nav">- {% for category in categories %}- <li>- <a href="{{ category.get_absolute_url }}">- {{ category }}- </a>- </li>- {% endfor %}- </ul>- <ul class="nav navbar-nav navbar-right">- <li>- <a href="{% url "cart:index" %}"><i class="glyphicon glyphicon-shopping-cart"></i> {% trans "Cart" %} {% if cart_counter %}<span class="badge">{{ cart_counter }}</span>{% endif %}</a>- </li>- {% if user.is_authenticated %}- <li class="dropdown">- <a data-toggle="dropdown" class="dropdown-toggle" href=".">{% blocktrans %}Hello, {{ user }}{% endblocktrans %} <b class="caret"></b></a>- <ul class="dropdown-menu">- <li><a href="{% url "profile:details" %}">{% trans "Your profile" %}</a></li>- <li><a href="{% url "profile:orders" %}">{% trans "Your orders" %}</a></li>- {% if user.is_staff %}- <li class="divider"></li>- <li><a href="{% url "dashboard:index" %}" traget="_blank">{% trans "Dashboard" %}</a></li>- {% endif %}- <li class="divider"></li>- <li><a href="{% url "account_logout" %}">{% trans "Log out" %}</a></li>- </ul>- </li>- {% else %}- <li>- <a href="{% url "account_login" %}">Sign in</a>+ </div>+ </div>+ </div>+ <div class="navbar__menu">+ <div class="container">+ <nav class="navigation">+ {% url 'home' as home_url %}+ <ul class="nav navbar-nav{% if request.get_full_path == home_url %} no-border{% endif %}" >+ {% for category in categories %}+ <li class="nav-item">+ <a class="nav-link" href="{{ category.get_absolute_url }}">+ {{ category }}+ </a></li>- {% endif %}- </ul>- {% include "search/search_form.html" %}- </div>- </nav>+ {% endfor %}+ </ul>+ </nav>+ </div>+ </div></header>{% endblock %}{% if messages %}@@ -86,40 +93,79 @@{% endfor %}</div>{% endif %}- <div class="container">- {% block outerbreadcrumb %}- <ul class="breadcrumb" itemprop="breadcrumb">- {% block breadcrumb %}- <li>- <a href="/">{% trans "Home" %}</a>- </li>- {% endblock breadcrumb %}- </ul>- {% endblock outerbreadcrumb %}- {% block outercontent %}- <div class="row">- <div class="col-sm-12">- {% block content %}- <div class="row">- {% include "category/_items.html" %}- </div>- {% endblock content %}- </div>- </div>- {% endblock outercontent %}+ <div class="container maincontent">+ {% block breadcrumb %}+ {% endblock breadcrumb %}+ {% block content %}+ {% endblock content %}</div>{% block footer %}- <footer>+ <footer class="footer"><div class="container">- <p class="pull-right">- © Mirumee Software 2016- </p>+ <div class="row">+ <div class="col-md-3">+ <a href="/">+ <img class="footer__logo" src="{% static "img/testeor-logo-white.svg" %}" alt="Testeor - Saleor demo store">+ </a>+ </div>+ <div class="col-md-3 col-sm-6">+ <ul>+ {% for category in categories %}+ <li>+ <a href="{{ category.get_absolute_url }}">+ {{ category }}+ </a>+ </li>+ {% endfor %}+ </ul>+ </div>+ <div class="col-md-3 col-sm-6">+ <ul>+ <li>+ <a href="{% url "cart:index" %}">+ {% trans "Cart" %}+ </a>+ </li>+ {% if user.is_authenticated %}+ {% if user.is_staff %}+ <li>+ <a href="{% url "dashboard:index" %}" traget="_blank">{% trans "Dashboard" %}</a>+ </li>+ {% endif %}+ <li>+ <a href="{% url "profile:details" %}">+ {% trans "My account" %}+ </a>+ </li>+ <li>+ <a href="{% url "registration:logout" %}">{% trans "Log out" %}</a>+ </li>+ {% else %}+ <li>+ <a href="{% url "registration:request_email_confirmation" %}">{% trans "Register" %}</a>+ </li>+ <li>+ <a href="{% url "registration:login" %}">{% trans "Log in" %}</a>+ </li>+ {% endif %}+ </ul>+ </div>+ <div class="col-md-3 col-sm-12">+ <a target="_blank" class="github-footer" href="https://github.com/mirumee/saleor">+ <img src="{% static "img/github_logo.svg" %}">+ </a>+ <a target="_blank" href="https://twitter.com/getsaleor">+ <img src="{% static "img/twitter_logo.svg" %}">+ </a>+ </div>+ </div></div></footer>{% endblock %}{% block footer_scripts %}{% render_bundle 'vendor' 'js' %}- {% render_bundle 'storefront' 'js' %}+ {% render_bundle 'demo' 'js' %}{% endblock footer_scripts %}</body></html>+diff --git a/templates/demo/cart-dropdown.html b/templates/cart-dropdown.htmlsimilarity index 100%rename from templates/demo/cart-dropdown.htmlrename to templates/cart-dropdown.htmldiff --git a/templates/cart/index.html b/templates/cart/index.htmlindex a06b1b0b0e..d438e5c4fc 100644--- a/templates/cart/index.html+++ b/templates/cart/index.html@@ -7,105 +7,105 @@{% block title %}{% trans "Your cart" %} — {{ block.super }}{% endblock %}{% block breadcrumb %}- {{ block.super }}-<li><a href="{% url 'cart:index' %}">{% trans "Cart" %}</a></li>+<ul class="breadcrumbs list-unstyled">+ <li><a href="/">{% trans "Home" %}</a></li>+ <li><a href="{% url 'cart:index' %}">{% trans "Cart" %}</a></li>+</ul>{% endblock breadcrumb %}-{% block stylesheet %}- {{ block.super }}- {% render_bundle 'cart' 'css' %}-{% endblock stylesheet %}-{% block footer_scripts %}{{ block.super }}{% render_bundle 'cart' 'js' %}{% endblock footer_scripts %}{% block content %}-{% if cart_lines %}- <table class="table table-striped cart" id="cart-items">- <thead>- <tr>- <th class="col-xs-5 col-sm-2 col-md-1">{% trans "Product" %}</th>- <th class="col-sm-5 hidden-xs"></th>- <th class="col-xs-6 col-sm-3 col-md-2">{% trans "Quantity" %}</th>- <th class="col-sm-1 hidden-xs text-right">{% trans "Price" %}</th>- <th class="col-xs-1 text-right">{% trans "Subtotal" %}</th>- </tr>- </thead>- <tfoot>- <tr>- <td class="hidden-xs" colspan="2"></td>- <td class="col-xs-9 col-md-9 text-right lead" colspan="2">{% trans "Total" %}:- <td class="col-xs-3 col-md-2 text-right lead">- <span class="cart-total" data-value="{% gross cart_total %}"{% if local_cart_total %} data-value-local="{% gross local_cart_total %}"{% endif %}>- {% spaceless %}- {% gross cart_total html=True %}- {% if local_cart_total %}- <br>- <small class="text-info">- ≈- {% gross local_cart_total html=True %}- </small>- {% endif %}- {% endspaceless %}- </span>- </td>- </tr>- </tfoot>- <tbody>- {% for line in cart_lines %}- <tr class="cart-item">- <td class="hidden-xs">- <a href="{{ line.variant.get_absolute_url }}">- {% if line.variant.product.images.first %}- <img class="cart-item-image" itemprop="image" src="{{ line.variant.product.images.first.image.crop.100x100 }}" alt="">- {% else %}- <img class="cart-item-image" src="{% static 'images/product-image-placeholder-small.png' %}" alt="">- {% endif %}- </a>- </td>- <td>- <a href="{{ line.variant.get_absolute_url }}">- {{ line.variant.product }} - {{ line.variant.display_variant }}- </a>- </td>- <td>- <div class="cart-item-amount">- <form role="form" action="{% url "cart:update-line" variant_id=line.variant.pk %}" method="post" class="form-cart">- <div class="input-group cart-item-quantity js-hidden{% if form.quantity.errors %} has-error{% endif %}">- {{ line.form.quantity }}- <span class="input-group-btn">- <button class="btn btn-info" type="submit">{% trans "Update" %}</button>- </span>- </div>- {% if line.form.quantity.errors %}- {% for error in form.quantity.errors %}- <span class="text-danger">{{ error }}</span>- {% endfor %}- {% endif %}- {% csrf_token %}- </form>-- <button type="submit" class="btn btn-link btn-sm cart-item-remove">- <span class="text-muted">{% trans "Remove from cart" %}</span>- </button>- </div>- </td>- <td class="text-right hidden-xs">{% gross line.get_price_per_item html=True %}</td>- <td class="text-right cart-item-subtotal" data-product-id="{{ line.variant.pk }}">{% gross line.get_total html=True %}</td>- </tr>- {% endfor %}- </tbody>- </table>- <div class="form-group">- <div>- <a href="{% url "checkout:index" %}" class="btn btn-primary btn-lg pull-right">{% trans "Proceed to checkout" %}</a>+<div class="cart">+ {% if cart_lines %}+ <div class="cart__table-header hidden-sm-down">+ <div class="row">+ <div class="col-md-6">+ <small>{% trans "Product" %}</small>+ </div>+ <div class="col-md-2">+ <small>{% trans "Quantity" %}</small>+ </div>+ <div class="col-md-2">+ <small>{% trans "Price" %}</small>+ </div>+ <div class="col-md-2">+ <small>{% trans "Delete" %}</small></div>+ </div>+ </div>+ {% for line in cart_lines %}+ <div class="cart__line">+ <div class="row">+ <div class="col-md-6 col-xs-8 cart__line__product">+ <a href="{{ line.variant.get_absolute_url }}">+ {% if line.variant.product.images.first %}+ <img class="cart-item-image" itemprop="image" src="{{ line.variant.product.images.first.image.crop.60x60 }}" alt="">+ {% else %}+ <img class="cart-item-image" src="{% static 'images/product-image-placeholder-small.png' %}" alt="">+ {% endif %}+ <h3>{{ line.variant.product }}+ <br><small>{{ line.variant.display_variant }}</small></h3>+ </a>+ </div>+ <div class="cart-item-amount">+ <form role="form" action="{% url "cart:update-line" variant_id=line.variant.pk %}" method="post" class="form-cart">+ <div class="input-group cart-item-quantity js-hidden{% if form.quantity.errors %} has-error{% endif %}">+ {{ line.form.quantity }}+ <span class="input-group-btn">+ <button class="btn btn-info" type="submit">{% trans "Update" %}</button>+ </span>+ </div>+ {% if line.form.quantity.errors %}+ {% for error in form.quantity.errors %}+ <span class="text-danger">{{ error }}</span>+ {% endfor %}+ {% endif %}+ {% csrf_token %}+ </form>+ </div>+ <div class="cart-item-subtotal" data-product-id="{{ line.variant.pk }}">+ <h3>{% gross line.get_total html=True %}</h3>+ </div>+ </div>+ </div>+ {% endfor %}+ <div class="cart__total">+ <div class="row">+ <div class="col-xs-6">+ <h3>{% trans "Subtotal" %}</h3>+ <p>({% trans "Delivery claculated on checkout" %})</p>+ </div>+ <div class="col-md-2 offset-md-2 col-xs-6">+ <h3 class="cart-total" data-value="{% gross cart_total %}"{% if local_cart_total %} data-value-local="{% gross local_cart_total %}"{% endif %}>+ {% spaceless %}+ {% gross cart_total html=True %}+ {% if local_cart_total %}+ <br>+ <small class="text-info">+ ≈+ {% gross local_cart_total html=True %}+ </small>+ {% endif %}+ {% endspaceless %}+ </h3>+ </div>+ </div>+ </div>+ <div class="cart__checkout row">+ <div class="col-md-12">+ <a href="{% url "checkout:index" %}" class="btn primary float-md-right">{% trans "Checkout" %}</a>+ </div></div>-{% else %}-<p>- {% trans 'Your cart is empty' %}-</p>-{% endif %}+ {% else %}+ <div class="cart__empty">+ <img src="{% static 'img/pirate_cart.png' %}" srcset="{% static 'img/pirate_cart.png' %} 1x, {% static 'img/pirate_cart2x.png' %} 2x">+ <h2>{% trans "There are no products in your shopping cart." %}</h2>+ <a href="/" class="btn primary">{% trans "Check out Our sales" %}</a>+ </div>+ {% endif %}+ </div>{% endblock content %}diff --git a/templates/category/_items.html b/templates/category/_items.htmlindex 0d467387db..45ee54f18e 100644--- a/templates/category/_items.html+++ b/templates/category/_items.html@@ -4,20 +4,22 @@{% load product_first_image from product_images %}{% for product, availability in products %}- <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3" itemscope itemtype="https://schema.org/Product">- <div class="panel panel-default text-center">- <div class="panel-body">+ <div class="col-xs-12 col-sm-6 col-md-4 product-list" itemscope itemtype="https://schema.org/Product">+ <div class="text-center">+ <div><a itemprop="url" href="{{ product.get_absolute_url }}"><img itemprop="image" class="img-responsive" src="{% product_first_image product method="crop" size="400x400" %}" alt=""><span class="product-list-item-name" itemprop="name" title="{{ product }}">{{ product }}</span></a></div>- <div class="panel-footer">+ <div>{% if availability.available %}{% price_range availability.price_range %}{% if availability.discount %}- <span class="label label-success">{% trans "Discount!" %}</span>+ {% if undiscounted.min_price != price_range.min_price %}+ <div class="product-list__sale"><span>{% trans "Sale" %}</span></div>+ {% endif %}{% endif %}{% else %} diff --git a/templates/checkout/details.html b/templates/checkout/details.htmlindex 491597a46d..32e5ea9f8e 100644--- a/templates/checkout/details.html+++ b/templates/checkout/details.html@@ -1,20 +1,17 @@{% extends "base.html" %}{% load i18n %}+{% load staticfiles %}{% load gross net tax from prices_i18n %}-{% block title %}{% trans "Checkout" %} — {{ block.super }}{% endblock %}-{% block outerbreadcrumb %}{% endblock %}-{% block header %}- <header class="navbar navbar-default navbar-static-top" role="navigation">- <nav class="container">- <div class="navbar-header">- <a class="navbar-brand" href="/">Saleor</a>- </div>- </nav>+ <header class="checkout__header">+ <div class="container">+ <img src="{% static "img/testeor-logo-white.svg" %}" alt="Testeor - Saleor demo store">+ <h1>{% trans "Easy chekout" %}</h1>+ </div></header>{% endblock %}@@ -25,103 +22,60 @@{% if not user.is_authenticated %}<p class="alert alert-info">{% trans "Already have an account?" %}- <a href="{% url "account_login" %}?next={{ request.get_full_path }}">+ <a href="{% url "registration:login" %}?next={{ request.get_full_path }}">{% trans "Sign in" %}</a></p>{% endif %}- {% block step_info %}{% endblock %}-<div class="row">- <div class="col-sm-8">- {% block steps_menu %}- <ul class="nav nav-pills nav-justified nav-wizard">- <li>- <a href="{% url "cart:index" %}">{% trans "Cart" %}</a>- <div class="nav-arrow"></div>- </li>- <li>- <div class="nav-wedge"></div>- <a href="{% url "checkout:shipping-address" %}">{% trans "Shipping address" %}</a>- <div class="nav-arrow"></div>- </li>- <li>- <div class="nav-wedge"></div>- <a href="{% url "checkout:shipping-method" %}">{% trans "Shipping method" %}</a>- <div class="nav-arrow"></div>- </li>- <li>- <div class="nav-wedge"></div>- <a href="{% url "checkout:summary" %}">{% trans "Summary" %}</a>- </li>- </ul>- {% endblock steps_menu %}-- {% block forms %}{% endblock %}- </div>-- <div class="col-sm-4">+ <div class="col-md-7 offset-lg-1">+ {% block forms %}{% endblock %}+ </div>+ <div class="col-md-5 col-lg-4">{% with total=checkout.get_total %}- <table class="table table-condensed">- <tbody>- {% for delivery, delivery_cost, total_with_delivery in checkout.deliveries %}- {% for item, item_price_per_item, item_price_total in delivery %}- <tr>- <td class="noborder">- {{ item.variant.product }}{% if item.quantity != 1 %} <span class="badge">×{{ item.quantity }}</span>{% endif %}- <br>- <small>{{ item.variant }}</small>- </td>- <td class="noborder text-right">{% net item_price_total %}</td>- </tr>- {% endfor %}- {% endfor %}-- <tr>- <td>- {% trans "Subtotal" %}- </td>- <td class="text-right">- {% net checkout.get_subtotal %}- </td>- </tr>-- <tr>- <td class="noborder">- {% trans "Shipping" %}- </td>- <td class="noborder text-right">- {% if checkout.shipping_method %}- {% net checkout.get_total_shipping %}- {% else %}- —- {% endif %}- </td>- </tr>-- {% include 'checkout/snippets/voucher-form.html' with discount=checkout.discount form=voucher_form %}-- {% if total.tax%}- <tr>- <td class="noborder">- {% trans "Taxes" %}- </td>- <td class="noborder text-right">- {% tax total %}- </td>- </tr>- {% endif %}- <tr>- <th>- {% trans "Total" %}- </th>- <td class="text-right">- <strong>{% gross total %}</strong>- </td>- </tr>- </tbody>- </table>+ <div class="checkout__review">+ <h3 class="checkout__review__tittle">{% trans "Order review" %}</h3>+ {% for delivery, delivery_cost, total_with_delivery in checkout.deliveries %}+ {% for item, item_price_per_item, item_price_total in delivery %}+ <div class="row">+ <div class="col-xs-8">+ <p><strong>{{ item.variant.product }}</strong> x {{ item.quantity }}<br>+ <span class="checkout__review__variant">{{ item.variant }}</span></p>+ </div>+ <div class="col-xs-4">+ <p class="float-xs-right">{% net item_price_total %}</p>+ </div>+ </div>+ {% endfor %}+ {% endfor %}+ <div class="row checkout__review__section">+ <div class="col-xs-8">+ <p>{% trans "Delivery" %}</p>+ </div>+ <div class="col-xs-4">+ <p class="float-xs-right">{% if checkout.shipping_method %}+ {% net checkout.get_total_shipping %}+ {% else %}+ —+ {% endif %}</p>+ </div>+ </div>+ <div class="row checkout__review__section">+ <div class="col-xs-12">+ <h3>{% trans "Promo code" %}</h3>+ {% include 'checkout/snippets/voucher-form.html' with discount=checkout.discount form=voucher_form %}+ </div>+ </div>+ <div class="row checkout__review__section">+ <div class="col-xs-8">+ <h3>{% trans "Total" %}</h3>+ </div>+ <div class="col-xs-4">+ <h3 class="float-xs-right">{% gross total %}</h3>+ </div>+ </div>+ </div>{% endwith %}- </div>+ </div></div>{% endblock content %}diff --git a/templates/checkout/shipping_address.html b/templates/checkout/shipping_address.htmlindex 1ce82b9705..0bc4a61fc3 100644--- a/templates/checkout/shipping_address.html+++ b/templates/checkout/shipping_address.html@@ -2,36 +2,10 @@{% load i18n %}{% load bootstrap_form from bootstrap3 %}-{% block steps_menu %}- <div class="nav nav-pills nav-justified nav-wizard">- <a href="{% url "cart:index" %}">- {% trans "Cart" %}- <div class="nav-arrow"></div>- </a>- <a class="active" href="{% url "checkout:shipping-address" %}">- <div class="nav-wedge"></div>- {% trans "Shipping address" %}- <div class="nav-arrow"></div>- </a>- <a>- <div class="nav-wedge"></div>- {% trans "Shipping method" %}- <div class="nav-arrow"></div>- </a>- <a>- <div class="nav-wedge"></div>- {% trans "Summary" %}- </a>- </div>-{% endblock steps_menu %}--{% block forms %}- <form method="post" novalidate>+ <form method="post" novalidate class="checkout__shipping">{% csrf_token %}- <div class="page-header">- <h3>{% trans "Shipping address" %}</h3>- </div>+ <h1>{% trans "Shipping address" %}</h1>{% if request.user.is_authenticated %}{% include "checkout/snippets/addresses-form.html" with addresses_form=user_form addresses=additional_addresses address_form=address_form only %}{% else %}@@ -40,7 +14,7 @@{% endif %}<p class="text-right">- <button type="submit" class="btn btn-primary btn-lg">+ <button type="submit" class="btn primary">{% trans "Continue to shipping method" %}</button></p>diff --git a/templates/checkout/snippets/addresses-form-panel.html b/templates/checkout/snippets/addresses-form-panel.htmlindex 1fb8c74430..6c5a9d38c8 100644--- a/templates/checkout/snippets/addresses-form-panel.html+++ b/templates/checkout/snippets/addresses-form-panel.html@@ -1,36 +1,21 @@-<div class="panel panel-default">- <div class="panel-heading" role="tab" id="address{{ radio_value }}">- <h4 class="radio panel-title">- <label role="button" data-toggle="collapse"- data-parent="#{{ parent_element_id }}"- data-target="#collapse{{ radio_value }}" aria-expanded="true"- aria-controls="collapse{{ value }}" for="address_{{ radio_value }}">- <input type="radio"- name="{{ radio_name }}"- value="{{ radio_value }}"- id="address_{{ radio_value }}"- {% if radio_value == value %}checked{% endif %}>- {% if address %}- {{ address }}, {{ address.street_address_1 }} {{ address.street_address_2 }}- {{ address.city }}- {% else %}- {{ label }}- {% endif %}- </label>- </h4>- </div>- <div id="collapse{{ radio_value }}"- class="panel-collapse collapse{% if radio_value == value %} in{% endif %}"- role="tabpanel"- aria-labelledby="headingOne">- {% if address %}- <div class="panel-body">- {% include "userprofile/snippets/address-details.html" with address=address only %}- </div>- {% elif address_form %}- <div class="panel-body">- {% include "userprofile/snippets/address-form.html" with address_form=address_form only %}- </div>- {% endif %}+<div class="checkout__shipping__form{% if address %} address_hide{% else %} address_show{% endif %}">+ <label>+ <input type="radio"+ name="{{ radio_name }}"+ value="{{ radio_value }}"+ id="address_{{ radio_value }}"+ {% if radio_value == value %}checked{% endif %}>+ {% if address %}+ {% include "userprofile/snippets/address-short.html" with address=address only %}+ {% else %}+ {{ label }}+ {% endif %}+ </label>+</div>+<div>+ {% if address_form %}+ <div class="checkout__new-address">+ {% include "userprofile/snippets/address-form.html" with address_form=address_form only %}</div>+ {% endif %}</div>diff --git a/templates/checkout/snippets/voucher-form.html b/templates/checkout/snippets/voucher-form.htmlindex f1d3b52641..eb6e0e0993 100644--- a/templates/checkout/snippets/voucher-form.html+++ b/templates/checkout/snippets/voucher-form.html@@ -1,33 +1,30 @@{% load bootstrap_field bootstrap_button bootstrap_icon from bootstrap3 %}{% load trans from i18n %}{% load gross from prices_i18n %}+{% load discount_amount_for from prices %}{% if form %}- <tr>{% if discount %}- <td class="noborder"><form action="{% url "checkout:remove-voucher" %}?next={{ request.path }}"method="post"- class="form-inline">+ class="float-xs-left checkout__review__voucher-form">{% csrf_token %}- <span class="text-success">{{ discount.name }}</span>+ <span>{{ discount.name }}</span><button type="submit"- class="btn btn-link btn-xs"- aria-label="{% trans "Remove" %}">- {% bootstrap_icon "remove" %}+ class="btn btn-link"+ aria-label="{% trans "Remove" %}">+ ({% trans "Remove" %})</button>+</form>- </td>- <td class="noborder text-right">- -{% gross discount.amount %}- </td>+ <div class="float-xs-right">+ {% gross discount|discount_amount_for:total %}+ </div>{% else %}<form action="{{ request.path }}?next={{ request.path }}"- method="post" class="form-inline">+ method="post">{% csrf_token %}- <td class="noborder form-group">{% bootstrap_field form.voucher show_label=False form_group_class="" %}</td>- <td class="noborder text-right">{% bootstrap_button _("Apply") button_type="submit" button_class="btn-default" %}</td>+ <div class="form-group checkout__review__voucher">{% bootstrap_field form.voucher show_label=False %} {% bootstrap_button _("Use") button_type="submit" button_class="btn checkout" %}</div></form>{% endif %}- </tr>{% endif %}diff --git a/templates/demo/admin/base_site.html b/templates/demo/admin/base_site.htmldeleted file mode 100644index eceeaf418d..0000000000--- a/templates/demo/admin/base_site.html+++ /dev/null@@ -1,15 +0,0 @@-{% extends "admin/base.html" %}--{% block title %}{{ title }} | Saleor{% endblock %}--{% block branding %}-<h1 id="site-name"><a href="{% url 'admin:index' %}">Saleor Admin</a></h1>-{% endblock %}--{% block nav-global %}{% endblock %}--{% block extrahead %}- {% load selectable_tags %}- {% include_ui_theme %}- {% include_jquery_libs %}-{% endblock %}\ No newline at end of filediff --git a/templates/demo/base.html b/templates/demo/base.htmldeleted file mode 100644index 7edf39eb03..0000000000--- a/templates/demo/base.html+++ /dev/null@@ -1,171 +0,0 @@-<!DOCTYPE html>-{% load i18n %}-{% load staticfiles %}-{% load render_bundle from webpack_loader %}--<html lang="en" class="no-js">- <head>- <title>{% block title %}Saleor{% endblock %}</title>- {% block meta %}- <meta charset="utf-8">- <meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="description" content="{% block meta_description %}{% endblock %}">- <meta name="author" content="{% trans "Mirumee Software" %}">- {% endblock meta %}-- {% render_bundle 'vendor' 'css' %}- {% render_bundle 'demo' 'css' %}-- {% block stylesheet %}{% endblock stylesheet %}-- <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->- <!--[if lt IE 9]>- <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>- <![endif]-->- </head>-- <body itemscope itemtype="http://schema.org/WebPage">- {% block header %}- <header class="navbar" role="navigation">- <div class="navbar__login hidden-sm-down">- <div class="container">- <p class="float-xs-left">{% trans "Test Saleor in Testeor - a sample shop!" %}</p>- <p class="float-xs-right">- {% if user.is_authenticated %}- {% if user.is_staff %}- <a href="{% url "dashboard:index" %}" traget="_blank">{% trans "Dashboard" %}</a> |- {% endif %}- <a href="{% url "profile:details" %}">{% trans "My account" %}</a> |- <a href="{% url "registration:logout" %}">{% trans "Log out" %}</a>- {% else %}- <a href="{% url "registration:request_email_confirmation" %}">{% trans "Register" %}</a> |- <a href="{% url "registration:login" %}">{% trans "Log in" %}</a>- {% endif %}- </p>- </div>- </div>- <div class="navbar__brand">- <div class="container">- <img class="hidden-md-up navbar__brand__menu-toggle closed open" src="{% static "img/mobile-bar.svg" %}">- <a href="/">- <img src="{% static "img/testeor-logo.svg" %}" alt="Testeor - Saleor demo store">- </a>- <div class="float-xs-right">- <img class="hidden-md-up" src="{% static "img/search-icon.svg" %}">- <div class="navbar__brand__cart float-xs-right">- <a href="{% url "cart:index" %}">- <span class="hidden-sm-down">{% trans "Your cart" %}</span>- <img class="navbar__brand__cart__icon" src="{% static "img/cart.svg" %}" alt="Cart">- <span class="badge {% if not cart_counter %}hidden-xs-up{% endif %}">{{ cart_counter }}</span>- </a>- <div class="cart-dropdown hidden-md-down">- {% include 'cart-dropdown.html' %}- </div>- </div>- </div>- </div>- </div>- <div class="navbar__menu">- <div class="container">- <nav class="navigation">- {% url 'home' as home_url %}- <ul class="nav navbar-nav{% if request.get_full_path == home_url %} no-border{% endif %}" >- {% for category in categories %}- <li class="nav-item">- <a class="nav-link" href="{{ category.get_absolute_url }}">- {{ category }}- </a>- </li>- {% endfor %}- </ul>- </nav>- </div>- </div>- </header>- {% endblock %}- {% if messages %}- <div class="container">- {% for message in messages %}- <div class="alert{% if message.tags %} alert-{{ message.tags }}{% endif %}">- <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>- {{ message }}- </div>- {% endfor %}- </div>- {% endif %}- <div class="container maincontent">- {% block breadcrumb %}- {% endblock breadcrumb %}- {% block content %}- {% endblock content %}- </div>- {% block footer %}- <footer class="footer">- <div class="container">- <div class="row">- <div class="col-md-3">- <a href="/">- <img class="footer__logo" src="{% static "img/testeor-logo-white.svg" %}" alt="Testeor - Saleor demo store">- </a>- </div>- <div class="col-md-3 col-sm-6">- <ul>- {% for category in categories %}- <li>- <a href="{{ category.get_absolute_url }}">- {{ category }}- </a>- </li>- {% endfor %}- </ul>- </div>- <div class="col-md-3 col-sm-6">- <ul>- <li>- <a href="{% url "cart:index" %}">- {% trans "Cart" %}- </a>- </li>- {% if user.is_authenticated %}- {% if user.is_staff %}- <li>- <a href="{% url "dashboard:index" %}" traget="_blank">{% trans "Dashboard" %}</a>- </li>- {% endif %}- <li>- <a href="{% url "profile:details" %}">- {% trans "My account" %}- </a>- </li>- <li>- <a href="{% url "registration:logout" %}">{% trans "Log out" %}</a>- </li>- {% else %}- <li>- <a href="{% url "registration:request_email_confirmation" %}">{% trans "Register" %}</a>- </li>- <li>- <a href="{% url "registration:login" %}">{% trans "Log in" %}</a>- </li>- {% endif %}- </ul>- </div>- <div class="col-md-3 col-sm-12">- <a target="_blank" class="github-footer" href="https://github.com/mirumee/saleor">- <img src="{% static "img/github_logo.svg" %}">- </a>- <a target="_blank" href="https://twitter.com/getsaleor">- <img src="{% static "img/twitter_logo.svg" %}">- </a>- </div>- </div>- </div>- </footer>- {% endblock %}- {% block footer_scripts %}- {% render_bundle 'vendor' 'js' %}- {% render_bundle 'demo' 'js' %}- {% endblock footer_scripts %}- </body>-</html>-diff --git a/templates/demo/cart/index.html b/templates/demo/cart/index.htmldeleted file mode 100644index d438e5c4fc..0000000000--- a/templates/demo/cart/index.html+++ /dev/null@@ -1,111 +0,0 @@-{% extends "base.html" %}-{% load gross from prices_i18n %}-{% load i18n %}-{% load static from staticfiles %}-{% load render_bundle from webpack_loader %}--{% block title %}{% trans "Your cart" %} — {{ block.super }}{% endblock %}--{% block breadcrumb %}-<ul class="breadcrumbs list-unstyled">- <li><a href="/">{% trans "Home" %}</a></li>- <li><a href="{% url 'cart:index' %}">{% trans "Cart" %}</a></li>-</ul>-{% endblock breadcrumb %}--{% block footer_scripts %}- {{ block.super }}- {% render_bundle 'cart' 'js' %}-{% endblock footer_scripts %}--{% block content %}-<div class="cart">- {% if cart_lines %}- <div class="cart__table-header hidden-sm-down">- <div class="row">- <div class="col-md-6">- <small>{% trans "Product" %}</small>- </div>- <div class="col-md-2">- <small>{% trans "Quantity" %}</small>- </div>- <div class="col-md-2">- <small>{% trans "Price" %}</small>- </div>- <div class="col-md-2">- <small>{% trans "Delete" %}</small>- </div>- </div>- </div>- {% for line in cart_lines %}- <div class="cart__line">- <div class="row">- <div class="col-md-6 col-xs-8 cart__line__product">- <a href="{{ line.variant.get_absolute_url }}">- {% if line.variant.product.images.first %}- <img class="cart-item-image" itemprop="image" src="{{ line.variant.product.images.first.image.crop.60x60 }}" alt="">- {% else %}- <img class="cart-item-image" src="{% static 'images/product-image-placeholder-small.png' %}" alt="">- {% endif %}- <h3>{{ line.variant.product }}- <br><small>{{ line.variant.display_variant }}</small></h3>- </a>- </div>- <div class="cart-item-amount">- <form role="form" action="{% url "cart:update-line" variant_id=line.variant.pk %}" method="post" class="form-cart">- <div class="input-group cart-item-quantity js-hidden{% if form.quantity.errors %} has-error{% endif %}">- {{ line.form.quantity }}- <span class="input-group-btn">- <button class="btn btn-info" type="submit">{% trans "Update" %}</button>- </span>- </div>- {% if line.form.quantity.errors %}- {% for error in form.quantity.errors %}- <span class="text-danger">{{ error }}</span>- {% endfor %}- {% endif %}- {% csrf_token %}- </form>- </div>- <div class="cart-item-subtotal" data-product-id="{{ line.variant.pk }}">- <h3>{% gross line.get_total html=True %}</h3>- </div>- </div>- </div>- {% endfor %}- <div class="cart__total">- <div class="row">- <div class="col-xs-6">- <h3>{% trans "Subtotal" %}</h3>- <p>({% trans "Delivery claculated on checkout" %})</p>- </div>- <div class="col-md-2 offset-md-2 col-xs-6">- <h3 class="cart-total" data-value="{% gross cart_total %}"{% if local_cart_total %} data-value-local="{% gross local_cart_total %}"{% endif %}>- {% spaceless %}- {% gross cart_total html=True %}- {% if local_cart_total %}- <br>- <small class="text-info">- ≈- {% gross local_cart_total html=True %}- </small>- {% endif %}- {% endspaceless %}- </h3>- </div>- </div>- </div>- <div class="cart__checkout row">- <div class="col-md-12">- <a href="{% url "checkout:index" %}" class="btn primary float-md-right">{% trans "Checkout" %}</a>- </div>- </div>- {% else %}- <div class="cart__empty">- <img src="{% static 'img/pirate_cart.png' %}" srcset="{% static 'img/pirate_cart.png' %} 1x, {% static 'img/pirate_cart2x.png' %} 2x">- <h2>{% trans "There are no products in your shopping cart." %}</h2>- <a href="/" class="btn primary">{% trans "Check out Our sales" %}</a>- </div>- {% endif %}- </div>-{% endblock content %}diff --git a/templates/demo/category/_items.html b/templates/demo/category/_items.htmldeleted file mode 100644index d0853cfb88..0000000000--- a/templates/demo/category/_items.html+++ /dev/null@@ -1,36 +0,0 @@-{% load i18n %}-{% load staticfiles %}-{% load price_range from price_ranges %}-{% load discounted_price_range price_difference from discount %}--{% for product in products %}- <div class="col-xs-6 col-md-4 product-list" itemscope itemtype="https://schema.org/Product" >- <div class="text-center">- <div>- <a itemprop="url" href="{{ product.get_absolute_url }}">- {% if product.images.first %}- <img itemprop="image" class="img-responsive" src="{{ product.images.first.image.crop.400x400 }}" alt="">- {% else %}- <img src="{% static 'images/product-image-placeholder.png' %}" alt="" class="img-responsive">- {% endif %}- <span class="product-list__name" itemprop="name" title="{{ product }}">{{ product }}<br>-</span>- </a>- </div>-- <div>- {% if product.is_in_stock %}- {% with price_range=product|discounted_price_range:request.discounts undiscounted=product.get_price_range %}- {% with discount=undiscounted.min_price|price_difference:price_range.min_price %}- {% price_range price_range %}- {% if undiscounted.min_price != price_range.min_price %}- <div class="product-list__sale"><span>{% trans "Sale" %}</span></div>- {% endif %}- {% endwith %}- {% endwith %}- {% else %}- - {% endif %}- </div>- </div>- </div>-{% endfor %}diff --git a/templates/demo/category/_list.html b/templates/demo/category/_list.htmldeleted file mode 100644index d904a2e431..0000000000--- a/templates/demo/category/_list.html+++ /dev/null@@ -1,12 +0,0 @@-{% load mptt_tags %}--{% recursetree categories %}- <li>- <a href="{{ node.get_absolute_url }}">{{ node }}</a>- {% if not node.is_leaf_node %}- <ul class="children">- {{ children }}- </ul>- {% endif %}- </li>-{% endrecursetree %}diff --git a/templates/demo/category/index.html b/templates/demo/category/index.htmldeleted file mode 100644index b77c7b85b5..0000000000--- a/templates/demo/category/index.html+++ /dev/null@@ -1,46 +0,0 @@-{% extends "base.html" %}-{% load slice from shop %}-{% load static from staticfiles %}-{% load bootstrap_pagination from bootstrap3 %}--{% block title %}{{ category }} — {{ block.super }}{% endblock %}--{% block breadcrumb %}- {{ block.super }}- {% for breadcrumb in breadcrumbs %}- <li{% if forloop.last %} class="active"{% endif %}>- {% if not forloop.last %}- <a href="{{ breadcrumb.get_absolute_url }}">{{ breadcrumb }}</a>- {% else %}- <span>{{ breadcrumb }}</span>- {% endif %}- </li>- {% endfor %}-{% endblock breadcrumb %}--{% block content %}- <div class="row">- <div class="col-md-3">- <ul class="list-group">- <li class="list-group-item active">- {{ category }}- </li>-- {% for category in children_categories %}- <li class="list-group-item">- <a href="{{ category.get_absolute_url }}">- {{ category }}- </a>- </li>- {% endfor %}- </ul>- </div>-- <div class="col-md-9">- <div class="row">- {% include "category/_items.html" %}- </div>- {% bootstrap_pagination products %}- </div>- </div>-{% endblock content %}diff --git a/templates/demo/checkout/details.html b/templates/demo/checkout/details.htmldeleted file mode 100644index 32e5ea9f8e..0000000000--- a/templates/demo/checkout/details.html+++ /dev/null@@ -1,81 +0,0 @@-{% extends "base.html" %}--{% load i18n %}-{% load staticfiles %}-{% load gross net tax from prices_i18n %}--{% block title %}{% trans "Checkout" %} — {{ block.super }}{% endblock %}--{% block header %}- <header class="checkout__header">- <div class="container">- <img src="{% static "img/testeor-logo-white.svg" %}" alt="Testeor - Saleor demo store">- <h1>{% trans "Easy chekout" %}</h1>- </div>- </header>-{% endblock %}--{% block footer %}-{% endblock %}--{% block content %}- {% if not user.is_authenticated %}- <p class="alert alert-info">- {% trans "Already have an account?" %}- <a href="{% url "registration:login" %}?next={{ request.get_full_path }}">- {% trans "Sign in" %}- </a>- </p>- {% endif %}- <div class="row">- <div class="col-md-7 offset-lg-1">- {% block forms %}{% endblock %}- </div>- <div class="col-md-5 col-lg-4">- {% with total=checkout.get_total %}- <div class="checkout__review">- <h3 class="checkout__review__tittle">{% trans "Order review" %}</h3>- {% for delivery, delivery_cost, total_with_delivery in checkout.deliveries %}- {% for item, item_price_per_item, item_price_total in delivery %}- <div class="row">- <div class="col-xs-8">- <p><strong>{{ item.variant.product }}</strong> x {{ item.quantity }}<br>- <span class="checkout__review__variant">{{ item.variant }}</span></p>- </div>- <div class="col-xs-4">- <p class="float-xs-right">{% net item_price_total %}</p>- </div>- </div>- {% endfor %}- {% endfor %}- <div class="row checkout__review__section">- <div class="col-xs-8">- <p>{% trans "Delivery" %}</p>- </div>- <div class="col-xs-4">- <p class="float-xs-right">{% if checkout.shipping_method %}- {% net checkout.get_total_shipping %}- {% else %}- —- {% endif %}</p>- </div>- </div>- <div class="row checkout__review__section">- <div class="col-xs-12">- <h3>{% trans "Promo code" %}</h3>- {% include 'checkout/snippets/voucher-form.html' with discount=checkout.discount form=voucher_form %}- </div>- </div>- <div class="row checkout__review__section">- <div class="col-xs-8">- <h3>{% trans "Total" %}</h3>- </div>- <div class="col-xs-4">- <h3 class="float-xs-right">{% gross total %}</h3>- </div>- </div>- </div>- {% endwith %}- </div>- </div>-{% endblock content %}diff --git a/templates/demo/checkout/payment.html b/templates/demo/checkout/payment.htmldeleted file mode 100644index 812836ffe9..0000000000--- a/templates/demo/checkout/payment.html+++ /dev/null@@ -1,19 +0,0 @@-{% extends "checkout/details.html" %}-{% load i18n %}-{% load bootstrap_form from bootstrap3 %}---{% block forms %}- <form method="post" novalidate>- {% csrf_token %}- <h4>{% trans "Payment" %}</h4>- <p class="text-right">- {% bootstrap_form payment_form %}-- {% bootstrap_form billing_address_form %}- <button type="submit" class="btn btn-primary btn-lg">- {% trans "Place order" %}- </button>- </p>- </form>-{% endblock forms %}diff --git a/templates/demo/checkout/shipping_address.html b/templates/demo/checkout/shipping_address.htmldeleted file mode 100644index 0bc4a61fc3..0000000000--- a/templates/demo/checkout/shipping_address.html+++ /dev/null@@ -1,22 +0,0 @@-{% extends "checkout/details.html" %}-{% load i18n %}-{% load bootstrap_form from bootstrap3 %}--{% block forms %}- <form method="post" novalidate class="checkout__shipping">- {% csrf_token %}- <h1>{% trans "Shipping address" %}</h1>- {% if request.user.is_authenticated %}- {% include "checkout/snippets/addresses-form.html" with addresses_form=user_form addresses=additional_addresses address_form=address_form only %}- {% else %}- {% bootstrap_form user_form %}- {% include "userprofile/snippets/address-form.html" with address_form=address_form only %}- {% endif %}-- <p class="text-right">- <button type="submit" class="btn primary">- {% trans "Continue to shipping method" %}- </button>- </p>- </form>-{% endblock %}diff --git a/templates/demo/checkout/shipping_method.html b/templates/demo/checkout/shipping_method.htmldeleted file mode 100644index 731fab80f0..0000000000--- a/templates/demo/checkout/shipping_method.html+++ /dev/null@@ -1,50 +0,0 @@-{% extends "checkout/details.html" %}-{% load i18n %}-{% load gross from prices_i18n %}-{% load bootstrap_form from bootstrap3 %}---{% block steps_menu %}- <div class="nav nav-pills nav-justified nav-wizard">- <a href="{% url "cart:index" %}">- {% trans "Cart" %}- <div class="nav-arrow"></div>- </a>- <a href="{% url "checkout:shipping-address" %}">- <div class="nav-wedge"></div>- {% trans "Shipping address" %}- <div class="nav-arrow"></div>- </a>- <a class="active" href="{% url "checkout:shipping-method" %}">- <div class="nav-wedge"></div>- {% trans "Shipping method" %}- <div class="nav-arrow"></div>- </a>- <a>- <div class="nav-wedge"></div>- {% trans "Summary" %}- </a>- </div>-{% endblock steps_menu %}---{% block forms %}- <div class="page-header">- <h3>{% trans "Shipping address" %}</h3>- </div>-- {% include "userprofile/snippets/address-details.html" with address=checkout.shipping_address only %}-- <form method="post" novalidate>- {% csrf_token %}- <h3>{% trans "Shipping method" %}</h3>-- {% bootstrap_form shipping_method_form show_label=False %}-- <p class="text-right">- <button type="submit" class="btn btn-primary btn-lg">- {% trans "Continue to payment" %}- </button>- </p>- </form>-{% endblock %}diff --git a/templates/demo/checkout/snippets/addresses-form-panel.html b/templates/demo/checkout/snippets/addresses-form-panel.htmldeleted file mode 100644index 6c5a9d38c8..0000000000--- a/templates/demo/checkout/snippets/addresses-form-panel.html+++ /dev/null@@ -1,21 +0,0 @@-<div class="checkout__shipping__form{% if address %} address_hide{% else %} address_show{% endif %}">- <label>- <input type="radio"- name="{{ radio_name }}"- value="{{ radio_value }}"- id="address_{{ radio_value }}"- {% if radio_value == value %}checked{% endif %}>- {% if address %}- {% include "userprofile/snippets/address-short.html" with address=address only %}- {% else %}- {{ label }}- {% endif %}- </label>-</div>-<div>- {% if address_form %}- <div class="checkout__new-address">- {% include "userprofile/snippets/address-form.html" with address_form=address_form only %}- </div>- {% endif %}-</div>diff --git a/templates/demo/checkout/snippets/addresses-form.html b/templates/demo/checkout/snippets/addresses-form.htmldeleted file mode 100644index 02832fcf25..0000000000--- a/templates/demo/checkout/snippets/addresses-form.html+++ /dev/null@@ -1,11 +0,0 @@-<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">- {% if addresses_form.SHIPPING_ADDRESS %}- {% include "checkout/snippets/addresses-form-panel.html" with parent_element_id="accordion" radio_name=addresses_form.address.html_name radio_value=addresses_form.SHIPPING_ADDRESS label=_('Same as shipping') value=addresses_form.address.value only %}- {% endif %}- {% for address in addresses %}- {% include "checkout/snippets/addresses-form-panel.html" with parent_element_id="accordion" radio_name=addresses_form.address.html_name radio_value=address.id label=address value=addresses_form.address.value address=address only %}- {% endfor %}- {% if addresses_form.NEW_ADDRESS and address_form %}- {% include "checkout/snippets/addresses-form-panel.html" with parent_element_id="accordion" radio_name=addresses_form.address.html_name radio_value=addresses_form.NEW_ADDRESS label=_('Enter a new address') value=addresses_form.address.value address_form=address_form only %}- {% endif %}-</div>diff --git a/templates/demo/checkout/snippets/voucher-form.html b/templates/demo/checkout/snippets/voucher-form.htmldeleted file mode 100644index d2bb4782c8..0000000000--- a/templates/demo/checkout/snippets/voucher-form.html+++ /dev/null@@ -1,30 +0,0 @@-{% load bootstrap_field bootstrap_button bootstrap_icon from bootstrap3 %}-{% load trans from i18n %}-{% load gross from prices_i18n %}-{% load discount_amount_for from prices %}--{% if form %}- {% if discount %}- <form action="{% url "checkout:remove-voucher" %}?next={{ request.path }}"- method="post"- class="float-xs-left checkout__review__voucher-form">- {% csrf_token %}- <span>{{ discount.name }}</span>- <button type="submit"- class="btn btn-link"- aria-label="{% trans "Remove" %}">- ({% trans "Remove" %})- </button>-- </form>- <div class="float-xs-right">- {% gross discount|discount_amount_for:total %}- </div>- {% else %}- <form action="{{ request.path }}?next={{ request.path }}"- method="post">- {% csrf_token %}- <div class="form-group checkout__review__voucher">{% bootstrap_field form.voucher show_label=False %} {% bootstrap_button _("Use") button_type="submit" button_class="btn checkout" %}</div>- </form>- {% endif %}-{% endif %}diff --git a/templates/demo/checkout/summary.html b/templates/demo/checkout/summary.htmldeleted file mode 100644index 1fa39e427a..0000000000--- a/templates/demo/checkout/summary.html+++ /dev/null@@ -1,44 +0,0 @@-{% extends "checkout/details.html" %}-{% load i18n %}---{% block steps_menu %}- <div class="nav nav-pills nav-justified nav-wizard">- <a href="{% url "cart:index" %}">- {% trans "Cart" %}- <div class="nav-arrow"></div>- </a>- <a href="{% url "checkout:shipping-address" %}">- <div class="nav-wedge"></div>- {% trans "Shipping address" %}- <div class="nav-arrow"></div>- </a>- <a href="{% url "checkout:shipping-method" %}">- <div class="nav-wedge"></div>- {% trans "Shipping method" %}- <div class="nav-arrow"></div>- </a>- <a class="active" href="{% url "checkout:summary" %}">- <div class="nav-wedge"></div>- {% trans "Summary" %}- </a>- </div>-{% endblock steps_menu %}---{% block forms %}- <form method="post" novalidate>- {% csrf_token %}- <div class="page-header">- <h3>{% trans "Billing address" %}</h3>- </div>-- {% include "checkout/snippets/addresses-form.html" with addresses_form=addresses_form addresses=additional_addresses address_form=address_form only %}-- <p class="text-right">- <button type="submit" class="btn btn-primary btn-lg">- {% trans "Place order" %}- </button>- </p>- </form>-{% endblock forms %}diff --git a/templates/demo/checkout/summary_without_shipping.html b/templates/demo/checkout/summary_without_shipping.htmldeleted file mode 100644index 8c52005fba..0000000000--- a/templates/demo/checkout/summary_without_shipping.html+++ /dev/null@@ -1,26 +0,0 @@-{% extends "checkout/details.html" %}-{% load i18n %}-{% load bootstrap_form from bootstrap3 %}---{% block steps_menu %}{% endblock %}---{% block forms %}- <form method="post" novalidate>- {% csrf_token %}- <h3>{% trans "Billing address" %}</h3>- {% if request.user.is_authenticated %}- {% include "checkout/snippets/addresses-form.html" with addresses_form=addresses_form addresses=additional_addresses address_form=address_form only %}- {% else %}- {% bootstrap_form user_form %}- {% include "userprofile/snippets/address-form.html" with address_form=address_form only %}- {% endif %}-- <p class="text-right">- <button type="submit" class="btn btn-primary btn-lg">- {% trans "Place order" %}- </button>- </p>- </form>-{% endblock forms %}diff --git a/templates/demo/dashboard/base.html b/templates/demo/dashboard/base.htmldeleted file mode 100644index 6d1a9ab016..0000000000--- a/templates/demo/dashboard/base.html+++ /dev/null@@ -1,119 +0,0 @@-<!DOCTYPE html>-{% load staticfiles i18n %}-{% load render_bundle from webpack_loader %}--<html class="no-js">-<head>- <meta charset="utf-8">- <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">-- <title>{% block title %}{% trans "Dashboard - Saleor" %}{% endblock %}</title>-- {% render_bundle 'vendor' 'css' %}- {% render_bundle 'dashboard' 'css' %}- <link rel="stylesheet" type="text/css" href="{% static "versatileimagefield/css/versatileimagefield.css" %}">-- {% block custom_css %}- {% endblock %}-</head>--<body class="{% block body_class %}body-home{% endblock %}">- <header class="header">- <nav class="top-nav">- <div class="container">- <div class="nav-wrapper">- {% block header_menu %}- <a href="#" data-activates="side-menu" class="button-collapse header-button"><i class="material-icons">menu</i></a>- {% endblock %}- {% block breadcrumbs %}- <ul class="breadcrumbs">- <li>{% trans "Dashboard" %}</li>- </ul>- {% endblock %}- {% block header_extra %}{% endblock %}- </div>- </div>- <ul class="side-nav fixed" id="side-menu">- <li class="brand-logo">- <a href="{% url 'dashboard:index' %}">- <img src="{% static "img/dashboard-logo.svg" %}" alt="Saleor">- </a>- </li>- <li class="side-nav-user">- <ul class="collapsible collapsible-accordion">- <li>- <a class="waves-effect waves-teal collapsible-header">- <i class="material-icons">account_circle</i>{{ request.user }}- </a>- <div class="collapsible-body">- <ul>- <li><a href="/" target="_blank" class="waves-effect waves-teal">{% trans "Visit storefront" %}</a></li>- <li><a href="{% url 'registration:logout' %}" class="waves-effect waves-teal">{% trans "Log out" %}</a></li>- </ul>- </div>- </li>- </ul>- </li>- <li class="nav-home"><a href="{% url 'dashboard:index' %}">{% trans "Home" %}</a></li>- <li>- <ul class="collapsible collapsible-accordion" data-collapsible="accordion">- <li>- <a class="waves-effect waves-teal collapsible-header{% block menu_catalogue_class %}{% endblock %}">{% trans "Catalogue" %}</a>- <div class="collapsible-body">- <ul>- <li class="subnav-products"><a href="{% url 'dashboard:product-list' %}">{% trans "Products" %}</a></li>- <li class="subnav-attributes"><a href="{% url 'dashboard:product-attributes' %}">{% trans "Attributes" %}</a></li>- <li class="subnav-categories"><a href="{% url 'dashboard:category-list' %}">{% trans "Categories" %}</a></li>- </ul>- </div>- </li>-- <li>- <a class="waves-effect waves-teal collapsible-header{% block menu_discounts_class %}{% endblock %}">{% trans "Discounts" %}</a>- <div class="collapsible-body">- <ul>- <li class="subnav-sales"><a href="{% url 'dashboard:sale-list' %}">{% trans "Sales" %}</a></li>- <li class="subnav-vouchers"><a href="{% url 'dashboard:voucher-list' %}">{% trans "Vouchers" %}</a></li>- </ul>- </div>- </li>-- <li>- <a class="waves-effect waves-teal collapsible-header{% block menu_sales_class %}{% endblock %}">{% trans "Sales" %}</a>- <div class="collapsible-body">- <ul>- <li class="subnav-orders"><a href="{% url 'dashboard:orders' %}">{% trans "Orders" %}</a></li>- <li class="subnav-customers"><a href="{% url 'dashboard:customers' %}">{% trans "Customers" %}</a></li>- <li class="subnav-payments"><a href="{% url 'dashboard:payments' %}">{% trans "Payments" %}</a></li>- </ul>- </div>- </li>-- <li class="{% block menu_delivery_class %}{% endblock %}"><a href="{% url 'dashboard:shipping-methods' %}">{% trans "Shipping methods" %}</a></li>- </ul>- </li>- </ul>- </nav>- </header>-- <main class="main">- <div class="container">- {% block content %}- {% endblock %}- </div>- </main>-- <div class="hide-on-med-only"></div>- <div class="hide-on-large-only"></div>- <div id="base-modal" class="modal"></div>- <div id="base-modal-fixed" class="modal modal-fixed-footer"></div>-- <!-- Core Scripts - Include with every page -->- {% render_bundle 'vendor' 'js' %}- {% render_bundle 'dashboard' 'js' %}- <script src="{% static "versatileimagefield/js/versatileimagefield.js" %}"></script>- {% include "dashboard/includes/_messages.html" %}-- {% block custom_js %}{% endblock %}-</body>-</html>diff --git a/templates/demo/dashboard/category/category_confirm_delete.html b/templates/demo/dashboard/category/category_confirm_delete.htmldeleted file mode 100644index 339bd32fe5..0000000000--- a/templates/demo/dashboard/category/category_confirm_delete.html+++ /dev/null@@ -1,57 +0,0 @@-{% extends "dashboard/base.html" %}-{% load i18n %}-{% load mptt_tags %}--{% block title %}{% trans "Delete category" %} - {{ block.super }}{% endblock %}--{% block body_class %}body-categories{% endblock %}--{% block content %}- <form class="form form-horizontal" action="" method="post" novalidate>- {% csrf_token %}-- <div class="row">- <div class="col-lg-12">- <h1 class="page-header">- {% blocktrans with category=category %}- Are you sure you want to delete the category {{ category }}?- {% endblocktrans %}- </h1>- </div>- </div>-- <div class="row">- <div class="col-lg-12">- {% if descendants %}- {% trans 'The following child categories will be deleted:' %}- <ul>- {% recursetree descendants %}- <li>{{ node.name }}- {% if not node.is_leaf_node %}- <ul class="children">- {{ children }}- </ul>- {% endif %}- </li>- {% endrecursetree %}- </ul>- {% endif %}-- {% if products_count %}- {% blocktrans count counter=products_count %}- There is one product in this category that will be deleted.- {% plural %}- There are {{ counter }} products in this category that will be deleted.- {% endblocktrans %}- {% endif %}- </div>- </div>-- <div class="form-group">- <div class="col-md-6">- <button class="btn btn-danger" type="submit"><i class="glyphicon glyphicon-trash"></i> {% trans "Delete" %}</button>- <a class="btn btn-default" href="{% url 'dashboard:category-list' root_pk=category.pk %}"><i class="glyphicon glyphicon-remove"></i> {% trans "Cancel" %}</a>- </div>- </div>- </form>-{% endblock %}diff --git a/templates/demo/dashboard/category/detail.html b/templates/demo/dashboard/category/detail.htmldeleted file mode 100644index 7409b2d122..0000000000--- a/templates/demo/dashboard/category/detail.html+++ /dev/null@@ -1,60 +0,0 @@-{% extends "dashboard/base.html" %}-{% load materializecss %}-{% load i18n %}-{% load mptt_tags %}--{% block title %}{% if category.pk %}{{ category }}{% else %}{% trans 'Add new category' %}{% endif %} - {% trans 'Categories' %} - {{ block.super }}{% endblock %}--{% block body_class %}body-categories{% endblock %}--{% block page_title %}{% if category.pk %}{{ category }}{% else %}{% trans 'Add new category' %}{% endif %}{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs breadcrumbs--with-menu">- <li><a href="{% url 'dashboard:category-list' %}" class="breadcrumbs--ellipsed-item">{% trans "Categories" %}</a></li>- {% if path %}- {% for node in path %}- <li><a href="{% url 'dashboard:category-list' root_pk=node.pk %}" class="breadcrumbs--ellipsed-item">{{ node.name }}</a></li>- {% endfor %}- {% endif %}- <li>- {% if category.pk %}- <span class="breadcrumbs--ellipsed-item">{{ category }}</span>- {% else %}- <span class="breadcrumbs--ellipsed-item">{% trans 'Add new category' %}</span>- {% endif %}- </li>- </ul>-{% endblock %}--{% block menu_catalogue_class %} active{% endblock %}--{% block content %}- <form method="post" id="form-category" enctype="multipart/form-data" novalidate>- {% csrf_token %}- <div class="row">- <div class="col l8">- <div class="row">- {{ form.name|materializecss:"s8 m10" }}- {{ form.hidden|materializecss:"s4 m2" }}- {{ form.description|materializecss }}- </div>- </div>- </div>-- <div class="row">- <div class="col s12 l8 right-align">- {% if category.parent %}- <a href="{% url 'dashboard:category-list' root_pk=category.parent.pk %}" class="btn-flat">{% trans "Cancel" %}</a>- {% else %}- <a href="{% url 'dashboard:category-list' %}" class="btn-flat">{% trans "Cancel" %}</a>- {% endif %}- {% if category.pk %}- <button type="submit" class="btn">{% trans "Update" %}</button>- {% else %}- <button type="submit" class="btn">{% trans "Create" %}</button>- {% endif %}- </div>- </div>- </form>-{% endblock %}diff --git a/templates/demo/dashboard/category/list.html b/templates/demo/dashboard/category/list.htmldeleted file mode 100644index d3d206d452..0000000000--- a/templates/demo/dashboard/category/list.html+++ /dev/null@@ -1,120 +0,0 @@-{% extends "dashboard/base.html" %}-{% load i18n %}-{% load mptt_tags %}-{% load materializecss %}--{% block title %}{% trans "Categories" %} - {{ block.super }}{% endblock %}--{% block body_class %}body-categories{% endblock %}--{% block header_menu %}- {% if root %}- {% if root.parent %}- {% url 'dashboard:category-list' root_pk=root.parent.pk as url %}- {% else %}- {% url 'dashboard:category-list' as url %}- {% endif %}- {% include "dashboard/includes/_back-link.html" with url=url %}- {% else %}- {{ block.super }}- {% endif %}-{% endblock %}--{% block header_extra %}- <div class="fixed-action-btn">- <a class="btn-fab btn-floating btn-large waves-effect waves-light teal" title="{% trans "Add category" %}"- href="{% if root %}{% url 'dashboard:category-add' root_pk=root.pk %}{% else %}{% url 'dashboard:category-add' %}{% endif %}">- <i class="material-icons">add</i>- </a>- </div>-- {% if root %}- <a class="dropdown-button" href="#" data-activates="category-delete" data-constrainwidth="false">- <i class="material-icons">more_vert</i>- </a>- <ul id="category-delete" class="dropdown-content">- <li>- <a class="modal-trigger-custom" data-href="{% url 'dashboard:category-edit' root_pk=root.pk %}" href="#base-modal">- {% trans "Edit category" %}- </a>- </li>-- <li>- <a class="modal-trigger-custom" data-href="{% url 'dashboard:category-delete' pk=root.pk %}" href="#base-modal">- {% trans "Remove category" %}- </a>- </li>- </ul>- {% endif %}-{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs breadcrumbs--with-menu breadcrumbs--ellipsed">- <li>- {% if path %}- <a href="{% url 'dashboard:category-list' %}" class="breadcrumbs--ellipsed-item">- {% trans "Categories" %}- </a>- {% else %}- <span class="breadcrumbs--ellipsed-item">{% trans "Categories" %}</span>- {% endif %}- </li>- {% if path %}- {% for node in path %}- {% if forloop.last %}- <li title="{{ node.name }}">- <span class="breadcrumbs--ellipsed-item">- {{ node.name }}- </span>- </li>- {% else %}- <li>- <a title="{{ node.name }}" href="{% url 'dashboard:category-list' root_pk=node.pk %}" class="breadcrumbs--ellipsed-item">- {{ node.name }}- </a>- </li>- {% endif %}- {% endfor %}- {% endif %}- </ul>-{% endblock %}--{% block menu_catalogue_class %} active{% endblock %}--{% block content %}- <div class="row">- <div class="col s12">- <ul class="collection list">- {% if categories %}- {% for node in categories %}- <li class="collection-item list-item list-item--two-lines">- <a class="list-item-name" href="{% url 'dashboard:category-list' root_pk=node.pk %}">- {{ node.name }}- </a>-- <p class="list-item-desc"><span>- {% if node.description %}- {{ node.description }}- {% else %}- - {% endif %}- </span></p>-- {% if node.hidden %}- <span class="list-item-icon"><i class="material-icons">visibility_off</i></span>- {% endif %}- </li>- {% endfor %}- {% else %}- <p>- {% if root %}- {% trans "No subcategories." %}- {% else %}- {% trans "No categories." %}- {% endif %}- </p>- {% endif %}- </ul>- </div>- </div>-{% endblock %}diff --git a/templates/demo/dashboard/category/modal_delete.html b/templates/demo/dashboard/category/modal_delete.htmldeleted file mode 100644index 8ad46f0cbd..0000000000--- a/templates/demo/dashboard/category/modal_delete.html+++ /dev/null@@ -1,49 +0,0 @@-{% load i18n %}-{% load mptt_tags %}--<form method="post" id="form-category" class="form-async" action="{% url 'dashboard:category-delete' pk=category.pk %}" novalidate>- {% csrf_token %}- <div class="modal-content">- <div class="row">- <div class="col s12">- <h5>- {% blocktrans with category=category %}- Are you sure you want to delete the category {{ category }}?- {% endblocktrans %}- </h5>- </div>- </div>-- {% if descendants %}- <div class="row">- <div class="col s12">- {% trans 'The following child categories will be deleted:' %}- <ul>- {% recursetree descendants %}- <li>{{ node.name }}- {% if not node.is_leaf_node %}- <ul class="children">- {{ children }}- </ul>- {% endif %}- </li>- {% endrecursetree %}- </ul>- </div>- </div>- {% endif %}-- {% if products_count %}- {% blocktrans count counter=products_count %}- There is one product in this category that will be deleted.- {% plural %}- There are {{ counter }} products in this category that will be deleted.- {% endblocktrans %}- {% endif %}- </div>-- <div class="modal-footer">- <button type="submit" class="modal-action btn-flat blue-text">{% trans "Delete" %}</button>- <a href="#!" class="modal-action modal-close btn-flat blue-text">{% trans "Cancel" %}</a>- </div>-</form>diff --git a/templates/demo/dashboard/category/modal_edit.html b/templates/demo/dashboard/category/modal_edit.htmldeleted file mode 100644index dde2c5c135..0000000000--- a/templates/demo/dashboard/category/modal_edit.html+++ /dev/null@@ -1,25 +0,0 @@-{% load materializecss %}-{% load i18n %}-{% load mptt_tags %}--<form method="post" id="form-category" class="form-async" action="{% url 'dashboard:category-edit' root_pk=category.pk %}" novalidate>- {% csrf_token %}- <div class="modal-content">- <div class="row">- <div class="col s12">- <h5>{% trans "Edit" %} {{ category }}</h5>- </div>- </div>-- <div class="row">- {{ form.name|materializecss:"s8 m10" }}- {{ form.hidden|materializecss:"s4 m2" }}- {{ form.description|materializecss }}- </div>- </div>-- <div class="modal-footer">- <button type="submit" class="modal-action btn-flat blue-text">{% trans "Update" %}</button>- <a href="#!" class="modal-action modal-close btn-flat blue-text">{% trans "Cancel" %}</a>- </div>-</form>diff --git a/templates/demo/dashboard/customer/detail.html b/templates/demo/dashboard/customer/detail.htmldeleted file mode 100644index 2946c33288..0000000000--- a/templates/demo/dashboard/customer/detail.html+++ /dev/null@@ -1,101 +0,0 @@-{% extends "dashboard/base.html" %}-{% load prices_i18n %}-{% load i18n %}-{% load status %}--{% block title %}{{ customer }} - {% trans "Customers" %} - {{ block.super }}{% endblock %}--{% block body_class %}body-customers{% endblock %}--{% block header_menu %}- {% url "dashboard:customers" as url %}- {% include "dashboard/includes/_back-link.html" with url=url %}-{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs">- <li><a href="{% url "dashboard:customers" %}">{% trans "Customers" %}</a></li>- <li>{{ customer }}</li>- </ul>-{% endblock %}--{% block menu_sales_class %} active{% endblock %}--{% block content %}-<div class="row">- <div class="col s12 l8">- <div class="card">- <div class="data-table-header{% if not customer_orders %} data-table-header--no-data{% endif %}">- <span class="card-title black-text">{% trans "Order history" %}</span>- </div>-- {% if customer_orders %}- <div class="data-table-container">- <table class="bordered hoverable responsive data-table">- <thead>- <tr>- <th>{% trans "Number" %}</th>- <th>{% trans "Placed on" %}</th>- <th>{% trans "Payment" %}</th>- <th>{% trans "Order status" %}</th>- <th>{% trans "Total" %}</th>- </tr>- </thead>- <tbody>- {% for order in customer_orders %}- <tr>- <td><a href="{% url 'dashboard:order-details' order_pk=order.pk %}">{{ order }}</a></td>- <td>{{ order.created }}</td>- <td>{% render_status order.get_last_payment_status order.get_last_payment_status_display %}</td>- <td>{% render_status order.status order.get_status_display %}</td>- <td>{% gross order.get_total %}</td>- </tr>- {% endfor %}- </tbody>- </table>- </div>- {% else %}- <div class="card-content card-content--no-data">- <p>{% trans "No orders found." %}</p>- </div>- {% endif %}- </div>- </div>- <div class="col s12 l4">- <div class="row">- <div class="col s12 m6 l12">- <div class="card equal-height-on-med">- <div class="card-content">- <span class="card-title black-text">{% trans "Default shipping address" %}</span>-- {% if customer.default_shipping_address %}- {% with customer.default_shipping_address as address %}- {% include 'dashboard/includes/_address.html' with address=address only %}- {% endwith %}- {% else %}- <span>{% trans "No default shipping address." %}</span>- {% endif %}- <i class="material-icons">email</i> <a href="mailto:{{ customer.email }}">{{ customer.email }}</a>- </div>- </div>- </div>-- <div class="col s12 m6 l12">- <div class="card equal-height-on-med">- <div class="card-content">- <span class="card-title black-text">{% trans "Default billing address" %}</span>-- {% if customer.default_billing_address %}- {% with customer.default_billing_address as address %}- {% include 'dashboard/includes/_address.html' with address=address only %}- {% endwith %}- {% else %}- <span>{% trans "No default billing address." %}</span>- {% endif %}- </div>- </div>- </div>- </div>- </div>-</div>-{% endblock %}diff --git a/templates/demo/dashboard/customer/list.html b/templates/demo/dashboard/customer/list.htmldeleted file mode 100644index c3c94aface..0000000000--- a/templates/demo/dashboard/customer/list.html+++ /dev/null@@ -1,90 +0,0 @@-{% extends "dashboard/base.html" %}-{% load i18n %}-{% load prices_i18n %}-{% load materializecss %}--{% block title %}{% trans "Customers" %} - {{ block.super }}{% endblock %}--{% block body_class %}body-customers{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs">- <li>{% trans "Customers" %}</li>- </ul>-{% endblock %}--{% block menu_sales_class %} active{% endblock %}--{% block content %}- <form method="get" novalidate>- <div class="row">- {{ form.email|materializecss:"s12 m3 l3" }}- {{ form.name|materializecss:"s12 m3 l3" }}- {{ form.order_status|materializecss:"s7 m3 l2" }}-- <div class="col s5 m3 l3">- <button type="submit" class="btn btn--inline">{% trans "Filter" %}</button>- {% if form.is_bound %}- <a class="btn btn--inline" href="{% url 'dashboard:customers' %}">{% trans "Clear" %}</a>- {% endif %}- </div>- </div>- </form>--- <div class="card">- <div class="data-table-header{% if not customers %} data-table-header--no-data{% endif %}">- <h5 class="card-title black-text">{{ title }}</h5>- </div>-- {% if customers %}- <div class="data-table-container">- <table class="bordered hoverable responsive data-table">- <thead>- <tr>- <th>{% trans "Email" %}</th>- <th class="wide">{% trans "Name" %}</th>- <th>{% trans "Location" %}</th>- <th class="right-align">{% trans "Number of orders" %}</th>- <th>{% trans "Last order" %}</th>- </tr>- </thead>- <tbody>- {% for customer in customers %}- <tr>- {% with customer.default_billing_address as default_address %}- <td>- <a href="{% url "dashboard:customer-details" pk=customer.pk %}">{{ customer.email }}</a>- </td>- {% if default_address %}- <td>- {{ default_address.first_name }} {{ default_address.last_name }}- </td>- <td>- {{ default_address.city }}, {{ default_address.get_country_display }}- </td>- {% else %}- <td colspan="2"></td>- {% endif %}- {% endwith %}- <td class="right-align">- {{ customer.num_orders }}- </td>- <td>- {% if customer.last_order %}- <a href="{% url 'dashboard:order-details' order_pk=customer.last_order %}">#{{ customer.last_order }}</a>- {% endif %}- </td>- </tr>- {% endfor %}- </tbody>- </table>- </div>- {% else %}- <div class="card-content card-content--no-data">- <p>{% trans "No customers found." %}</p>- </div>- {% endif %}- </div>- {% include "dashboard/includes/_pagination.html" with page_obj=customers %}-{% endblock %}diff --git a/templates/demo/dashboard/discount/sale_confirm_delete.html b/templates/demo/dashboard/discount/sale_confirm_delete.htmldeleted file mode 100644index 962d8de6b6..0000000000--- a/templates/demo/dashboard/discount/sale_confirm_delete.html+++ /dev/null@@ -1,32 +0,0 @@-{% extends "dashboard/base.html" %}-{% load i18n %}--{% block title %}{% trans "Delete sale" %} - {{ block.super }}{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs breadcrumbs--with-menu">- <li><a href="{% url 'dashboard:product-attributes' %}" class="breadcrumbs--ellipsed-item">{% trans "Discounts" %}</a></li>- <li><span class="breadcrumbs--ellipsed-item">{% trans "Delete sale" %}</span></li>- </ul>-{% endblock %}--{% block content %}- <p>{% trans "Are you sure you want to delete the following sale?" %}</p>- <form method="post" novalidate>- {% csrf_token %}- <div class="row">- <ul class="collection">- <li class="collection-item">- {{ sale }}- </li>- </ul>- </div>-- <div class="row">- <div class="col m6 l4 offset-m3 offset-l4 right-align">- <a href="{% url 'dashboard:sale-list' %}" class="btn-flat"><i class="material-icons">clear</i> {% trans "Cancel" %}</a>- <button type="submit" class="btn materialize-red"><i class="material-icons">delete_forever</i> {% trans "Delete" %}</button>- </div>- </div>- </form>-{% endblock %}diff --git a/templates/demo/dashboard/discount/sale_form.html b/templates/demo/dashboard/discount/sale_form.htmldeleted file mode 100644index ff1cb716e7..0000000000--- a/templates/demo/dashboard/discount/sale_form.html+++ /dev/null@@ -1,69 +0,0 @@-{% extends "dashboard/base.html" %}-{% load i18n %}-{% load materializecss %}-{% load static %}--{% block title %}{% if sale.pk %}{{ sale }}{% else %}{% trans 'Add new sale' %}-{% endif %} - {% trans "Sales" %} - {{ block.super }}{% endblock %}--{% block body_class %}body-sales{% endblock %}--{% block header_menu %}- {% url "dashboard:sale-list" as url %}- {% include "dashboard/includes/_back-link.html" with url=url %}-{% endblock %}--{% block header_extra %}- {% if sale.pk %}- <a class="dropdown-button" href="#" data-activates="sale-delete"- data-constrainwidth="false">- <i class="material-icons">more_vert</i>- </a>- <ul id="sale-delete" class="dropdown-content">- <li>- <a class="modal-trigger-custom" href="#base-modal"- data-href="{% url 'dashboard:sale-delete' pk=sale.pk %}">- {% trans "Remove sale" %}- </a>- </li>- </ul>- {% endif %}-{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs breadcrumbs--with-menu">- <li><a href="{% url 'dashboard:sale-list' %}"- class="breadcrumbs--ellipsed-item">{% trans "Sales" %}</a></li>- <li><span class="breadcrumbs--ellipsed-item">{% if sale.pk %}{{ sale }}{% else %}- {% trans 'Add new sale' %}{% endif %}</span></li>- </ul>-{% endblock %}--{% block menu_discounts_class %} active{% endblock %}--{% block content %}- <form method="post" enctype="multipart/form-data" id="form-sales" novalidate>- <div class="row">- <div class="col l8">- <div class="row">- {% csrf_token %}- {{ form.name|materializecss }}- {{ form.value|materializecss:"s12 m8" }}- {{ form.type|materializecss:"s12 m4" }}- {{ form.products|materializecss }}- {{ form.categories|materializecss }}- </div>- </div>- </div>-- <div class="row">- <div class="col l8 right-align">- {% if sale.pk %}- <button type="submit" class="btn">{% trans "Update" %}</button>- {% else %}- <button type="submit" class="btn">{% trans "Create" %}</button>- {% endif %}- </div>- </div>- </form>-{% endblock %}diff --git a/templates/demo/dashboard/discount/sale_list.html b/templates/demo/dashboard/discount/sale_list.htmldeleted file mode 100644index 191cf37686..0000000000--- a/templates/demo/dashboard/discount/sale_list.html+++ /dev/null@@ -1,56 +0,0 @@-{% extends "dashboard/base.html" %}-{% load i18n %}-{% load prices_i18n %}-{% load materializecss %}--{% block title %}{% trans "Sales" %} - {{ block.super }}{% endblock %}--{% block body_class %}body-sales{% endblock %}--{% block header_extra %}- <div class="fixed-action-btn">- <a class="btn-fab btn-floating btn-large waves-effect waves-light teal"- href="{% url 'dashboard:sale-add' %}" title="{% trans "Add sale" %}">- <i class="material-icons">add</i>- </a>- </div>-{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs">- <li>{% trans "Sales" %}</li>- </ul>-{% endblock %}--{% block menu_discounts_class %} active{% endblock %}--{% block content %}- {% if sales %}- <div class="card">- <div class="data-table-container">- <table class="bordered hoverable responsive data-table">- <thead>- <tr>- <th>{% trans "Name" %}</th>- <th>{% trans "Discount" %}</th>- </tr>- </thead>- <tbody>- {% for sale in sales %}- <tr>- <td>- <a href="{% url 'dashboard:sale-update' pk=sale.pk %}">{{ sale }}</a>- </td>- <td>{{ sale.value }}{{ sale.get_type_display }}</td>- </tr>- {% endfor %}- </tbody>- </table>- </div>- </div>-- {% include "dashboard/includes/_pagination.html" %}- {% else %}- <p>{% trans "No sales found." %}</p>- {% endif %}-{% endblock %}diff --git a/templates/demo/dashboard/discount/sale_modal_confirm_delete.html b/templates/demo/dashboard/discount/sale_modal_confirm_delete.htmldeleted file mode 100644index 20c6e83501..0000000000--- a/templates/demo/dashboard/discount/sale_modal_confirm_delete.html+++ /dev/null@@ -1,17 +0,0 @@-{% load i18n %}--<form action="{% url "dashboard:sale-delete" pk=sale.pk %}" method="post" novalidate>- {% csrf_token %}- <div class="modal-content">- <h5>{% trans "Are you sure?" %}</h5>-- <p>- {% blocktrans %}You are about to delete <strong>{{ sale }}</strong>.{% endblocktrans %}- </p>- </div>-- <div class="modal-footer">- <button type="submit" class="modal-action btn-flat blue-text">{% trans "Delete" %}</button>- <a href="#!" class="modal-action modal-close btn-flat blue-text">{% trans "Cancel" %}</a>- </div>-</form>diff --git a/templates/demo/dashboard/discount/voucher_form.html b/templates/demo/dashboard/discount/voucher_form.htmldeleted file mode 100644index cb911828f5..0000000000--- a/templates/demo/dashboard/discount/voucher_form.html+++ /dev/null@@ -1,90 +0,0 @@-{% extends "dashboard/base.html" %}-{% load i18n %}-{% load materializecss %}-{% load static %}--{% block title %}{% if voucher.pk %}{{ voucher }}{% else %}{% trans 'Add new voucher' %}-{% endif %} - {% trans "Vouchers" %} - {{ block.super }}{% endblock %}--{% block body_class %}body-vouchers{% endblock %}--{% block header_menu %}- {% url "dashboard:voucher-list" as url %}- {% include "dashboard/includes/_back-link.html" with url=url %}-{% endblock %}--{% block header_extra %}- {% if voucher.pk %}- <a class="dropdown-button" href="#" data-activates="voucher-delete"- data-constrainwidth="false">- <i class="material-icons">more_vert</i>- </a>- <ul id="voucher-delete" class="dropdown-content">- <li>- <a class="modal-trigger-custom" href="#base-modal" data-href="{% url 'dashboard:voucher-delete' pk=voucher.pk %}">- {% trans "Remove voucher" %}- </a>- </li>- </ul>- {% endif %}-{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs breadcrumbs--with-menu">- <li><a href="{% url 'dashboard:voucher-list' %}"- class="breadcrumbs--ellipsed-item">{% trans "Vouchers" %}</a></li>- <li><span class="breadcrumbs--ellipsed-item">{% if voucher.pk %}- {{ voucher }}{% else %}{% trans 'Add new voucher' %}{% endif %}</span></li>- </ul>-{% endblock %}--{% block menu_discounts_class %} active{% endblock %}--{% block content %}- <form method="post" enctype="multipart/form-data" id="form-vouchers" novalidate>- {% csrf_token %}- {% if form.non_field_errors %}- <blockquote>- {% for non_field_error in form.non_field_errors %}- {{ non_field_error }}- {% endfor %}- </blockquote>- {% endif %}- <div class="row">- <div class="col s12 l8">- <div class="row">- {{ form.code|materializecss }}- {{ form.name|materializecss }}- {{ form.discount_value|materializecss:"s12 m8" }}- {{ form.discount_value_type|materializecss:"s12 m4" }}- {{ form.type|materializecss }}- </div>- {% for form_type, form in type_base_forms.items %}- <div class="row voucher-form" data-type="{{ form_type }}">- {% for field in form %}- {{ field|materializecss:"s12 m6" }}- {% endfor %}- </div>- {% endfor %}- </div>-- <div class="col s12 l4">- <div class="row">- {{ form.start_date|materializecss:"input-field s12" }}- {{ form.end_date|materializecss:"input-field s12" }}- {{ form.usage_limit|materializecss }}- </div>- </div>- </div>-- <div class="row">- <div class="col l8 right-align">- {% if voucher.pk %}- <button type="submit" class="btn">{% trans "Update" %}</button>- {% else %}- <button type="submit" class="btn">{% trans "Create" %}</button>- {% endif %}- </div>- </div>- </form>-{% endblock %}diff --git a/templates/demo/dashboard/discount/voucher_list.html b/templates/demo/dashboard/discount/voucher_list.htmldeleted file mode 100644index 3ff24a1b27..0000000000--- a/templates/demo/dashboard/discount/voucher_list.html+++ /dev/null@@ -1,79 +0,0 @@-{% extends "dashboard/base.html" %}-{% load i18n %}-{% load prices_i18n %}-{% load materializecss %}--{% block title %}{% trans "Vouchers" %} - {{ block.super }}{% endblock %}--{% block body_class %}body-vouchers{% endblock %}--{% block header_extra %}- <div class="fixed-action-btn">- <a class="btn-fab btn-floating btn-large waves-effect waves-light teal"- href="{% url 'dashboard:voucher-add' %}" title="{% trans "Add voucher" %}">- <i class="material-icons">add</i>- </a>- </div>-{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs">- <li>{% trans "Vouchers" %}</li>- </ul>-{% endblock %}--{% block menu_discounts_class %} active{% endblock %}--{% block content %}- {% if vouchers %}- <div class="card">- <div class="data-table-container">- <table class="bordered hoverable responsive data-table">- <thead>- <tr>- <th class="wide">{% trans "Name" %}</th>- <th>{% trans "Discount" %}</th>- <th>{% trans "Start date" %}</th>- <th>{% trans "End date" %}</th>- <th>{% trans "Used" %}</th>- <th>{% trans "Apply to" %}</th>- <th>{% trans "Limit" %}</th>- </tr>- </thead>- <tbody>- {% for voucher in vouchers %}- <tr>- <td>- <a href="{% url 'dashboard:voucher-update' pk=voucher.pk %}">{{ voucher }}</a>- </td>- <td>- {{ voucher.discount_value }}{{ voucher.get_discount_value_type_display }}</td>- <td>{{ voucher.start_date }}</td>- <td>{{ voucher.end_date|default_if_none:"-" }}</td>- <td>- {% if voucher.usage_limit or voucher.usage_limit == 0 %}- {{ voucher.used }}/{{ voucher.usage_limit }}- {% else %}- {{ voucher.used }}- {% endif %}- </td>- <td>{{ voucher.get_apply_to_display|default_if_none:"-" }}</td>- <td>- {% if voucher.limit %}- {% gross voucher.limit %}- {% else %}- -- {% endif %}- </td>- </tr>- {% endfor %}- </tbody>- </table>- </div>- </div>-- {% include "dashboard/includes/_pagination.html" %}- {% else %}- <p>{% trans "No vouchers found." %}</p>- {% endif %}-{% endblock %}diff --git a/templates/demo/dashboard/discount/voucher_modal_confirm_delete.html b/templates/demo/dashboard/discount/voucher_modal_confirm_delete.htmldeleted file mode 100644index f4f2c57daa..0000000000--- a/templates/demo/dashboard/discount/voucher_modal_confirm_delete.html+++ /dev/null@@ -1,17 +0,0 @@-{% load i18n %}--<form action="{% url "dashboard:voucher-delete" pk=voucher.pk %}" method="post" novalidate>- {% csrf_token %}- <div class="modal-content">- <h5>{% trans "Are you sure?" %}</h5>-- <p>- {% blocktrans %}You are about to delete <strong>{{ voucher }}</strong>.{% endblocktrans %}- </p>- </div>-- <div class="modal-footer">- <button type="submit" class="modal-action btn-flat blue-text">{% trans "Delete" %}</button>- <a href="#!" class="modal-action modal-close btn-flat blue-text">{% trans "Cancel" %}</a>- </div>-</form>diff --git a/templates/demo/dashboard/includes/_address.html b/templates/demo/dashboard/includes/_address.htmldeleted file mode 100644index 7808689498..0000000000--- a/templates/demo/dashboard/includes/_address.html+++ /dev/null@@ -1,7 +0,0 @@-{% load format_address from i18n_address_tags %}-<div class="address">- <div class="formatted-address">{% format_address address latin=True %}</div>- {% if address.phone %}- <div><i class="material-icons">contact_phone</i> <a href="tel:{{ address.phone }}">{{ address.phone }}</a></div>- {% endif %}-</div>diff --git a/templates/demo/dashboard/includes/_back-link.html b/templates/demo/dashboard/includes/_back-link.htmldeleted file mode 100644index 65f8d02f6c..0000000000--- a/templates/demo/dashboard/includes/_back-link.html+++ /dev/null@@ -1 +0,0 @@-<a href="{{ url }}{% if hash %}{{ hash }}{% endif %}" class="header-button"><i class="material-icons">arrow_back</i></a>diff --git a/templates/demo/dashboard/includes/_messages.html b/templates/demo/dashboard/includes/_messages.htmldeleted file mode 100644index 8343bf8ee1..0000000000--- a/templates/demo/dashboard/includes/_messages.html+++ /dev/null@@ -1,23 +0,0 @@-{% if messages %}-<script>- {% for message in messages %}- {% if 'safe' in message.tags %}- Materialize.toast('{{ message|safe|escapejs }}', 5000);- {% else %}- Materialize.toast('{{ message|escapejs }}', 5000);- {% endif %}- {% endfor %}-</script>-{% endif %}--{% if form.non_field_errors %}-<script>- {% for message in form.non_field_errors %}- {% if 'safe' in message.tags %}- Materialize.toast('{{ message|safe|escapejs }}', 5000);- {% else %}- Materialize.toast('{{ message|escapejs }}', 5000);- {% endif %}- {% endfor %}-</script>-{% endif %}diff --git a/templates/demo/dashboard/includes/_orders_table.html b/templates/demo/dashboard/includes/_orders_table.htmldeleted file mode 100644index ae0854e5fc..0000000000--- a/templates/demo/dashboard/includes/_orders_table.html+++ /dev/null@@ -1,32 +0,0 @@-{% load i18n %}-{% load prices_i18n %}-{% load status %}--<div class="data-table-container">- <table class="bordered hoverable responsive data-table">- <thead>- <tr>- <th></th>- <th>{% trans "Order status" %}</th>- <th>{% trans "Payment status" %}</th>- <th>{% trans "Customer" %}</th>- <th>{% trans "Placed on" %}</th>- <th>{% trans "Total" %}</th>- </tr>- </thead>- <tbody>- {% for order in orders %}- <tr>- <td>- <a href="{% url 'dashboard:order-details' order_pk=order.pk %}">#{{ order.id }}</a>- </td>- <td>{% render_status order.status order.get_status_display %}</td>- <td>{% render_status order.get_last_payment_status order.get_last_payment_status_display %}</td>- <td>{{ order.user|default:_("Guest") }}</td>- <td>{{ order.created }}</td>- <td>{% gross order.get_total %}</td>- </tr>- {% endfor %}- </tbody>- </table>-</div>diff --git a/templates/demo/dashboard/includes/_pagination.html b/templates/demo/dashboard/includes/_pagination.htmldeleted file mode 100644index 5ba46c3351..0000000000--- a/templates/demo/dashboard/includes/_pagination.html+++ /dev/null@@ -1,31 +0,0 @@-{% load i18n %}-{% load utils %}-{% if page_obj.paginator.num_pages > 1 %}- <ul class="pagination">- <li{% 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 %}">- <i class="material-icons">chevron_left</i>- </a>- {% else %}- <span><i class="material-icons">chevron_left</i></span>- {% endif %}- </li>- {% for page in page_obj.paginator.page_range %}- <li class="{% if page == page_obj.number %}active{% else %}waves-effect{% endif %}">- <a href="{% construct_get_query page=page %}">- {{ page }}- </a>- </li>- {% endfor %}- <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 %}">- <i class="material-icons">chevron_right</i>- </a>- {% else %}- <span><i class="material-icons">chevron_right</i></span>- {% endif %}- </li>- </ul>-{% endif %}diff --git a/templates/demo/dashboard/includes/_status_filters.html b/templates/demo/dashboard/includes/_status_filters.htmldeleted file mode 100644index 10d47e3d53..0000000000--- a/templates/demo/dashboard/includes/_status_filters.html+++ /dev/null@@ -1,11 +0,0 @@-{% load i18n %}-{% load materializecss %}--<form method="get" novalidate>- <div class="row">- {{ form|materializecss:"s8 m4" }}- <div class="col s4 m2 left-align">- <button type="submit" class="btn btn--inline">{% trans "Filter" %}</button>- </div>- </div>-</form>diff --git a/templates/demo/dashboard/includes/address_short.html b/templates/demo/dashboard/includes/address_short.htmldeleted file mode 100644index 204061e658..0000000000--- a/templates/demo/dashboard/includes/address_short.html+++ /dev/null@@ -1,11 +0,0 @@-{% load i18n %}-<span class="address-details"- data-content="{% if address.company_name %}{{ address.company_name }}<br>{% endif %}- {{ address.street_address_1 }}<br>- {% if address.street_address_2 %}- {{ address.street_address_2 }}<br>- {% endif %}- {{ address.postal_code }} {{ address.city }}<br>- {% if address.country_area %}{{ address.country_area }}, {% endif %}{{ address.get_country_display }}<br>- {{ address.phone }}"- data-html="true" title="{{ address.first_name }} {{ address.last_name }}<span class='pull-right'><a href='{% url "dashboard:address-shipping-edit" order_pk=order.pk group_pk=group.pk %}'><i class='glyphicon glyphicon-pencil'></i> {% trans "Edit" %}</a></span>">{{ address }}</span>diff --git a/templates/demo/dashboard/index.html b/templates/demo/dashboard/index.htmldeleted file mode 100644index 5eec881cde..0000000000--- a/templates/demo/dashboard/index.html+++ /dev/null@@ -1,80 +0,0 @@-{% extends "dashboard/base.html" %}-{% load i18n %}-{% load prices_i18n %}--{% block title %}{{ block.super }}{% endblock %}--{% block content %}-<div class="row">- <div class="col s12">- <div class="card">- <div class="data-table-header{% if not preauthorized_payments %} data-table-header--no-data{% endif %}">- <span class="card-title black-text">{% trans "Preauthorized payments" %}</span>- </div>-- {% if preauthorized_payments %}- <div class="data-table-container">- <table class="bordered hoverable responsive data-table">- <thead>- <tr>- <th>{% trans "Order number" %}</th>- <th>{% trans "Date" %}</th>- <th>{% trans "Customer" %}</th>- <th class="text-right">{% trans "Amount" %}</th>- </tr>- </thead>- <tbody>- {% for payment in preauthorized_payments %}- <tr>- <td><a href="{% url "dashboard:order-details" order_pk=payment.order.pk %}">{{ payment.order }}</a></td>- <td>{{ payment.created }}</td>- <td>{{ payment.order.user|default:_("Guest") }}</td>- <td class="text-right">{% gross payment.get_total_price %}</td>- </tr>- {% endfor %}- </tbody>- </table>- </div>- {% else %}- <div class="card-content card-content--no-data">- <p>{% trans "No preauthorized payments." %}</p>- </div>- {% endif %}- </div>-- <div class="card">- <div class="data-table-header{% if not orders_to_ship %} data-table-header--no-data{% endif %}">- <span class="card-title black-text">{% trans "Orders ready for shipment" %}</span>- </div>-- {% if orders_to_ship %}- {% include "dashboard/includes/_orders_table.html" with orders=orders_to_ship %}- {% else %}- <div class="card-content card-content--no-data">- <p>{% trans "No orders are ready for shipment." %}</p>- </div>- {% endif %}- </div>-- <div class="card">- <div class="card-content">- <span class="card-title black-text">{% trans "Products with low stock" %}</span>-- {% if low_stock %}- <ul class="list">- {% for product in low_stock %}- <li class="list-item">- <a class="list-item-name list-item-name--single" href="{% url "dashboard:product-update" pk=product.pk %}#stock">- {{ product }} ({{ product.total_stock }})- </a>- </li>- {% endfor %}- </ul>- {% else %}- <p>{% trans "No products are low in stock." %}</p>- {% endif %}- </div>- </div>- </div>-</div>-{% endblock %}diff --git a/templates/demo/dashboard/order/detail.html b/templates/demo/dashboard/order/detail.htmldeleted file mode 100644index bdbf9f6a12..0000000000--- a/templates/demo/dashboard/order/detail.html+++ /dev/null@@ -1,419 +0,0 @@-{% extends "dashboard/base.html" %}-{% load prices_i18n %}-{% load i18n %}-{% load materializecss %}-{% load status %}-{% load discount_amount_for from prices %}--{% block title %}{{ order }} - {% trans "Orders" %} - {{ block.super }}{% endblock %}--{% block body_class %}body-orders{% endblock %}--{% block header_menu %}- {% url "dashboard:orders" as url %}- {% include "dashboard/includes/_back-link.html" with url=url %}-{% endblock %}--{% block header_extra %}- {% if order.can_cancel %}- <a class="dropdown-button" href="#" data-activates="context-menu" data-constrainwidth="false">- <i class="material-icons">more_vert</i>- </a>- <ul id="context-menu" class="dropdown-content">- <li>- <a href="#base-modal" data-href="{% url "dashboard:order-cancel" order_pk=order.pk %}"- class="modal-trigger-custom">- {% trans "Cancel Order" %}- </a>- </li>- </ul>- {% endif %}-{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs">- <li><a href="{% url "dashboard:orders" %}">{% trans "Orders" %}</a></li>- <li>{{ order }}</li>- </ul>-{% endblock %}--{% block menu_sales_class %} active{% endblock %}--{% block content %}- <div class="row">- <div class="col s12">- <ul class="tabs" role="tablist">- <li role="presentation" class="tab">- <a href="#order-details" role="tab" class="active">{% trans "Details" %}</a>- </li>-- <li role="presentation" class="tab">- <a href="#payment-history" role="tab">{% trans "Payments" %}</a>- </li>-- <li role="presentation" class="tab">- <a href="#order-history" role="tab">{% trans "History" %}</a>- </li>- </ul>- </div>- </div>-- <div class="row tab-content" id="order-details">- <div class="col s12 l4 switch-two-columns">- <div class="card grey lighten-4">- <div class="card-content data-table-container">- <span class="card-title black-text">Order summary</span>-- <table class="order-summary responsive-table">- <tbody>- <tr>- <td>{% trans "Account" %}</td>- <td class="right-align">- {% if order.user %}- <a href="{% url "dashboard:customer-details" pk=order.user.pk %}">{{ order.user }}</a>- {% else %}- {% trans "Guest" %}- {% endif %}- </td>- </tr>- <tr>- <td>{% trans "Order status" %}</td>- <td class="right-align">{% render_status order.status order.get_status_display %}</td>- </tr>- <tr>- <td>{% trans "Payment status:" %}</td>- <td class="right-align">{% if payment %}{% render_status payment.status payment.get_status_display %}{% else %}{% trans "N/A" %}{% endif %}</td>- </tr>- <tr>- <td>{% trans "Order total" %}</td>- <td class="right-align"><strong>{% gross order.get_total %}</strong></td>- </tr>- <tr>- <td>{% trans "Preauthorized amount" %}</td>- <td class="right-align">{% if preauthorized %}{% gross preauthorized %}{% else %}{% trans "N/A" %}{% endif %}</td>- </tr>- <tr>- <td>{% trans "Captured amount" %}</td>- <td class="right-align">{% gross captured %}</td>- </tr>- <tr>- <td>{% trans "Outstanding balance" %}</td>- <td class="right-align">{% gross balance %}</td>- </tr>- </tbody>- </table>- </div>-- {% if can_capture or can_refund or can_release %}- <div class="card-action">- {% if can_capture %}- <a href="#base-modal" data-href="{% url 'dashboard:capture-payment' order_pk=order.pk payment_pk=payment.pk %}"- class="modal-trigger-custom">{% trans "Capture" %}</a>- {% elif can_refund %}- <a href="#base-modal" data-href="{% url 'dashboard:refund-payment' order_pk=order.pk payment_pk=payment.pk %}"- class="modal-trigger-custom">{% trans "Refund" %}</a>- {% endif %}- {% if can_release %}- <a href="#base-modal" data-href="{% url 'dashboard:release-payment' order_pk=order.pk payment_pk=payment.pk %}"- class="modal-trigger-custom">{% trans "Release" %}</a>- {% endif %}- </div>- {% endif %}- </div>-- {% with order.shipping_address as address %}- <div class="row">- {% if address %}- <div class="col s12 m6 l12">- <div class="card grey lighten-4">- <div class="card-content">- <span class="card-title black-text">{% trans "Shipping address" %}</span>-- {% include 'dashboard/includes/_address.html' with address=address only %}-- <div>- <i class="material-icons">email</i> <a href="mailto:{{ order.user_email }}">{{ order.user_email }}</a>- </div>- </div>-- <div class="card-action">- <a href="#base-modal-fixed" class="modal-trigger-custom"- data-href="{% url "dashboard:address-edit" order_pk=order.pk address_type="shipping" %}">Edit</a>- </div>- </div>- </div>- {% endif %}-- <div class="col s12 {% if address %}m6{% else %}m12{% endif %} l12">- <div class="card grey lighten-4">- <div class="card-content">- {% with order.billing_address as address %}- <span class="card-title black-text">{% trans "Billing address" %}</span>-- {% include 'dashboard/includes/_address.html' with address=address only %}- <div>- <i class="material-icons">email</i> <a href="mailto:{{ order.user_email }}">{{ order.user_email }}</a>- </div>- {% endwith %}- </div>-- <div class="card-action">- <a href="#base-modal-fixed" class="modal-trigger-custom"- data-href="{% url "dashboard:address-edit" order_pk=order.pk address_type="billing" %}">Edit</a>- </div>- </div>- </div>- </div>- {% endwith %}- </div>-- <div class="col s12 l8 switch-two-columns">- {% for group in groups %}- <div class="card">- <div class="data-table-header">- <h5 class="data-table-title">- {% blocktrans with shipment=group.id %}Shipment #{{ shipment }}{% endblocktrans %}- {% if group.can_cancel %}- <a class="dropdown-button right" href="#" data-activates="group-actions-{{ group.pk }}" data-constrainwidth="false">- <i class="material-icons">more_vert</i>- </a>- {% endif %}- {% render_status group.status group.get_status_display %}- </h5>- <ul id="group-actions-{{ group.pk }}" class="dropdown-content">- <li>- <a href="#base-modal" data-href="{% url 'dashboard:cancel-delivery-group' order_pk=order.pk group_pk=group.pk %}" class="modal-trigger-custom"- title="{% trans "Cancel group" %}">- {% trans "Cancel group" %}- </a>- </li>- </ul>- </div>-- <div class="data-table-container">- <table class="bordered hoverable responsive data-table">- <thead>- <tr>- <th class="wide">{% trans "Item" %}</th>- <th>{% trans "SKU" %}</th>- <th class="right-align">{% trans "Price" %}</th>- <th class="right-align">{% trans "Quantity" %}</th>- <th class="right-align">{% trans "Total" %}</th>- <th class="no-padded"></th>- </tr>- </thead>-- <tfoot>- {% if group.shipping_price.gross or group.is_shipping_required %}- <tr>- <td colspan="4">- {% trans "Shipping" %} ({{ group.shipping_method_name }})- </td>- <td class="right-align">- {% gross group.shipping_price %}- </td>- <td class="no-padded"></td>- </tr>- {% endif %}- </tfoot>-- <tbody>- {% for item in group.items.all %}- <tr>- <td>- {{ item.product_name }}<br>- </td>- <td>{{ item.product_sku }}</td>- <td class="right-align">{% gross item.get_price_per_item %}</td>- <td class="right-align">{{ item.quantity }}</td>- <td class="right-align">{% gross item.get_total %}</td>- <td class="right-align no-padded">- {% if group.status != 'cancelled' %}- <a class="dropdown-button" href="#" data-activates="line-actions-{{ item.pk }}" data-constrainwidth="false">- <i class="material-icons">more_vert</i>- </a>- <ul id="line-actions-{{ item.pk }}" class="dropdown-content">- <li>- <a href="#base-modal" data-href="{% url 'dashboard:orderline-change-quantity' order_pk=order.pk line_pk=item.pk %}" class="modal-trigger-custom"- {% if group.status != 'new' %} disabled{% endif %} title="{% trans "Change quantity" %}">- {% trans "Change quantity" %}- </a>- </li>- <li>- <a href="#base-modal" data-href="{% url 'dashboard:orderline-split' order_pk=order.pk line_pk=item.pk %}" class="modal-trigger-custom"- {% if group.status != 'new' %} disabled{% endif %} title="{% trans "Split line" %}">- {% trans "Split order line" %}- </a>- </li>- <li>- <a href="#base-modal" data-href="{% url 'dashboard:orderline-cancel' order_pk=order.pk line_pk=item.pk %}" class="modal-trigger-custom"- title="{% trans "Cancel line" %}">- {% trans "Cancel line" %}- </a>- </li>- </ul>- {% endif %}- </td>- </tr>- {% endfor %}- </tbody>- </table>- </div>-- {% if group.can_ship %}- <div class="card-action">- <a href="#base-modal" data-href="{% url 'dashboard:ship-delivery-group' order_pk=order.pk group_pk=group.pk %}" class="modal-trigger-custom">- {% trans "Ship" %}- </a>- </div>- {% endif %}- </div>- {% endfor %}-- <div class="card" id="order-totals">- <div class="data-table-container">- <table class="bordered hoverable responsive data-table">- <tfoot>- <tr>- <td>- {% trans "Grand total" %}- </td>- <td>- {% gross order.get_total %}- </td>- <td class="no-padded"></td>- </tr>- </tfoot>-- <tbody>- <tr>- <td class="wide">- {% trans "Subtotal" %}- </td>- <td class="right-align">- {% gross order.get_subtotal_without_voucher %}- </td>- <td class="no-padded"></td>- </tr>- <tr>- <td>{% trans "Shipping" %}</td>- <td class="right-align">- {% gross order.get_total_shipping %}- </td>- <td class="no-padded"></td>- </tr>- {% if order.discount_amount.gross %}- <tr>- <td>- {% blocktrans with voucher=order.discount_name %}Voucher {{ voucher }}{% endblocktrans %}- </td>- <td class="right-align">- {% gross order.discount|discount_amount_for:order.total %}- </td>- <td class="no-padded">- <a class="dropdown-button" href="#" data-activates="voucher-actions" data-constrainwidth="false">- <i class="material-icons">more_vert</i>- </a>-- <ul id="voucher-actions" class="dropdown-content">- <li>- <a href="#base-modal" data-href="{% url 'dashboard:order-remove-voucher' order_pk=order.pk %}" class="modal-trigger-custom"- title="{% trans "Remove voucher" %}">- {% trans "Remove voucher" %}- </a>- </li>- </ul>- </td>- </tr>- {% endif %}- </tbody>- </table>- </div>- </div>-- <div class="card" id="order-notes">- <div class="card-content">- <span class="card-title black-text">{% trans "Order notes" %}</span>-- {% if notes %}- <ul class="list">- {% for note in notes %}- <li class="list-item list-item--spaced">- <small class="list-item-author">{{ note.user }} - {{ note.date }}</small>- <p>{{ note.content }}</p>- </li>- {% endfor %}- </ul>- {% else %}- <p>{% trans "There are no notes associated with this order." %}</p>- {% endif %}- </div>-- <div class="card-action">- <a data-href="{% url "dashboard:order-add-note" order_pk=order.pk %}"- class="modal-trigger-custom" href="#base-modal">{% trans "Add note" %}</a>- </div>- </div>- </div>- </div>-- <div class="tab-content" id="payment-history">- {% if all_payments %}- <div class="card">- <div class="data-table-container">- <table class="bordered hoverable responsive data-table">- <thead>- <tr>- <th></th>- <th>{% trans "Date" %}</th>- <th class="wide">{% trans "Payment status" %}</th>- </tr>- </thead>-- <tbody>- {% for payment in all_payments %}- <tr>- <td><a href="{% url "dashboard:payment-details" pk=payment.pk %}">#{{ payment.id }}</a></td>- <td>{{ payment.created }}</td>- <td>{% render_status payment.status payment.get_status_display %}</td>- </tr>- {% endfor %}- </tbody>- </table>- </div>- </div>- {% else %}- <p>{% trans "No payments made for this order." %}</p>- {% endif %}- </div>-- <div class="card tab-content" id="order-history">- <div class="data-table-container">- <table class="bordered hoverable responsive data-table">- <thead>- <tr>- <th>Date</th>- <th>Order status</th>- <th>User</th>- <th class="wide">Comment</th>- </tr>- </thead>-- <tbody>- {% for event in order.history.all %}- <tr>- <td>{{ event.date }}</td>- <td>{% render_status event.status event.get_status_display %}</td>- <td>- {% if event.user %}- {{ event.user }}- {% endif %}- </td>- <td>{{ event.comment|default:"" }}</td>- </tr>- {% endfor %}- </tbody>- </table>- </div>- </div>-{% endblock %}diff --git a/templates/demo/dashboard/order/list.html b/templates/demo/dashboard/order/list.htmldeleted file mode 100644index 80888e1af7..0000000000--- a/templates/demo/dashboard/order/list.html+++ /dev/null@@ -1,31 +0,0 @@-{% extends "dashboard/base.html" %}-{% load i18n %}-{% load prices_i18n %}-{% load status %}--{% block title %}{% trans "Orders" %} - {{ block.super }}{% endblock %}--{% block body_class %}body-orders{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs">- <li>{% trans "Orders" %}</li>- </ul>-{% endblock %}--{% block menu_sales_class %} active{% endblock %}--{% block content %}- {% include "dashboard/includes/_status_filters.html" %}- {% if object_list %}- <div class="card">- {% include "dashboard/includes/_orders_table.html" with orders=object_list %}- </div>-- <div class="row">- {% include "dashboard/includes/_pagination.html" %}- </div>- {% else %}- <p>{% trans "No orders." %}</p>- {% endif %}-{% endblock %}diff --git a/templates/demo/dashboard/order/modal_add_note.html b/templates/demo/dashboard/order/modal_add_note.htmldeleted file mode 100644index af6a232ae7..0000000000--- a/templates/demo/dashboard/order/modal_add_note.html+++ /dev/null@@ -1,18 +0,0 @@-{% load i18n %}-{% load materializecss %}--<form role="form" method="post" action="{% url 'dashboard:order-add-note' order_pk=order.pk %}" class="form-async" novalidate>- {% csrf_token %}- <div class="modal-content">- <h5>{% trans "Add note" %}</h5>-- <div class="row">- {{ form|materializecss }}- </div>- </div>-- <div class="modal-footer">- <button type="submit" class="modal-action btn-flat blue-text btn-">{% trans "Save note" %}</button>- <a href="#!" class="modal-action modal-close btn-flat blue-text">{% trans "Cancel" %}</a>- </div>-</form>diff --git a/templates/demo/dashboard/order/modal_address_edit.html b/templates/demo/dashboard/order/modal_address_edit.htmldeleted file mode 100644index e06cafefb8..0000000000--- a/templates/demo/dashboard/order/modal_address_edit.html+++ /dev/null@@ -1,23 +0,0 @@-{% load i18n %}-{% load materializecss %}--<form class="form-async" role="form" method="post" action="{% url 'dashboard:address-edit' order_pk=order.pk address_type=address_type %}" novalidate>- {% csrf_token %}- <div class="modal-content">- <h5>- {% if address_type == "shipping" %}- {% trans "Edit shipping address" %}- {% else %}- {% trans "Edit billing address" %}- {% endif %}- </h5>-- <div class="row">- {{ form|materializecss }}- </div>- </div>- <div class="modal-footer">- <button type="submit" class="modal-action btn-flat blue-text"> {% trans "Update" %}</button>- <a href="#!" aria-hidden="true" class="modal-action modal-close btn-flat blue-text">{% trans "Cancel" %}</a>- </div>-</form>diff --git a/templates/demo/dashboard/order/modal_cancel_delivery_group.html b/templates/demo/dashboard/order/modal_cancel_delivery_group.htmldeleted file mode 100644index 52c3f4a444..0000000000--- a/templates/demo/dashboard/order/modal_cancel_delivery_group.html+++ /dev/null@@ -1,20 +0,0 @@-{% load i18n %}-{% load materializecss %}--<form id="ship-delivery-group-form" method="post" role="form" action="{% url 'dashboard:cancel-delivery-group' order_pk=order.pk group_pk=group.pk %}" class="form-async" novalidate>- {% csrf_token %}-- <div class="modal-content">- <h5>{% trans "Cancel delivery group?" %}</h5>- <p>- {% blocktrans %}- After this action, {{ group }} will be cancelled. Ordered items will be returned to stock.- {% endblocktrans %}- </p>- </div>-- <div class="modal-footer">- <button type="submit" class="modal-action btn-flat red-text">{% trans "Cancel group" %}</button>- <a href="#!" aria-hidden="true" class="modal-action modal-close btn-flat blue-text">{% trans "Cancel" %}</a>- </div>-</form>diff --git a/templates/demo/dashboard/order/modal_cancel_line.html b/templates/demo/dashboard/order/modal_cancel_line.htmldeleted file mode 100644index 70da67dafe..0000000000--- a/templates/demo/dashboard/order/modal_cancel_line.html+++ /dev/null@@ -1,43 +0,0 @@-{% load i18n %}-{% load materializecss %}-{% load prices_i18n %}--<form class="form-async" role="form" method="post" action="{% url 'dashboard:orderline-cancel' order_pk=order.pk line_pk=item.pk %}" novalidate>- {% csrf_token %}- <div class="modal-content">- <h5>{% trans "Cancer order line?" %}</h5>- <p>- {% blocktrans with order=order%}- Are you sure, you want cancel this order line?- {% endblocktrans %}- </p>- {{ form|materializecss }}- <table>- <thead>- <tr>- <th class="wide">{% trans "Item" %}</th>- <th>{% trans "SKU" %}</th>- <th class="right-align">{% trans "Price" %}</th>- <th class="right-align">{% trans "Quantity" %}</th>- <th class="right-align">{% trans "Total" %}</th>- </tr>- </thead>- <tbody>- <tr>- <td>- {{ item.product_name }}<br>- </td>- <td>{{ item.product_sku }}</td>- <td class="right-align">{% gross item.get_price_per_item %}</td>- <td class="right-align">{{ item.quantity }}</td>- <td class="right-align">{% gross item.get_total %}</td>- </tr>- </tbody>- </table>- </div>-- <div class="modal-footer">- <button type="submit" class="modal-action btn-flat red-text">{% trans "Cancel Line" %}</button>- <a href="#!" aria-hidden="true" class="modal-action modal-close btn-flat blue-text">{% trans "Abort" %}</a>- </div>-</form>diff --git a/templates/demo/dashboard/order/modal_cancel_order.html b/templates/demo/dashboard/order/modal_cancel_order.htmldeleted file mode 100644index 34470acba8..0000000000--- a/templates/demo/dashboard/order/modal_cancel_order.html+++ /dev/null@@ -1,19 +0,0 @@-{% load i18n %}-{% load materializecss %}--<div class="modal-content">- <h5>{% trans "Cancer order?" %}</h5>- <p>- {% blocktrans with order=order%}- Are you sure, you want cancel order {{ order }}?- {% endblocktrans %}</p>-</div>--<div class="modal-footer">- <form id="release-form" method="post" role="form" class="form-async"- action="{% url 'dashboard:order-cancel' order_pk=order.pk %}" novalidate>- {% csrf_token %}- <button type="submit" class="modal-action btn-flat red-text">{% trans "Cancel Order" %}</button>- <a href="#!" aria-hidden="true" class="modal-action modal-close btn-flat blue-text">{% trans "Abort" %}</a>- </form>-</div>diff --git a/templates/demo/dashboard/order/modal_capture.html b/templates/demo/dashboard/order/modal_capture.htmldeleted file mode 100644index 5d20baf0b6..0000000000--- a/templates/demo/dashboard/order/modal_capture.html+++ /dev/null@@ -1,28 +0,0 @@-{% load i18n %}-{% load babel %}-{% load materializecss %}-{% load prices_i18n %}--<form role="form" method="post" action="{% url 'dashboard:capture-payment' order_pk=order.pk payment_pk=payment.pk %}" class="form-async" novalidate>- {% csrf_token %}-- <div class="modal-content">- <h5>{% trans "Capture payment" %}</h5>-- <div class="row">- {{ form|materializecss }}- </div>-- <h5>{% trans "Before this action" %}</h5>-- <ul class="list">- <li class="list-item">{% trans "Order total: " %}{% gross payment.order.get_total %}</li>- <li class="list-item">{% trans "Captured amount: " %}{{ captured|currencyfmt:currency }} </li>- </ul>- </div>-- <div class="modal-footer">- <button type="submit" class="modal-action btn-flat blue-text">{% trans 'Capture' %}</button>- <a href="#!" aria-hidden="true" class="modal-action modal-close btn-flat blue-text">{% trans "Cancel" %}</a>- </div>-</form>diff --git a/templates/demo/dashboard/order/modal_change_quantity.html b/templates/demo/dashboard/order/modal_change_quantity.htmldeleted file mode 100644index c02dfbb00a..0000000000--- a/templates/demo/dashboard/order/modal_change_quantity.html+++ /dev/null@@ -1,18 +0,0 @@-{% load i18n %}-{% load materializecss %}--<form method="post" role="form" action="{% url 'dashboard:orderline-change-quantity' order_pk=order.pk line_pk=object.pk %}" class="form-async" novalidate>- {% csrf_token %}- <div class="modal-content">- <h5>{% trans "Change quantity" %}</h5>-- <div class="row">- {{ form|materializecss:"s12 m6" }}- </div>- </div>-- <div class="modal-footer">- <button type="submit" class="modal-action btn-flat blue-text">{% trans "Update" %}</button>- <a href="#!" aria-hidden="true" class="modal-action modal-close btn-flat blue-text">{% trans "Cancel" %}</a>- </div>-</form>diff --git a/templates/demo/dashboard/order/modal_order_remove_voucher.html b/templates/demo/dashboard/order/modal_order_remove_voucher.htmldeleted file mode 100644index 6e508966be..0000000000--- a/templates/demo/dashboard/order/modal_order_remove_voucher.html+++ /dev/null@@ -1,19 +0,0 @@-{% load i18n %}-{% load materializecss %}--<div class="modal-content">- <h5>{% trans "Remove voucher?" %}</h5>- <p>- {% blocktrans with order=order%}- Are you sure, you want remove voucher discount from {{ order }}?- {% endblocktrans %}</p>-</div>--<div class="modal-footer">- <form id="release-form" method="post" role="form" class="form-async"- action="{% url 'dashboard:order-remove-voucher' order_pk=order.pk %}" novalidate>- {% csrf_token %}- <button type="submit" class="modal-action btn-flat red-text">{% trans "Remove voucher" %}</button>- <a href="#!" aria-hidden="true" class="modal-action modal-close btn-flat blue-text">{% trans "Abort" %}</a>- </form>-</div>diff --git a/templates/demo/dashboard/order/modal_refund.html b/templates/demo/dashboard/order/modal_refund.htmldeleted file mode 100644index 86fbf40b9b..0000000000--- a/templates/demo/dashboard/order/modal_refund.html+++ /dev/null@@ -1,28 +0,0 @@-{% load i18n %}-{% load babel %}-{% load materializecss %}-{% load prices_i18n %}--<form role="form" method="post" action="{% url 'dashboard:refund-payment' order_pk=order.pk payment_pk=payment.pk %}" class="form-async" novalidate>- {% csrf_token %}-- <div class="modal-content">- <h5>{% trans "Refund payment" %}</h5>-- <div class="row">- {{ form|materializecss }}- </div>-- <h5>{% trans "Before this action" %}</h5>-- <ul class="list">- <li class="list-item">{% trans "Order total: " %}{% gross payment.order.get_total %}</li>- <li class="list-item">{% trans "Captured amount: " %}{{ captured|currencyfmt:currency }} </li>- </ul>- </div>-- <div class="modal-footer">- <button type="submit" class="modal-action btn-flat blue-text">{% trans 'Refund' %}</button>- <a href="#!" aria-hidden="true" class="modal-action modal-close btn-flat blue-text">{% trans "Cancel" %}</a>- </div>-</form>diff --git a/templates/demo/dashboard/order/modal_release.html b/templates/demo/dashboard/order/modal_release.htmldeleted file mode 100644index 771b125833..0000000000--- a/templates/demo/dashboard/order/modal_release.html+++ /dev/null@@ -1,18 +0,0 @@-{% load i18n %}-{% load materializecss %}--<div class="modal-content">- <h5>{% trans "Release payment" %}</h5>-- <p>{% trans "Do you want to release the payment?" %}</p>-</div>--<div class="modal-footer">- <form id="release-form" method="post" role="form" class="form-async"- action="{% url 'dashboard:release-payment' order_pk=order.pk payment_pk=payment.pk %}" novalidate>- {% csrf_token %}-- <button type="submit" class="modal-action btn-flat blue-text">{% trans "Release" %}</button>- <a href="#!" aria-hidden="true" class="modal-action modal-close btn-flat blue-text">{% trans "Cancel" %}</a>- </form>-</div>diff --git a/templates/demo/dashboard/order/modal_ship_delivery_group.html b/templates/demo/dashboard/order/modal_ship_delivery_group.htmldeleted file mode 100644index 7391e1f551..0000000000--- a/templates/demo/dashboard/order/modal_ship_delivery_group.html+++ /dev/null@@ -1,20 +0,0 @@-{% load i18n %}-{% load materializecss %}--<form id="ship-delivery-group-form" method="post" role="form" action="{% url 'dashboard:ship-delivery-group' order_pk=order.pk group_pk=group.pk %}" class="form-async" novalidate>- {% csrf_token %}-- <div class="modal-content">- <h5>{% trans "Ship delivery group " %}</h5>- <p>{% trans "Ship selected delivery group to the following address:" %}</p>- {% include 'dashboard/includes/_address.html' with address=group.order.shipping_address only %}- <div class="row">- {{ form|materializecss }}- </div>- </div>-- <div class="modal-footer">- <button type="submit" class="modal-action btn-flat blue-text">{% trans "Ship" %}</button>- <a href="#!" aria-hidden="true" class="modal-action modal-close btn-flat blue-text">{% trans "Cancel" %}</a>- </div>-</form>diff --git a/templates/demo/dashboard/order/modal_split_order_line.html b/templates/demo/dashboard/order/modal_split_order_line.htmldeleted file mode 100644index 01fc8d84a1..0000000000--- a/templates/demo/dashboard/order/modal_split_order_line.html+++ /dev/null@@ -1,19 +0,0 @@-{% load i18n %}-{% load materializecss %}--<form method="post" role="form" class="form-async"- action="{% url 'dashboard:orderline-split' order_pk=order.pk line_pk=line_pk %}" novalidate>- {% csrf_token %}- <div class="modal-content">- <h5>{% trans "Split order line " %}</h5>-- <div class="row">- {{ form|materializecss:"s12 m6" }}- </div>- </div>-- <div class="modal-footer">- <button type="submit" class="modal-action btn-flat blue-text"> {% trans "Split" %}</button>- <a href="#!" aria-hidden="true" class="modal-action modal-close btn-flat blue-text">{% trans "Cancel" %}</a>- </div>-</form>diff --git a/templates/demo/dashboard/payments/detail.html b/templates/demo/dashboard/payments/detail.htmldeleted file mode 100644index dfc2f0306b..0000000000--- a/templates/demo/dashboard/payments/detail.html+++ /dev/null@@ -1,97 +0,0 @@-{% extends "dashboard/base.html" %}-{% load prices_i18n %}-{% load i18n %}-{% load status %}-{% load utils %}--{% block title %}{% trans "Payment" %} #{{ payment.id }} - {% trans "Payments" %} - {{ block.super }}{% endblock %}--{% block body_class %}body-payments{% endblock %}--{% block header_menu %}- {% url "dashboard:payments" as url %}- {% include "dashboard/includes/_back-link.html" with url=url %}-{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs">- <li><a href="{% url "dashboard:payments" %}">{% trans "Payments" %}</a></li>- <li>#{{ payment.id }}</li>- </ul>-{% endblock %}--{% block menu_sales_class %} active{% endblock %}--{% block content %}-<div class="row">- <div class="col s12 l8">- <div class="card grey lighten-4">- <div class="card-content">- <span class="card-title black-text">Payment details</span>-- <ul>- <li>{% trans "Payment status" %}: {% render_status payment.status payment.get_status_display %}</li>- <li>{% trans "Fraud status" %}: {% render_status payment.fraud_status payment.get_fraud_status_display %}</li>- <li>{% trans "Amount" %}: {% gross payment.get_total_price %}</li>- <li>{% trans "Captured amount" %}: {% gross payment.get_captured_price %}</li>- <li>{% trans "Gateway" %}: {{ payment.variant }}</li>- <li>{% trans "Transaction ID" %}: {{ payment.transaction_id }}</li>- <li>{% trans "Payment date" %}: {{ payment.created }}</li>- </ul>- </div>- </div>-- <div class="card">- <div class="card-content">- <span class="card-title black-text">{% trans "Gateway response" %}</span>-- {% if payment.message %}- {{ payment.message }}- {% else %}- <p>{% trans "No response available." %}</p>- {% endif %}- </div>- </div>- </div>-- <div class="col s12 l4">- <div class="row">- <div class="col s12 m6 l12">- <div class="card equal-height-on-med">- <div class="card-content">- <span class="card-title black-text">{% trans "Customer" %}</span>-- <div class="address">- {% if payment.order.user %}- <div>{% trans "Account" %}: <a href="{% url "dashboard:customer-details" pk=payment.order.user.pk %}">{{ payment.order.user }}</a></div>- {% else %}- <div>{% trans "Account" %}: {% trans "Guest" %}</div>- {% endif %}- <div><i class="material-icons">email</i> <a href="mailto:{{ payment.order.user_email }}">{{ payment.order.user_email }}</a></div>- <div>Customer IP: {{ payment.customer_ip_address }}</div>- </div>- </div>- </div>- </div>-- <div class="col s12 m6 l12">- <div class="card equal-height-on-med">- <div class="card-content">- <span class="card-title black-text">{% trans "Billing address" %}</span>-- <div class="address">- <strong>{{ payment.billing_first_name }} {{ payment.billing_last_name }}</strong>- <div>{{ payment.billing_address_1 }}</div>- {% if payment.payment.billing_address_2 %}- <div>{{ payment.payment.billing_address_2 }}</div>- {% endif %}- <div>{{ payment.billing_postcode }}</div>- <div>{{ payment.billing_city }}, {{ payment.billing_country_code }}</div>- </div>- </div>- </div>- </div>- </div>- </div>-</div>-{% endblock %}diff --git a/templates/demo/dashboard/payments/list.html b/templates/demo/dashboard/payments/list.htmldeleted file mode 100644index 979c8091c9..0000000000--- a/templates/demo/dashboard/payments/list.html+++ /dev/null@@ -1,57 +0,0 @@-{% extends "dashboard/base.html" %}-{% load i18n %}-{% load prices_i18n %}-{% load status %}--{% block title %}{% trans "Payments" %} - {{ block.super }}{% endblock %}--{% block body_class %}body-payments{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs">- <li>{% trans "Payments" %}</li>- </ul>-{% endblock %}--{% block menu_sales_class %} active{% endblock %}--{% block content %}- {% include "dashboard/includes/_status_filters.html" %}-- {% if payments %}- <div class="card">- <div class="data-table-container">- <table class="bordered hoverable responsive data-table">- <thead>- <tr>- <th></th>- <th>{% trans "Date" %}</th>- <th>{% trans "Payment" %}</th>- <th class="right-align">{% trans "Amount" %}</th>- <th class="wide">{% trans "Status" %}</th>- </tr>- </thead>- <tbody>- {% for payment in payments %}- <tr>- <td><a href="{% url "dashboard:payment-details" pk=payment.pk %}">#{{ payment.id }}</a></td>- <td>{{ payment.created }}</td>- <td>- {% trans "Gateway" %}: {{ payment.variant }} ·- <a href="{% url 'dashboard:order-details' order_pk=payment.order.pk %}"> {% trans "Order " %}{{ payment.order }}</a>- </td>- <td class="right-align">{% gross payment.get_total_price %}</td>- <td>{% render_status payment.status payment.get_status_display %}</td>- </tr>- {% endfor %}- </tbody>- </table>- </div>- </div>-- {% include "dashboard/includes/_pagination.html" %}- {% else %}- <p>{% trans "No payments found." %}</p>- {% endif %}--{% endblock %}diff --git a/templates/demo/dashboard/product/attributes/confirm_delete.html b/templates/demo/dashboard/product/attributes/confirm_delete.htmldeleted file mode 100644index 6070c07ddd..0000000000--- a/templates/demo/dashboard/product/attributes/confirm_delete.html+++ /dev/null@@ -1,32 +0,0 @@-{% extends "dashboard/base.html" %}-{% load i18n %}--{% block title %}{% trans "Delete attribute" %} - {{ block.super }}{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs breadcrumbs--with-menu">- <li><a href="{% url 'dashboard:product-attributes' %}" class="breadcrumbs--ellipsed-item">{% trans "Attributes" %}</a></li>- <li><span class="breadcrumbs--ellipsed-item">{% trans "Delete attribute" %}</span></li>- </ul>-{% endblock %}--{% block content %}- <p>{% trans "Are you sure you want to delete the following attribute?" %}</p>- <form method="post" novalidate>- {% csrf_token %}- <div class="row">- <ul class="collection">- <li class="collection-item">- {{ attribute }}- </li>- </ul>- </div>-- <div class="row">- <div class="col m6 l4 offset-m3 offset-l4 right-align">- <a href="{% url 'dashboard:product-attributes' %}" class="btn-flat"><i class="material-icons">clear</i> {% trans "Cancel" %}</a>- <button type="submit" class="btn materialize-red"><i class="material-icons">delete_forever</i> {% trans "Delete" %}</button>- </div>- </div>- </form>-{% endblock %}diff --git a/templates/demo/dashboard/product/attributes/form.html b/templates/demo/dashboard/product/attributes/form.htmldeleted file mode 100644index 622627a4c3..0000000000--- a/templates/demo/dashboard/product/attributes/form.html+++ /dev/null@@ -1,91 +0,0 @@-{% extends "dashboard/base.html" %}-{% load i18n %}-{% load materializecss %}-{% load static %}--{% block title %}{% if attribute.pk %}{{ attribute }}{% else %}{% trans 'Add new attribute' %}{% endif %} - {% trans "Attributes" %} - {{ block.super }}{% endblock %}--{% block body_class %}body-attributes{% endblock %}--{% block header_menu %}- {% url "dashboard:product-attributes" as url %}- {% include "dashboard/includes/_back-link.html" with url=url %}-{% endblock %}--{% block header_extra %}- {% if attribute.pk %}- <a class="dropdown-button" href="#" data-activates="attribute-delete" data-constrainwidth="false">- <i class="material-icons">more_vert</i>- </a>- <ul id="attribute-delete" class="dropdown-content">- <li>- <a class="modal-trigger-custom" href="#base-modal"- data-href="{% url 'dashboard:product-attribute-delete' pk=attribute.pk %}">- {% trans "Remove attribute" %}- </a>- </li>- </ul>- {% endif %}-{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs breadcrumbs--with-menu">- <li><a href="{% url 'dashboard:product-attributes' %}" class="breadcrumbs--ellipsed-item">{% trans "Attributes" %}</a></li>- <li><span class="breadcrumbs--ellipsed-item">{% if attribute.pk %}{{ attribute }}{% else %}{% trans 'Add new attribute' %}{% endif %}</span></li>- </ul>-{% endblock %}--{% block menu_catalogue_class %} active{% endblock %}--{% block content %}- <form method="post" enctype="multipart/form-data" id="form-attributes" novalidate>- <div class="row">- <div class="col l8">- <div class="row">- {% csrf_token %}- {{ form.display|materializecss }}- {{ form.name|materializecss }}- </div>-- <h5>{% trans "Attribute values" %}</h5>- {{ formset.management_form }}- {{ formset.non_form_errors.as_ul }}- <table id="formset" class="highlight">- {% for form in formset.forms %}- {% if forloop.first %}- <thead>- <tr>- {% for field in form.visible_fields %}- <th>{{ field.label|capfirst }}</th>- {% endfor %}- </tr>- </thead>- {% endif %}- <tr>- {% for field in form.visible_fields %}- <td{% if forloop.last %} class="center-align"{% endif %}>- {% if forloop.first %}- {% for hidden in form.hidden_fields %}- {{ hidden }}- {% endfor %}- {% endif %}- {{ field|materializecss }}- </td>- {% endfor %}- </tr>- {% endfor %}- </table>- </div>- </div>-- <div class="row">- <div class="col l8 right-align">- {% if attribute.pk %}- <button type="submit" class="btn">{% trans "Update" %}</button>- {% else %}- <button type="submit" class="btn">{% trans "Create" %}</button>- {% endif %}- </div>- </div>- </form>-{% endblock %}diff --git a/templates/demo/dashboard/product/attributes/list.html b/templates/demo/dashboard/product/attributes/list.htmldeleted file mode 100644index bdaa815949..0000000000--- a/templates/demo/dashboard/product/attributes/list.html+++ /dev/null@@ -1,48 +0,0 @@-{% extends "dashboard/base.html" %}-{% load i18n %}-{% load materializecss %}--{% block title %}{% trans "Attributes" %} - {{ block.super }}{% endblock %}--{% block body_class %}body-attributes{% endblock %}--{% 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" %}">- <i class="material-icons">add</i>- </a>- </div>-{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs">- <li>{% trans "Attributes" %}</li>- </ul>-{% endblock %}--{% block menu_catalogue_class %} active{% endblock %}--{% block content %}- <div class="row">- <div class="col s12">- {% if attributes %}- <ul class="collection list list--attributes">- {% for attribute in attributes %}- <li class="collection-item list-item list--attributes-item list-item--two-lines">- <a class="list-item-name" href="{% url 'dashboard:product-attribute-update' pk=attribute.pk %}">{{ attribute.display }}</a>-- <p class="list-item-desc">- {% for value in attribute.values.all %}- {{ value }}{% if not forloop.last %}, {% endif %}- {% endfor %}- </p>- </li>- {% endfor %}- </ul>- {% else %}- <p>{% trans "No attributes found." %}</p>- {% endif %}- </div>- </div>-{% endblock %}diff --git a/templates/demo/dashboard/product/attributes/modal_confirm_delete.html b/templates/demo/dashboard/product/attributes/modal_confirm_delete.htmldeleted file mode 100644index 73c8fe552a..0000000000--- a/templates/demo/dashboard/product/attributes/modal_confirm_delete.html+++ /dev/null@@ -1,17 +0,0 @@-{% load i18n %}--<form action="{% url "dashboard:product-attribute-delete" pk=attribute.pk %}" method="post" novalidate>- {% csrf_token %}- <div class="modal-content">- <h5>{% trans "Are you sure?" %}</h5>-- <p>- {% blocktrans %}You are about to delete an attribute <strong>{{ attribute }}</strong>.{% endblocktrans %}- </p>- </div>-- <div class="modal-footer">- <button type="submit" class="modal-action btn-flat blue-text">{% trans "Delete" %}</button>- <a href="#!" class="modal-action modal-close btn-flat blue-text">{% trans "Cancel" %}</a>- </div>-</form>diff --git a/templates/demo/dashboard/product/list.html b/templates/demo/dashboard/product/list.htmldeleted file mode 100644index 80a11321d9..0000000000--- a/templates/demo/dashboard/product/list.html+++ /dev/null@@ -1,85 +0,0 @@-{% extends "dashboard/base.html" %}-{% load i18n %}-{% load prices_i18n %}-{% load materializecss %}-{% load staticfiles %}--{% block title %}{% trans "Products" %} - {{ block.super }}{% endblock %}--{% block body_class %}body-products{% endblock %}--{% block header_extra %}- <div class="fixed-action-btn">- {% if form.product_cls.1 %}- <a class="btn-fab btn-floating btn-large waves-effect waves-light teal modal-trigger"- href="#modal-product-class" title="{% trans "Add product" %}">- <i class="material-icons">add</i>- </a>- {% else %}- <form method="post" novalidate>- <div hidden>- {% csrf_token %}- {{ form }}- </div>-- <button type="submit" class="btn-fab btn-floating btn-large waves-effect waves-light teal"- title="{% trans "Add product" %}">- <i class="material-icons">add</i>- </button>- </form>- {% endif %}- </div>-{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs">- <li>{% trans "Products" %}</li>- </ul>-{% endblock %}--{% block menu_catalogue_class %} active{% endblock %}--{% block content %}- <div class="row">- <div class="col s12">- {% if products %}- <ul class="collection list">- {% for product in products %}- <li class="collection-item avatar list-item">- {% if product.images.exists %}- <img src="{{ product.images.first.image.crop.100x100 }}" alt="" class="circle teal">- {% else %}- <img src="{% static 'images/product-image-placeholder-small.png' %}" alt="" class="circle teal">- {% endif %}- <a class="title" href="{% url 'dashboard:product-update' pk=product.pk %}">- <span class="list-item-name">{{ product.name }}</span>- </a>- <p class="list-item-price">{% gross product.price %}</p>- </li>- {% endfor %}- </ul>- {% include "dashboard/includes/_pagination.html" with page_obj=products %}- {% else %}- <p>{% trans "No products found." %}</p>- {% endif %}- </div>- </div>- <div id="modal-product-class" class="modal">- <div class="modal-content">- <form method="post" novalidate>- {% csrf_token %}- <div class="row">- {{ form|materializecss }}- </div>-- <div class="row">- <div class="col s12">- <button class="btn" type="submit">- <i class="material-icons left">create</i> {% trans "Create new" %}- </button>- </div>- </div>- </form>- </div>- </div>-{% endblock %}diff --git a/templates/demo/dashboard/product/modal_product_confirm_delete.html b/templates/demo/dashboard/product/modal_product_confirm_delete.htmldeleted file mode 100644index d3e47dc879..0000000000--- a/templates/demo/dashboard/product/modal_product_confirm_delete.html+++ /dev/null@@ -1,33 +0,0 @@-{% load i18n %}-{% load prices_i18n %}-{% load staticfiles %}--<form action="{% url "dashboard:product-delete" pk=product.pk %}" method="post" novalidate>- {% csrf_token %}- <div class="modal-content">- <div class="row">- <div class="col s12">- <h5>{% trans "Are you sure?" %}</h5>- </div>- </div>-- <div class="row">- <div class="col s12 center-align">- {% if product.images.exists %}- <img src="{{ product.images.first.image.crop.400x400 }}" alt="" class="responsive-img">- {% else %}- <img src="{% static 'images/product-image-placeholder.png' %}" alt="" class="responsive-img">- {% endif %}- </div>- </div>-- <p>- {% blocktrans %}If you remove <strong>{{ product }}</strong> you will lose all data related to this product.{% endblocktrans %}- </p>- </div>-- <div class="modal-footer">- <button type="submit" class="modal-action btn-flat blue-text">{% trans "Delete" %}</button>- <a href="#!" class="modal-action modal-close btn-flat blue-text">{% trans "Cancel" %}</a>- </div>-</form>diff --git a/templates/demo/dashboard/product/modal_product_image_confirm_delete.html b/templates/demo/dashboard/product/modal_product_image_confirm_delete.htmldeleted file mode 100644index 81f604d0b2..0000000000--- a/templates/demo/dashboard/product/modal_product_image_confirm_delete.html+++ /dev/null@@ -1,27 +0,0 @@-{% load i18n %}--<form action="{% url 'dashboard:product-image-delete' product_pk=product.pk img_pk=product_image.pk %}" method="post" novalidate>- {% csrf_token %}- <input type="hidden" name="success_url" value="{% url 'dashboard:product-update' pk=product.pk %}#images">-- <div class="modal-content">- <div class="row">- <div class="col s12">- <h5>{% trans "Are you sure?" %}</h5>- </div>- </div>-- <div class="center-align">- <img class="responsive-img" src="{{ product_image.image.crop.400x400 }}" alt="">- </div>-- <p>- {% blocktrans %}You are about to delete this image.{% endblocktrans %}- </p>- </div>-- <div class="modal-footer">- <button type="submit" class="modal-action btn-flat blue-text">{% trans "Delete" %}</button>- <a href="#!" class="modal-action modal-close btn-flat blue-text">{% trans "Cancel" %}</a>- </div>-</form>diff --git a/templates/demo/dashboard/product/product_confirm_delete.html b/templates/demo/dashboard/product/product_confirm_delete.htmldeleted file mode 100644index 7f94d9fa1f..0000000000--- a/templates/demo/dashboard/product/product_confirm_delete.html+++ /dev/null@@ -1,49 +0,0 @@-{% extends "dashboard/base.html" %}-{% load i18n %}-{% load prices_i18n %}-{% load staticfiles %}--{% block title %}{% trans "Delete" %} {{ product }} - {{ block.super }}{% endblock %}--{% block body_class %}body-store body-products{% endblock %}--{% block header_menu %}- {% url "dashboard:product-update" pk=product.pk as url %}- {% include "dashboard/includes/_back-link.html" with url=url %}-{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs breadcrumbs--with-menu">- <li><a href="{% url "dashboard:product-list" %}" class="breadcrumbs--ellipsed-item">{% trans "Products" %}</a></li>- <li><a href="{% url "dashboard:product-update" pk=product.pk %}" class="breadcrumbs--ellipsed-item">{{ product }}</a></li>- <li>- <span class="hide-on-med-and-down">{% trans "Delete product" %}</span>- <span class="hide-on-large-only">{% trans "Delete" %} {{ product }}</span>- </li>- </ul>-{% endblock %}--{% block menu_catalogue_class %} active{% endblock %}--{% block content %}- <form method="post" novalidate>- {% csrf_token %}- <div class="row">- <div class="col m6 l4">- <div class="card">- <div class="card-content">- {% if object.images.exists %}- <img src="{{ product.images.first.image.crop.400x400 }}" alt="" class="responsive-img">- {% else %}- <img src="{% static 'images/product-image-placeholder.png' %}" alt="" class="responsive-img">- {% endif %}- </div>-- <div class="card-action">- <button type="submit" class="card-link blue-text">{% trans "Delete" %}</button>- </div>- </div>- </div>- </div>- </form>-{% endblock %}diff --git a/templates/demo/dashboard/product/product_form.html b/templates/demo/dashboard/product/product_form.htmldeleted file mode 100644index b04884fb44..0000000000--- a/templates/demo/dashboard/product/product_form.html+++ /dev/null@@ -1,371 +0,0 @@-{% extends "dashboard/base.html" %}-{% load prices_i18n %}-{% load i18n %}-{% load materializecss %}-{% load static %}-{% load attributes %}--{% block title %}{% if product.pk %}{{ product }}{% else %}{% trans 'Add new product' %}{% endif %} - {% trans "Products" %} - {{ block.super }}{% endblock %}--{% block body_class %}body-products{% endblock %}--{% block header_menu %}- {% url "dashboard:product-list" as url %}- {% include "dashboard/includes/_back-link.html" with url=url %}-{% endblock %}--{% block header_extra %}- {% if product.pk %}- <a class="dropdown-button" href="#" data-activates="context-menu" data-constrainwidth="false">- <i class="material-icons">more_vert</i>- </a>- <ul id="context-menu" class="dropdown-content">- <li>- <a href="{{ product.get_absolute_url }}" target="_blank">- {% trans 'View on site' %}- </a>- </li>- <li>- <a href="#base-modal" data-href="{% url 'dashboard:product-delete' pk=product.pk %}"- class="modal-trigger-custom">- {% trans "Remove product" %}- </a>- </li>- </ul>- {% endif %}-{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs breadcrumbs--with-menu">- <li><a href="{% url "dashboard:product-list" %}" class="breadcrumbs--ellipsed-item">{% trans "Products" %}</a></li>- <li><span class="breadcrumbs--ellipsed-item">{% if product.pk %}{{ product }}{% else %}{% trans 'Add new product' %}{% endif %}</span></li>- </ul>-{% endblock %}--{% 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" %}</span>- <i class="material-icons">edit</i>- </a>- </li>-- <li class="tab col s3" role="presentation">- <a href="#variants" role="tab">- <span>{% trans "Variants" %}</span>- <i class="material-icons">style</i>- </a>- </li>-- <li class="tab col s3" role="presentation">- <a href="#stock" role="tab">- <span>{% trans "Stock" %}</span>- <i class="material-icons">store</i>- </a>- </li>-- <li class="tab col s3" role="presentation">- <a href="#images" role="tab">- <span>{% trans "Images" %}</span>- <i class="material-icons">collections</i>- </a>- </li>- </ul>- </div>- </div>- {% endif %}-- <div class="row tab-content" id="details">- <form method="post" id="form-product" enctype="multipart/form-data" novalidate>- {% csrf_token %}- {{ product_form.name|materializecss:"s12 m8" }}- {{ product_form.price|materializecss:"s12 m4" }}-- <div class="col s12 l8" >- <div class="row">- {{ product_form.description|materializecss }}- </div>- </div>-- <div class="col s12 l4">- <div class="row">- {{ product_form.weight|materializecss:"input-field s12" }}- {{ product_form.categories|materializecss:"input-field s12" }}- {{ product_form.attributes|materializecss:"input-field s12" }}- {{ product_form.available_on|materializecss:"input-field s12" }}- </div>- </div>-- <div class="col s12 right-align">- <div class="row">- {% if product.pk %}- <button type="submit" class="btn">{% trans "Update" %}</button>- {% else %}- <button type="submit" class="btn">{% trans "Create" %}</button>- {% endif %}- </div>- </div>- </form>- </div>-- {% if product.pk %}- <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">- <a href="{% url 'dashboard:variant-add' product_pk=product.pk %}" class="btn-data-table btn-show-when-unchecked blue-text">- {% trans "Add" %}- </a>-- <a href="#modal-product-variant-delete" class="modal-trigger btn-data-table btn-show-when-checked blue-text" hidden>- {% trans "Delete" %}- </a>-- <div class="modal" id="modal-product-variant-delete">- <div class="modal-content">- <h5>{% trans "Are you sure?" %}</h5>-- <p>- {% blocktrans %}You are about to delete variants of this product.{% endblocktrans %}- </p>- </div>-- <div class="modal-footer">- <button type="submit" class="modal-action btn-flat blue-text">{% trans "Delete" %}</button>- <a href="#!" class="modal-action modal-close btn-flat blue-text">{% trans "Cancel" %}</a>- </div>- </div>- </div>-- <div class="data-table-container">- <table class="bordered hoverable 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" %}</th>- {% for attribute in attributes %}- <th>{{ attribute.display|capfirst }}</th>- {% endfor %}- <th class="wide">{% trans "Variant name" %}</th>- <th class="right-align">{% trans "Price" %}</th>- </tr>- </thead>-- <tbody>- {% for variant in variants %}- <tr>- <td class="bulk-checkbox">- <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><a class="light-blue-text text-lighten-1" title="{% trans "Edit variant" %}"- href="{% url 'dashboard:variant-update' product_pk=product.pk variant_pk=variant.pk %}">- {{ variant.sku }}- </a></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 %}</td>- </tr>- {% endfor %}- </tbody>- {% else %}- <tbody>- <tr>- <td>- <span>{% trans "There are no variants for this product" %}</span>- </td>- </tr>- </tbody>- {% endif %}- </table>- </div>- <input type="hidden" name="success_url" value="{% url 'dashboard:product-update' pk=product.pk %}#variants">- </form>- </div>-- <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">- <a href="{% url 'dashboard:product-stock-add' product_pk=product.pk %}" class="btn-data-table btn-show-when-unchecked blue-text">- {% trans "Add" %}- </a>-- <a href="#modal-product-stock-delete" class="modal-trigger btn-data-table btn-show-when-checked blue-text" hidden>- {% trans "Delete" %}- </a>-- <div class="modal" id="modal-product-stock-delete">- <div class="modal-content">- <h5>{% trans "Are you sure?" %}</h5>-- <p>- {% blocktrans %}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 blue-text">{% trans "Delete" %}</button>- <a href="#!" class="modal-action modal-close btn-flat blue-text">{% trans "Cancel" %}</a>- </div>- </div>- </div>-- <div class="data-table-container">- <table class="bordered hoverable 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" %}</th>- <th class="wide">{% trans "Location" %}</th>- <th class="right-align">{% trans "Quantity" %}</th>- <th class="right-align">{% trans "Allocated" %}</th>- </tr>- </thead>-- <tbody>- {% for item in stock_items %}- <tr>- <td class="bulk-checkbox">- <input name="items" type="checkbox" id="{{ item.id }}" class="filled-in switch-actions" value="{{ item.id }}">- <label for="{{ item.id }}"></label>- </td>- <td><a class="light-blue-text text-lighten-1" title="{% trans "Edit variant" %}"- href="{% url 'dashboard:product-stock-update' product_pk=product.pk stock_pk=item.pk %}">- {{ item.variant.sku }}- </a></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." %}</span>- </td>- </tr>- </tbody>- {% endif %}- </table>- </div>- <input type="hidden" name="success_url" value="{% url 'dashboard:product-update' pk=product.pk %}#stock">- </form>- </div>-- <div id="images" class="tab-content">- <div class="row">- <div class="col l12">- <form action="{% url 'dashboard:product-images-upload' product_pk=product.pk %}" class="dropzone" id="product-image-form" novalidate>- <div class="dz-message"></div>- {% csrf_token %}- <input type="hidden" name="success_url" value="{% url 'dashboard:product-update' pk=product.pk %}#images">- <ul class="row product-gallery" id="product-gallery" data-post-url="{% url 'dashboard:product-images-reorder' product_pk=product.pk %}">- {% if images %}- {% for image in images %}- <li class="col s6 m3 card product-gallery-item" data-id="{{ image.pk }}">- <div class="card-image product-gallery-item-image">- <img class="responsive-img" src="{{ image.image.crop.400x400 }}" alt="">- </div>-- <div class="card-content">- <span class="product-gallery-item-title card-title black-text" title="{{ image.alt }}">- {% if image.alt %}- {{ image.alt }}- {% else %}- <span class="grey-text">{% trans "No description" %}</span>- {% endif %}- </span>- <span class="product-gallery-item-desc" title="{{ image.image.name }}">{{ image.image.name }}</span>- </div>-- <div class="card-action">- <a href="{% url 'dashboard:product-image-update' product_pk=product.pk img_pk=image.pk %}">- {% trans "Edit" %}- </a>-- <a href="#base-modal" class="modal-trigger-custom"- data-href="{% url 'dashboard:product-image-delete' product_pk=product.pk img_pk=image.pk %}">- {% trans "Delete" %}- </a>- </div>- </li>- {% endfor %}- {% else %}- <p class="no-images">{% trans "This product has no images yet." %}</p>- {% endif %}- <li class="col s6 m3 card product-gallery-item dropzone-ghost">- <div class="card-content">- <span class="product-gallery-item-title product-gallery-item-title--noclip card-title black-text">- <span class="grey-text">{% trans "Drop images here to upload" %}</span>- </span>- </div>- </li>- </ul>- </form>- </div>- </div>-- <script type="application/template" id="template">- <li class="col s6 m3 card product-gallery-item dz-preview dz-file-preview" data-id="{{ image.pk }}">- <div class="card-image product-gallery-item-image">- <img data-dz-thumbnail />- </div>-- <div class="dz-progress">- <span class="dz-upload" data-dz-uploadprogress></span>- </div>-- <div class="card-content">- <span class="product-gallery-item-title card-title black-text">- <span class="grey-text">{% trans "No description" %}</span>- </span>- <span class="product-gallery-item-desc">- - </span>- </div>-- <div class="card-action">- <a class="card-action-edit" href="{% url 'dashboard:product-image-update' product_pk=product.pk img_pk=0 %}">- {% trans "Edit" %}- </a>-- <a href="#base-modal" class="card-action-delete modal-trigger-custom" data-href="{% url 'dashboard:product-image-delete' product_pk=product.pk img_pk=0 %}">- {% trans "Delete" %}- </a>-- - </div>- </li>- </script>- </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" %}">- <i class="material-icons">add</i>- </a>- </div>- {% endif %}--{% endblock %}diff --git a/templates/demo/dashboard/product/product_image_confirm_delete.html b/templates/demo/dashboard/product/product_image_confirm_delete.htmldeleted file mode 100644index 83b59ab6bf..0000000000--- a/templates/demo/dashboard/product/product_image_confirm_delete.html+++ /dev/null@@ -1,44 +0,0 @@-{% extends "dashboard/base.html" %}-{% load i18n %}--{% block title %}{% trans "Delete image" %} - {{ block.super }}{% endblock %}--{% block body_class %}body-store body-products{% endblock %}--{% block header_menu %}- {% url "dashboard:product-update" pk=product.pk as url %}- {% include "dashboard/includes/_back-link.html" with url=url hash="#images" %}-{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs breadcrumbs--with-menu">- <li><a href="{% url "dashboard:product-list" %}" class="breadcrumbs--ellipsed-item">{% trans "Products" %}</a></li>- <li><a href="{% url "dashboard:product-update" pk=product.pk %}" class="breadcrumbs--ellipsed-item">{{ product }}</a></li>- <li>{% trans "Delete image" %}</li>- </ul>-{% endblock %}--{% block content %}- <form method="post" novalidate>- {% csrf_token %}- <input type="hidden" name="success_url" value="{% url 'dashboard:product-update' pk=product.pk %}#images">- <div class="row">- <p>{% trans "Are you sure you want to delete the following image?" %}</p>- <div class="col m6 l4 offset-m3 offset-l4">- <div class="card">- <div class="card-content">- <div class="card-title black-text">{{ product_image.alt }}</div>- <img src="{{ product_image.image.crop.400x400}}" alt="{{ product_image.alt }}" class="responsive-img">- </div>- </div>- </div>- </div>-- <div class="row">- <div class="col m6 l4 offset-m3 offset-l4 right-align">- <a href="{% url 'dashboard:product-update' pk=product.pk %}#images" class="btn-flat"><i class="material-icons">clear</i> {% trans "Cancel" %}</a>- <button type="submit" class="btn materialize-red"><i class="material-icons">delete_forever</i> {% trans "Delete" %}</button>- </div>- </div>- </form>-{% endblock %}diff --git a/templates/demo/dashboard/product/product_image_form.html b/templates/demo/dashboard/product/product_image_form.htmldeleted file mode 100644index e86da3a867..0000000000--- a/templates/demo/dashboard/product/product_image_form.html+++ /dev/null@@ -1,66 +0,0 @@-{% extends "dashboard/base.html" %}-{% load i18n %}-{% load materializecss %}-{% load static %}--{% block title %}- {% if product_image.pk %}- {{ product_image.image.name }}- {% else %}- {% trans "Add image" %}- {% endif %} - {{ block.super }}-{% endblock %}--{% block body_class %}body-store body-products{% endblock %}--{% block header_menu %}- {% url "dashboard:product-update" pk=product.pk as url %}- {% include "dashboard/includes/_back-link.html" with url=url hash="#images" %}-{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs">- <li><a href="{% url "dashboard:product-list" %}">{% trans "Products" %}</a></li>- <li><a href="{% url "dashboard:product-update" pk=product.pk %}#images">{{ product }}</a></li>- {% if product_image.pk %}- <li>{{ product_image.image }}</li>- {% else %}- <li>- <span class="hide-on-med-and-down">{% trans "Add image" %}</span>- <span class="hide-on-large-only">{% blocktrans %}Add image for {{ product }}{% endblocktrans %}</span>- </li>- {% endif %}- </ul>-{% endblock %}--{% block menu_catalogue_class %} active{% endblock %}--{% block content %}- <form method="post" enctype="multipart/form-data">- <div class="row">- <div class="col l8">- {% csrf_token %}-- {% if product_image.pk %}- <p class="no-margin">{% trans "Pick the most relevant part of the image using the red circle." %}</p>- {% endif %}- <div class="row">- {{ form.image|materializecss }}- {{ form.alt|materializecss }}- {{ form.variants|materializecss }}- <input type="hidden" name="success_url" value="{% url 'dashboard:product-update' pk=product.pk %}#images">- </div>- </div>- </div>-- <div class="row">- <div class="col l8 right-align">- {% if product_image.pk %}- <button type="submit" class="btn">{% trans "Update" %}</button>- {% else %}- <button type="submit" class="btn">{% trans "Create" %}</button>- {% endif %}- </div>- </div>- </form>-{% endblock %}diff --git a/templates/demo/dashboard/product/product_variant_confirm_delete.html b/templates/demo/dashboard/product/product_variant_confirm_delete.htmldeleted file mode 100644index 7e279be0ea..0000000000--- a/templates/demo/dashboard/product/product_variant_confirm_delete.html+++ /dev/null@@ -1,48 +0,0 @@-{% extends "dashboard/base.html" %}-{% load i18n %}--{% block title %}{% trans "Delete variant" %} - {{ block.super }}{% endblock %}--{% block body_class %}body-store body-products{% endblock %}--{% block header_menu %}- {% url "dashboard:product-update" pk=product.pk as url %}- {% include "dashboard/includes/_back-link.html" with url=url hash="#variants" %}-{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs breadcrumbs--with-menu">- <li><a href="{% url "dashboard:product-list" %}" class="breadcrumbs--ellipsed-item">{% trans "Products" %}</a></li>- <li><a href="{% url "dashboard:product-update" pk=product.pk %}#variants" class="breadcrumbs--ellipsed-item">{{ product }}</a></li>- <li>- <span class="hide-on-med-and-down">{% trans "Delete variant" %}</span>- <span class="hide-on-large-only">{% blocktrans %}Delete variant for {{ product }}{% endblocktrans %}</span>- </li>- </ul>-{% endblock %}--{% block menu_catalogue_class %} active{% endblock %}--{% block content %}- <form method="post">- {% csrf_token %}- <input type="hidden" name="success_url" value="{% url 'dashboard:product-update' pk=product.pk %}#variants">- <div class="row">- <div class="col m6 l4">- <div class="card">- <div class="card-content">- {% if is_only_variant %}- <p>{% trans 'This is the only variant. Deleting it will make the product unavailable for your customers.' %}</p>- {% endif %}-- <h5>{{ variant }}{% if variant.name %} {{ variant.name }}{% endif %} </h5>- </div>-- <div class="card-action">- <button type="submit" class="card-link blue-text">{% trans "Delete" %}</button>- </div>- </li>- </ul>- </div>- </form>-{% endblock %}diff --git a/templates/demo/dashboard/product/stock_confirm_delete.html b/templates/demo/dashboard/product/stock_confirm_delete.htmldeleted file mode 100644index c6336bb35c..0000000000--- a/templates/demo/dashboard/product/stock_confirm_delete.html+++ /dev/null@@ -1,46 +0,0 @@-{% extends "dashboard/base.html" %}-{% load i18n %}--{% block title %}{% trans "Delete stock" %} - {{ block.super }}{% endblock %}--{% block body_class %}body-store body-products{% endblock %}--{% block header_menu %}- {% url "dashboard:product-update" pk=product.pk as url %}- {% include "dashboard/includes/_back-link.html" with url=url hash="#stock" %}-{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs breadcrumbs--with-menu">- <li><a href="{% url "dashboard:product-list" %}" class="breadcrumbs--ellipsed-item">{% trans "Products" %}</a></li>- <li><a href="{% url "dashboard:product-update" pk=product.pk %}#stock" class="breadcrumbs--ellipsed-item">{{ product }}</a></li>- <li>- <span class="hide-on-med-and-down">{% trans "Delete stock" %}</span>- <span class="hide-on-large-only">{% blocktrans %}Delete stock for {{ product }}{% endblocktrans %}</span>- </li>- </ul>-{% endblock %}--{% block menu_catalogue_class %} active{% endblock %}--{% block content %}- <form method="post">- {% csrf_token %}- <input type="hidden" name="success_url" value="{% url 'dashboard:product-update' pk=product.pk %}#stock">- <div class="row">- <div class="col m6 l4">- <div class="card">- <div class="card-content">- <h5>- {{ stock.variant.sku }} ({{ stock.variant.name }}) – {{ stock.location }}- </h5>- </div>-- <div class="card-action">- <button type="submit" class="card-link blue-text">{% trans "Delete" %}</button>- </div>- </div>- </div>- </div>- </form>-{% endblock %}diff --git a/templates/demo/dashboard/product/stock_form.html b/templates/demo/dashboard/product/stock_form.htmldeleted file mode 100644index 548042bfcd..0000000000--- a/templates/demo/dashboard/product/stock_form.html+++ /dev/null@@ -1,62 +0,0 @@-{% extends "dashboard/base.html" %}-{% load i18n %}-{% load materializecss %}-{% load static %}--{% block title %}- {% if stock.pk %}- {% trans "Stock" %} {{ stock }}- {% else %}- {% trans "Add stock" %}- {% endif %} - {{ block.super }}-{% endblock %}--{% block body_class %}body-store body-products{% endblock %}--{% block header_menu %}- {% url "dashboard:product-update" pk=product.pk as url %}- {% include "dashboard/includes/_back-link.html" with url=url hash="#stock" %}-{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs breadcrumbs--with-menu">- <li><a href="{% url "dashboard:product-list" %}" class="breadcrumbs--ellipsed-item">{% trans "Products" %}</a></li>- <li><a href="{% url "dashboard:product-update" pk=product.pk %}#stock" class="breadcrumbs--ellipsed-item">{{ product }}</a></li>- {% if stock.pk %}- <li><span class="breadcrumbs--ellipsed-item">{% trans "Stock" %} {{ stock.variant }}</span></li>- {% else %}- <li>- <span class="hide-on-med-and-down">{% trans "Add stock" %}</span>- <span class="hide-on-large-only">{% blocktrans %}Add stock for {{ product }}{% endblocktrans %}</span>- </li>- {% endif %}- </ul>-{% endblock %}--{% block menu_catalogue_class %} active{% endblock %}--{% block content %}- <form method="post" id="form-stock" enctype="multipart/form-data">- <div class="row">- {% csrf_token %}- {{ form.variant|materializecss:"s12 m8 l6" }}- {{ form.quantity|materializecss:"s12 m4 l2" }}- </div>-- <div class="row">- {{ form.location|materializecss:"s12 m6 l4" }}- {{ form.cost_price|materializecss:"s12 m6 l4" }}- <input type="hidden" name="success_url" value="{% url 'dashboard:product-update' pk=product.pk %}#stock">- </div>-- <div class="row">- <div class="col s12 l8 right-align">- {% if stock.pk %}- <button type="submit" class="btn">{% trans "Update" %}</button>- {% else %}- <button type="submit" class="btn">{% trans "Create" %}</button>- {% endif %}- </div>- </div>- </form>-{% endblock %}diff --git a/templates/demo/dashboard/product/variant_form.html b/templates/demo/dashboard/product/variant_form.htmldeleted file mode 100644index 1e0254c427..0000000000--- a/templates/demo/dashboard/product/variant_form.html+++ /dev/null@@ -1,74 +0,0 @@-{% extends "dashboard/base.html" %}-{% load i18n %}-{% load materializecss %}-{% load static %}--{% block title %}- {% if variant.pk %}- {{ variant.sku }}{% if variant.name %} ({{ variant.name }}){% endif %}- {% else %}- {% trans "Add variant" %}- {% endif %} - {{ block.super }}{% endblock %}--{% block body_class %}body-store body-products{% endblock %}--{% block header_menu %}- {% url "dashboard:product-update" pk=product.pk as url %}- {% include "dashboard/includes/_back-link.html" with url=url hash="#variants" %}-{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs breadcrumbs--with-menu">- <li><a href="{% url "dashboard:product-list" %}" class="breadcrumbs--ellipsed-item">{% trans "Products" %}</a></li>- <li><a href="{% url "dashboard:product-update" pk=product.pk %}#variants" class="breadcrumbs--ellipsed-item">{{ product }}</a></li>- {% if variant.pk %}- <li><span class="breadcrumbs--ellipsed-item">{% trans "Variant" %} {{ variant.sku }}{% if variant.name %} ({{ variant.name }}){% endif %}</span></li>- {% else %}- <li>- <span class="hide-on-med-and-down">{% trans "Add variant" %}</span>- <span class="hide-on-large-only">{% blocktrans %}Add variant for {{ product }}{% endblocktrans %}</span>- </li>- {% endif %}- </ul>-{% endblock %}--{% block menu_catalogue_class %} active{% endblock %}--{% block content %}- <form method="post" id="form-variant" enctype="multipart/form-data">- {% csrf_token %}- <input type="hidden" name="success_url" value="{% url 'dashboard:product-update' pk=product.pk %}#variants">- <div class="row">- <div class="col s12 m6 l4">- {% if attribute_form.fields %}- <div class="row">- {% for attribute_field in attribute_form %}- {{ attribute_field|materializecss }}- {% endfor %}- </div>- {% else %}- <p>{% trans "This product has no attributes." %}</p>- {% endif %}- </div>-- <div class="col s12 m6 l4">- <div class="row">- {{ form.sku|materializecss }}- {{ form.price_override|materializecss }}- {{ form.weight_override|materializecss }}- {{ form.name|materializecss }}- </div>- </div>- </div>-- <div class="row">- <div class="col s12 l8 right-align">- {% if variant.pk %}- <button type="submit" class="btn">{% trans "Update" %}</button>- {% else %}- <button type="submit" class="btn">{% trans "Create" %}</button>- {% endif %}- </div>- </div>- </form>-{% endblock %}diff --git a/templates/demo/dashboard/shipping/method_delete.html b/templates/demo/dashboard/shipping/method_delete.htmldeleted file mode 100644index f01932d4a8..0000000000--- a/templates/demo/dashboard/shipping/method_delete.html+++ /dev/null@@ -1,44 +0,0 @@-{% extends "dashboard/base.html" %}-{% load materializecss %}-{% load i18n %}--{% block title %}{% trans "Delete" %} {{ shipping_method }}{% endblock %}--{% block body_class %}body-shipping-methods{% endblock %}--{% block page_title %}{% trans "Delete" %} {{ shipping_method }}{% endblock %}--{% block menu_delivery_class %}active{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs breadcrumbs--with-menu">- <li><a href="{% url 'dashboard:shipping-methods' %}"- class="breadcrumbs--ellipsed-item">{% trans "Subscription methods" %}</a>- </li>- <li><a href="{% url 'dashboard:shipping-method-detail' pk=shipping_method.pk %}"- class="breadcrumbs--ellipsed-item">{{ shipping_method }}</a>- </li>- <li>- <span class="breadcrumbs--ellipsed-item">{% trans "Delete" %}</span>- </li>- </ul>-{% endblock %}--{% block menu_shipping_class %} active{% endblock %}--{% block content %}- <div class="row">- <div class="col s12 m5">- <div class="card-panel">- {% blocktrans with shipping_method_name=shipping_method %}- Are you sure you want to delete the {{ shipping_method_name }} method?- {% endblocktrans %}- </div>- </div>- </div>- <form method="post">- {% csrf_token %}- <button type="submit" class="btn red">{% trans "Delete" %}</button>- </div>- </form>-{% endblock %}diff --git a/templates/demo/dashboard/shipping/method_form.html b/templates/demo/dashboard/shipping/method_form.htmldeleted file mode 100644index aa72cb8f90..0000000000--- a/templates/demo/dashboard/shipping/method_form.html+++ /dev/null@@ -1,88 +0,0 @@-{% extends "dashboard/base.html" %}-{% load materializecss %}-{% load i18n %}-{% load mptt_tags %}---{% block title %}- {% trans "Shipping methods" %}- {% if shipping_method.pk %}- - {{ shipping_method }}- {% else %}- - {% trans 'Add new method' %}- {% endif %}- - {{ block.super }}-{% endblock %}--{% block body_class %}body-shipping-methods{% endblock %}--{% block menu_delivery_class %}active{% endblock %}--{% block page_title %}{% if shipping_method.pk %}{{ shipping_method }}{% else %}- {% trans 'Add new method' %}-{% endif %}{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs breadcrumbs--with-menu">- <li><a href="{% url 'dashboard:shipping-methods' %}"- class="breadcrumbs--ellipsed-item">{% trans "Shipping methods" %}</a>- </li>- <li>- {% if shipping_method.pk %}- <span class="breadcrumbs--ellipsed-item">{{ shipping_method }}</span>- {% else %}- <span class="breadcrumbs--ellipsed-item">{% trans 'Add new method' %}</span>- {% endif %}- </li>- </ul>-{% endblock %}--{% block menu_shipping_class %} active{% endblock %}--{% block content %}- <form method="post" id="form-method">- {% csrf_token %}- {{ price_per_country_formset.management_form }}- <div class="row">- {{ shipping_method_form|materializecss }}- </div>- <h4 class="light">{% trans "Price per country" %}</h4>-- <div class="card-panel">- {% for form in price_per_country_formset %}- <div class="row">- {{ form.id }}- {{ form.country_code|materializecss:"input-field s12 l5" }}- {{ form.price|materializecss:"input-field s12 l5" }}- {{ form.DELETE|materializecss:"input-field s12 l2" }}- </div>- {% if form.non_field_errors %}- {% for error in form.non_field_errors %}- <p class="help-block materialize-red-text">{{ error }}</p>- {% endfor %}- {% endif %}- {% endfor %}- </div>--- <div class="row">- {% if shipping_method.pk %}- <div class="col s12 l6">- <a href="{% url 'dashboard:shipping-method-delete' pk=shipping_method.pk %}"- class="btn red">{% trans "Delete" %}</a>- </div>- <div class="col s12 l6 right-align">- <a href="{% url 'dashboard:shipping-methods' %}"- class="btn-flat">{% trans "Cancel" %}</a>- <button type="submit" class="btn">{% trans "Update" %}</button>- </div>- {% else %}- <div class="col s12 right-align">- <a href="{% url 'dashboard:shipping-methods' %}"- class="btn-flat">{% trans "Cancel" %}</a>- <button type="submit" class="btn">{% trans "Create" %}</button>- </div>- {% endif %}- </div>- </form>-{% endblock %}diff --git a/templates/demo/dashboard/shipping/method_list.html b/templates/demo/dashboard/shipping/method_list.htmldeleted file mode 100644index f1d235ae69..0000000000--- a/templates/demo/dashboard/shipping/method_list.html+++ /dev/null@@ -1,70 +0,0 @@-{% extends "dashboard/base.html" %}-{% load i18n %}-{% load prices_i18n %}-{% load status %}--{% block title %}{% trans "Shipping methods" %} - {{ block.super }}{% endblock %}--{% block body_class %}body-shipping-methods{% endblock %}--{% block menu_delivery_class %}active{% endblock %}--{% block breadcrumbs %}- <ul class="breadcrumbs">- <li>{% trans "Shipping" %}</li>- <li>{% trans "methods" %}</li>- </ul>-{% endblock %}--{% block header_extra %}- <div class="fixed-action-btn">- <a class="btn-fab btn-floating btn-large waves-effect waves-light teal"- title="{% trans "Add method" %}"- href="{% url 'dashboard:shipping-method-add' %}">- <i class="material-icons">add</i>- </a>- </div>-{% endblock %}--{% block content %}- {% if shipping_methods %}- <div class="card">- <div class="data-table-container">- <table class="bordered hoverable responsive data-table">- <thead>- <tr>- <th>{% trans "Name" %}</th>- <th>{% trans "Price range" %}</th>- <th class="wide">{% trans "Countries" %}</th>- </tr>- </thead>- <tbody>- {% for method in shipping_methods %}- <tr>- <td>- <a href="{% url 'dashboard:shipping-method-detail' pk=method.pk %}">{{ method }}</a>- </td>- <td>- {% if not method.price_range %}- -- {% elif method.price_range.min_price == method.price_range.max_price %}- {% gross method.price_range.min_price %}- {% else %}- {% gross method.price_range.min_price %} -- {% gross method.price_range.max_price %}- {% endif %}- </td>- <td>{{ method.countries|join:", " }}</td>- </tr>- {% endfor %}- </tbody>- </table>- </div>- </div>-- {% include "dashboard/includes/_pagination.html" %}- {% else %}- <p>{% trans "No shipping methods found." %}</p>- {% endif %}--{% endblock %}diff --git a/templates/demo/materializecssform/field.html b/templates/demo/materializecssform/field.htmldeleted file mode 100644index 9330b1744b..0000000000--- a/templates/demo/materializecssform/field.html+++ /dev/null@@ -1,193 +0,0 @@-{% load i18n %}-{% load materializecss %}-{% load utils %}---{% if field|is_checkbox %}- <div class="input col {{ classes.label }}">- <div class="{{ classes.single_value }}">- <p>- {% if field.auto_id %}- {{ field }}- <label for="{{ field.auto_id }}">- {{ field.label }}- </label>- {% endif %}- {% for error in field.errors %}- <p class="help-block materialize-red-text">{{ error }}</p>- {% endfor %}-- {% if field.help_text %}- <p class="help-block">- {{ field.help_text|safe }}- </p>- {% endif %}- </p>- </div>- </div>-{% elif field|is_radio %}- <div class="input col {{ classes.label }}">-- {% if field.auto_id %}- <label class="control-label- {{ classes.label }}">{{ field.label }}{% if not field.field.required %} ({% trans 'optional' %}){% endif %}</label>- {% endif %}- {% for choice in field %}- <p>- {{ choice.tag }}- <label for="{{ choice.id_for_label }}">{{ choice.choice_label }}</label>- </p>- {% endfor %}-- {% for error in field.errors %}- <p class="help-block materialize-red-text">{{ error }}</p>- {% endfor %}-- {% if field.help_text %}- <p class="help-block">- {{ field.help_text|safe }}- </p>- {% endif %}- </div>-{% elif field|is_date_input %}- <div class="input col {{ classes.label }}">-- <label class="active{% if not field.field.required %} optional{% endif %}"- for="{{ field.auto_id }}">{{ field.label }}</label>- <input type="date" id="{{ field.auto_id }}" class="datepicker"- name="{{ field.name }}"- value="{% if field.value %}{{ field.value|date:"Y-m-d" }}{% endif %}"- data-value="{% if field.value %}{{ field.value|date:"Y-m-d" }}{% endif %}">- {% for error in field.errors %}- <p class="help-block materialize-red-text">{{ error }}</p>- {% endfor %}-- {% if field.help_text %}- <p class="help-block">- {{ field.help_text|safe }}- </p>- {% endif %}- </div>-{% elif field|is_select %}- <div class="input col {{ classes.label }}">- {% if field|is_checkbox_select_multiple %}- {% if field.auto_id %}- <label class="control-label {{ classes.label }}">{{ field.label }}</label>- {% endif %}- <div class="{{ classes.value }}">- {% for choice in field %}- <p>- {{ choice.tag }}- <label for="{{ choice.id_for_label }}">{{ choice.choice_label }}</label>- </p>- {% endfor %}-- {% for error in field.errors %}- <p class="help-block materialize-red-text">{{ error }}</p>- {% endfor %}-- {% if field.help_text %}- <p class="help-block">- {{ field.help_text|safe }}- </p>- {% endif %}- </div>-- {% else %}- <label for="{{ field.id_for_label }}">{{ field.label }}</label>- {{ field }}- {% for error in field.errors %}- <p class="help-block materialize-red-text">{{ error }}</p>- {% endfor %}-- {% if field.help_text %}- <p class="help-block">- {{ field.help_text|safe }}- </p>- {% endif %}-- {% endif %}-- </div>--{% elif field|is_textarea %}- <div class="input input-field col {{ classes.label }}">- <textarea id="{{ field.auto_id }}"- class="materialize-textarea {{ field.field.widget.attrs.class }}"- name="{{ field.name }}">{% if field.value %}{{ field.value }}{% endif %}</textarea>- {% if field.auto_id %}- <label class="active- {{ classes.label }}{% if not field.field.required %} optional{% endif %}"- for="{{ field.auto_id }}">{{ field.label }}</label>- {% endif %}-- {% for error in field.errors %}- <p class="help-block materialize-red-text">{{ error }}</p>- {% endfor %}-- {% if field.help_text %}- <p class="help-block">- {{ field.help_text|safe }}- </p>- {% endif %}- </div>--{% elif field|is_file %}- <div class="input col {{ classes.label }}">- <p>- {% if field.auto_id %}- <label class="{{ classes.label }}"- for="{{ field.auto_id }}">{{ field.label }}</label><br>- {% endif %}- {{ field }}- </p>- </div>--{% elif field|is_versatile_image_ppoi_click_widget %}- <div class="input col file-field input-field {{ classes.label }}">- {% if field.auto_id %}- <label class="{{ classes.label }}"- for="{{ field.auto_id }}">{{ field.label }}</label>- {% endif %}- <div class="btn">- <span>File</span>- <input class="file-chooser" id="{{ field.auto_id }}_0"- name="{{ field.name }}_0" type="file">- <input class="ppoi-input" id="{{ field.auto_id }}_1"- name="{{ field.name }}_1" type="hidden">- </div>- <div class="file-path-wrapper">- <input class="file-path" type="text">- </div>- {% for error in field.errors %}- <p class="help-block materialize-red-text">{{ error }}</p>- {% endfor %}-- {% if field.help_text %}- <p class="help-block">- {{ field.help_text|safe }}- </p>- {% endif %}-- </div>-{% else %}-- <div class="input input-field col {{ classes.label }}">- {% if field.auto_id %}- <label class="active{% if not field.field.required %} optional{% endif %}"- for="{{ field.auto_id }}">{{ field.label }}</label>- {% endif %}- {{ field }}-- {% for error in field.errors %}- <p class="help-block materialize-red-text">{{ error }}</p>- {% endfor %}-- {% if field.help_text %}- <p class="help-block">- {{ field.help_text|safe }}- </p>- {% endif %}- </div>--{% endif %}diff --git a/templates/demo/order/details.html b/templates/demo/order/details.htmldeleted file mode 100644index a6eab35c81..0000000000--- a/templates/demo/order/details.html+++ /dev/null@@ -1,132 +0,0 @@-{% extends "base.html" %}--{% load gross from prices_i18n %}-{% load i18n %}-{% load staticfiles %}-{% load discount_amount_for from prices %}--{% block title %}{% trans "Order" %} {{ order }} — {{ block.super }}{% endblock %}--{% block outerbreadcrumb %}- {% if order.user == user %}- <ul class="breadcrumb" itemprop="breadcrumb">- <li><a href="/">{% trans "Home" %}</a></li>- <li><a href="{% url 'profile:orders' %}">{% trans "Your orders" %}</a></li>- <li><a href="{% url 'order:details' token=order.token %}">{{ order }}</a></li>- </ul>- {% endif %}-{% endblock outerbreadcrumb %}--{% block content %}- {# This view is available by just knowing url, #}- {# so we don't show all details (like delivery address) #}- {# unless current user is owner of the order. #}-- <div class="row">- <div class="col-sm-12">- <h3 class="page-header page-header--order">- <span class="text-muted">{% blocktrans %}Order {{ order }}: {% endblocktrans %}</span>- {{ order.get_status_display }}-- {% if not order.is_fully_paid %}- {% if order.is_pre_authorized %}- <a href="{% url "order:payment" token=order.token %}" class="btn btn-info">{% trans "Payment details" %}</a>- {% else %}- <a href="{% url "order:payment" token=order.token %}" class="btn btn-primary">{% trans "Pay for order" %}</a>- {% endif %}- {% endif %}- </h3>- </div>- </div>-- <div class="row">- {% if order.user == user %}- <div class="col-sm-6">- <div class="panel panel-default">- <div class="panel-heading">- {% trans "Billing address" %}- </div>- <div class="panel-body">- <address>{% include "userprofile/snippets/address-details.html" with address=order.billing_address %}</address>- </div>- </div>- </div>- {% if order.is_shipping_required %}- <div class="col-sm-6">- <div class="panel panel-default">- <div class="panel-heading">- {% trans "Shipping address" %}- </div>- <div class="panel-body">- <address>{% include "userprofile/snippets/address-details.html" with address=order.shipping_address %}</address>- </div>- </div>- </div>- {% endif %}- {% endif %}- </div>-- {% for group in groups %}- <div class="panel panel-default">- <div class="panel-heading">- {% blocktrans with number=forloop.counter %}Shipment #{{ number }}{% endblocktrans %}- <span class="pull-right">- <span class="label label-default">{{ group.get_status_display }}</span>- </span>- </div>- <table class="table">- <thead>- <tr>- <th class="col-sm-6">{% trans "Name" %}</th>- <th class="col-sm-3 text-right">{% trans "Price" %}</th>- <th class="col-sm-3 text-right">{% trans "Subtotal" %}</th>- </tr>- </thead>- <tfoot>- <tr>- <th colspan="2">{% trans "Total" %}</th>- <th class="text-right">{% gross group.get_total %}</th>- </tr>- </tfoot>- <tbody>- {% for item in group %}- <tr>- <td>{{ item.product }}{% if item.quantity != 1 %} <em>×{{ item.quantity }}</em>{% endif %}</td>- <td class="text-right">{% gross item.get_price_per_item %}</td>- <td class="text-right">{% gross item.get_total %}</td>- </tr>- {% endfor %}- {% if group.shipping_price.gross %}- <tr>- <td class="col-sm-4">- {% trans "Shipping" %}- </td>- <td class="text-right">{% gross group.shipping_price %}</td>- <td class="text-right">{% gross group.shipping_price %}</td>- </tr>- {% endif %}- </tbody>- </table>- </div>- {% endfor %}- {% if order.discount_amount %}- <div class="panel panel-default">- <div class="panel-heading">- {{ order.discount_name }}- </div>- <div class="panel-body text-right">- <strong>{% gross order.discount|discount_amount_for:order.total %}</strong>- </div>- </div>- {% endif %}- {% if order.discount_amount or groups|length > 1 %}- <div class="panel panel-default">- <div class="panel-heading">- {% trans "Total" %}- </div>- <div class="panel-body text-right">- <strong>{% gross order.total %}</strong>- </div>- </div>- {% endif %}-{% endblock content %}diff --git a/templates/demo/order/emails/confirm_email.body.txt b/templates/demo/order/emails/confirm_email.body.txtdeleted file mode 100644index 420073b470..0000000000--- a/templates/demo/order/emails/confirm_email.body.txt+++ /dev/null@@ -1,9 +0,0 @@-{% load i18n %}--{% block content %}{% blocktrans %}Hi!--Thank you for your order. To see your payment details please visit:-{{ payment_url }}--Sincerely,-Saleor Team{% endblocktrans %}{% endblock %}diff --git a/templates/demo/order/emails/confirm_email.subject.txt b/templates/demo/order/emails/confirm_email.subject.txtdeleted file mode 100644index 6239b9c4b5..0000000000--- a/templates/demo/order/emails/confirm_email.subject.txt+++ /dev/null@@ -1,2 +0,0 @@-{% load i18n %}-{% trans "Order details" %}\ No newline at end of filediff --git a/templates/demo/order/payment.html b/templates/demo/order/payment.htmldeleted file mode 100644index e7aa48d26b..0000000000--- a/templates/demo/order/payment.html+++ /dev/null@@ -1,157 +0,0 @@-{% extends "base.html" %}--{% load bootstrap_form from bootstrap3 %}-{% load gross from prices_i18n %}-{% load discount_amount_for from prices %}-{% load i18n %}-{% load staticfiles %}--{% block title %}{% trans "Pay for order" %} {{ order }} — {{ block.super }}{% endblock %}--{% block outerbreadcrumb %}- {% if order.user == user %}- <ul class="breadcrumb" itemprop="breadcrumb">- <li><a href="/">{% trans "Home" %}</a></li>- <li><a href="{% url 'profile:orders' %}">{% trans "Your orders" %}</a></li>- <li><a href="{% url 'order:details' token=order.token %}">{{ order }}</a></li>- </ul>- {% endif %}-{% endblock outerbreadcrumb %}--{% block content %}- <div class="row">- <div class="col-sm-8">- {% if order.user == user or not order.is_fully_paid %}- {% if not order.is_fully_paid %}- <div class="panel panel-info">- {% if waiting_payment %}- <div class="panel-heading">- {% trans "Payment pending" %}- </div>- <div class="panel-body">- <form method="post" action="{% url 'order:cancel-payment' token=order.token %}">- {% csrf_token %}- <p>{% trans "We are currently waiting for an external service to authorize your payment for this order." %}</p>- <p>{% trans "Current status" %}: <span class="label label-default">{{ waiting_payment.get_status_display }}</span></p>- <p>{% trans "Unless you are absolutely sure that the process will not complete (for example you have closed the browser window before paying), you should wait before attempting a new payment. Please be warned that if you try again and the previous transaction succeeds you might end up being charged twice." %}</p>- {% bootstrap_form waiting_payment_form %}- <button type="submit" class="btn btn-danger">{% trans "I understand, allow me to pay again" %}</button>- </form>- </div>- {% elif payment_form %}- <div class="panel-heading">- {% trans "Pay for order" %} {{ order }}- </div>- <div class="panel-body">- <form method="post" action="{% url "order:payment" token=order.token %}">- {% csrf_token %}- {{ payment_form }}- <div class="form-group text-right">- {% block form_submit %}- <button type="submit" class="btn btn-primary">- {% trans "Proceed to payment" %}- </button>- {% endblock %}- </div>- </form>- </div>- {% else %}- <div class="panel-body alert-info">- <span>{% trans "You've authorized transaction. Order is in processing" %}</span>- </div>- {% endif %}- </div>- {% endif %}- {% endif %}- </div>- </div>-- <div class="row">- {% if order.user == user %}- <div class="col-sm-6">- <div class="panel panel-default">- <div class="panel-heading">- {% trans "Billing address" %}- </div>- <div class="panel-body">- <address>{% include "userprofile/snippets/address-details.html" with address=order.billing_address %}</address>- </div>- </div>- </div>-- <div class="col-sm-6">- {% if order.is_shipping_required %}- <div class="panel panel-default">- <div class="panel-heading">- {% trans "Shipping address" %}- </div>- <div class="panel-body">- <address>{% include "userprofile/snippets/address-details.html" with address=order.shipping_address %}</address>- </div>- </div>- {% endif %}- </div>- {% endif %}- </div>-- {% for group in groups %}- <div class="panel panel-default">- <div class="panel-heading">- {% blocktrans with number=forloop.counter %}Shipment #{{ number }}{% endblocktrans %}- </div>- <table class="table">- <thead>- <tr>- <th class="col-sm-6">{% trans "Name" %}</th>- <th class="col-sm-3 text-right">{% trans "Price" %}</th>- <th class="col-sm-3 text-right">{% trans "Subtotal" %}</th>- </tr>- </thead>- <tfoot>- <tr>- <th colspan="2">{% trans "Total" %}</th>- <th class="text-right">{% gross group.get_total %}</th>- </tr>- </tfoot>- <tbody>- {% for item in group %}- <tr>- <td>{{ item.product }}{% if item.quantity != 1 %} <em>×{{ item.quantity }}</em>{% endif %}</td>- <td class="text-right">{% gross item.get_price_per_item %}</td>- <td class="text-right">{% gross item.get_total %}</td>- </tr>- {% endfor %}- {% if group.shipping_price.gross %}- <tr>- <td class="col-sm-4">- {% trans "Shipping" %}- </td>- <td class="text-right">{% gross group.shipping_price %}</td>- <td class="text-right">{% gross group.shipping_price %}</td>- </tr>- {% endif %}- </tbody>- </table>- </div>- {% endfor %}- {% if order.discount_amount %}- <div class="panel panel-default">- <div class="panel-heading">- {{ order.discount_name }}- </div>- <div class="panel-body text-right">- <strong>{% gross order.discount|discount_amount_for:order.total %}</strong>- </div>- </div>- {% endif %}- {% if order.discount_amount or groups|length > 1 %}- <div class="panel panel-default">- <div class="panel-heading">- {% trans "Total" %}- </div>- <div class="panel-body text-right">- <strong>{% gross order.total %}</strong>- </div>- </div>- {% endif %}-{% endblock content %}diff --git a/templates/demo/order/payment/default.html b/templates/demo/order/payment/default.htmldeleted file mode 100644index 8bd237e652..0000000000--- a/templates/demo/order/payment/default.html+++ /dev/null@@ -1,24 +0,0 @@-{% extends "order/payment/details.html" %}-{% load bootstrap_form from bootstrap3 %}-{% load i18n %}--{% block forms %}-<div class="row">- <div class="col-sm-6">- <div class="panel panel-default">- <div class="panel-body">- <form id="payment-form" method="{{ form.method }}"{% if form.action %} action="{{ form.action }}"{% endif %} novalidate>- {% csrf_token %}- {{ form.media }}- {% bootstrap_form form %}- <div class="form-group">- <button type="submit" class="btn btn-primary">- {% trans "Save changes" %}- </button>- </div>- </form>- </div>- </div>- </div>-</div>-{% endblock forms %}diff --git a/templates/demo/order/payment/details.html b/templates/demo/order/payment/details.htmldeleted file mode 100644index a4b3915223..0000000000--- a/templates/demo/order/payment/details.html+++ /dev/null@@ -1,12 +0,0 @@-{% extends "base.html" %}-{% load i18n %}--{% block title %}{% trans "Payment" %} — {{ block.super }}{% endblock %}--{% block outerbreadcrumb %}{% endblock %}--{% block content %}-<h2>Payment</h2>-{% block forms %}{% endblock %}--{% endblock content %}diff --git a/templates/demo/order/payment/emails/confirm_email.body.txt b/templates/demo/order/payment/emails/confirm_email.body.txtdeleted file mode 100644index e502e22865..0000000000--- a/templates/demo/order/payment/emails/confirm_email.body.txt+++ /dev/null@@ -1,9 +0,0 @@-{% load i18n %}--{% block content %}{% blocktrans %}Hi!--Thank you for your payment. To see your payment details please visit:-{{ order_url }}--Sincerely,-Saleor Team{% endblocktrans %}{% endblock %}diff --git a/templates/demo/order/payment/emails/confirm_email.subject.txt b/templates/demo/order/payment/emails/confirm_email.subject.txtdeleted file mode 100644index 730246779a..0000000000--- a/templates/demo/order/payment/emails/confirm_email.subject.txt+++ /dev/null@@ -1,2 +0,0 @@-{% load i18n %}-{% trans "Payment details" %}\ No newline at end of filediff --git a/templates/demo/order/payment/paypal-card.html b/templates/demo/order/payment/paypal-card.htmldeleted file mode 100644index 0119a03442..0000000000--- a/templates/demo/order/payment/paypal-card.html+++ /dev/null@@ -1,19 +0,0 @@-{% extends "order/payment/details.html" %}--{% load bootstrap_form from bootstrap3 %}-{% load gross from prices_i18n %}-{% load i18n %}--{% block forms %}- <form method="post" class="form-horizontal" novalidate>- {% csrf_token %}- {% bootstrap_form form layout='horizontal' %}- <div class="form-group">- <div class="col-sm-offset-2 col-sm-10">- <button type="submit" class="btn btn-primary">- {% trans "Save changes" %}- </button>- </div>- </div>- </form>-{% endblock forms %}diff --git a/templates/demo/order/payment/stripe.html b/templates/demo/order/payment/stripe.htmldeleted file mode 100644index e90e757751..0000000000--- a/templates/demo/order/payment/stripe.html+++ /dev/null@@ -1,14 +0,0 @@-{% extends "order/payment/details.html" %}-{% load bootstrap_form from bootstrap3 %}-{% load i18n %}--{% block forms %}-<form method="{{ form.method }}" class="form-horizontal"{% if form.action %} action="{{ form.action }}"{% endif %} novalidate>- {% csrf_token %}- {{ form.media }}- {% bootstrap_form form layout='horizontal' %}- {% if form.errors %}- <a class="btn" href="{% url "order:details" token=payment.order.token %}">{% trans "Change payment method" %}</a>- {% endif %}-</form>-{% endblock forms %}diff --git a/templates/demo/order/success.html b/templates/demo/order/success.htmldeleted file mode 100644index 57df5b5126..0000000000--- a/templates/demo/order/success.html+++ /dev/null@@ -1,37 +0,0 @@-{% extends "base.html" %}-{% load gross from prices_i18n %}-{% load i18n %}--{% block title %}{% trans "Order complete!" %} — {{ block.super }}{% endblock %}---{% block content %}-<h2>{% trans "Your order is now complete" %}</h2>-<p>{% trans "Thank you for your purchase!" %}</p>--<p>{% trans "Your order number is" %}: <a href="{% url 'order:details' token=order.token %}">{{ order }}</a></p>-{% endblock content %}--{% block google-analytics-script %}- {{ block.super }}- __ga('require', 'ecommerce', 'ecommerce.js');- __ga('set', 'currencyCode', '{{ DEFAULT_CURRENCY }}');- __ga('ecommerce:addTransaction', {- 'id': '{{ order.id }}',- 'affiliation': 'Saleor',- 'revenue': '{{ order.get_total.gross }}',- 'shipping': '{{ order.get_delivery_total.gross }}',- 'tax': '{{ order.get_total.tax }}'- });- {% for item in order.get_items %}- __ga('ecommerce:addItem', {- 'id': '{{ item.id }}',- 'name': '{{ item }}',- 'sku': '{{ item.sku }}',- 'category': '{{ item.product.category }}',- 'price': '{{ item.unit_price_gross }}',- 'quantity': '{{ item.quantity }}'- });- {% endfor %}- __ga('ecommerce:send');-{% endblock google-analytics-script %}diff --git a/templates/demo/payments/credit_card_expiry_widget.html b/templates/demo/payments/credit_card_expiry_widget.htmldeleted file mode 100644index ca6a8748cd..0000000000--- a/templates/demo/payments/credit_card_expiry_widget.html+++ /dev/null@@ -1,2 +0,0 @@-<div class="col-xs-6">{{ month }}</div>-<div class="col-xs-6">{{ year }}</div>\ No newline at end of filediff --git a/templates/demo/prices/widget.html b/templates/demo/prices/widget.htmldeleted file mode 100644index 923e40bae7..0000000000--- a/templates/demo/prices/widget.html+++ /dev/null@@ -1,2 +0,0 @@-<div class="input-with-suffix">{{ widget }}</div>-<div class="input-text-suffix">{{ currency }}</div>diff --git a/templates/demo/product/_price_range.html b/templates/demo/product/_price_range.htmldeleted file mode 100644index 8028471b63..0000000000--- a/templates/demo/product/_price_range.html+++ /dev/null@@ -1,8 +0,0 @@-{% load i18n %}-{% load gross from prices_i18n %}--<span itemprop="offers" itemscope itemtype="https://schema.org/Offer">- <span itemprop="price">- {% gross price_range.min_price html=True %}{% if price_range.min_price != price_range.max_price %}+{% endif %}- </span>-</span>diff --git a/templates/demo/product/details.html b/templates/demo/product/details.htmldeleted file mode 100644index 046376c2b1..0000000000--- a/templates/demo/product/details.html+++ /dev/null@@ -1,115 +0,0 @@-{% extends "base.html" %}--{% load bootstrap_form from bootstrap3 %}-{% load i18n %}-{% load gross from prices_i18n %}-{% load markdown from markdown %}-{% load price_range from price_ranges %}-{% load static from staticfiles %}--{% block title %}{{ product }} — {{ block.super }}{% endblock %}--{% block breadcrumb %}- <ul class="breadcrumbs list-unstyled hidden-sm-down">- <li><a href="/">{% trans "Home" %}</a></li>- {% with product.get_first_category as category %}- {% if category %}- <li><a href="{{ category.get_absolute_url }}">{{ category }}</a></li>- {% endif %}- {% endwith %}- <li><a href="{{ product.get_absolute_url }}">{{ product }}</a></li>- </ul>-{% endblock breadcrumb %}--{% block content %}- {% if not is_visible %}- <div class="alert alert-warning" role="alert">- {% blocktrans with date=product.available_on|date %}<strong>Warning!</strong> You are previewing a product that will become visible on <strong>{{ date }}</strong>.{% endblocktrans %}- </div>- {% endif %}- <div itemscope itemtype="http://schema.org/Product">- <div class="row product">- <div class="col-xs-12 col-md-5 float-md-right text-xs-center text-md-left">- <h1 itemprop="name" class="product__info__name">- {{ product }}- </h1>- {% if product.is_in_stock %}- <h2 itemprop="offers" class="product__info__price" itemscope itemtype="http://schema.org/Offer">- <span>{% price_range price_range %}</span>- {% if discount %}- <small class="product__info__price__undiscounted">{% gross undiscounted_price_range.min_price html=True %}</small>- {% endif %}- {% if local_price_range %}- <br>- <small>- ≈- {% gross local_price_range.min_price html=True %}- </small>- {% endif %}- </h2>- {% endif %}- </div>- <div class="col-md-7 col-xs-12 product__gallery">- {% with images=product.images.all %}- {% if images %}- <div id="carousel-example-generic" class="carousel slide">- <ol class="carousel-indicators hidden-sm-down">- {% for image in images %}- {% if images|length > 1 %}- <li data-target="#carousel-example-generic" data-slide-to="{{ forloop.counter0 }}">- <img src="{{ image.image.crop.60x60 }}" alt="">- </li>- {% endif %}- {% endfor %}- </ol>- <div class="carousel-inner" role="listbox">- {% for image in images %}- <div class="carousel-item{% if forloop.first %} active{% endif %}">- <img src="{{ image.image.crop.750x750 }}" alt="">- </div>- {% endfor %}- </div>- {% if images|length > 1 %}- <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">- <img class="icon-next" src="{% static "img/gallery-arrow.svg" %}">- </a>- <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">- <img class="icon-next" src="{% static "img/gallery-arrow.svg" %}">- </a>- {% endif %}- </div>- {% else %}- <img src="{% static 'images/product-image-placeholder.png' %}" alt="" class="img-fluid">- {% endif %}- {% endwith %}- </div>- <div class="col-md-5 col-xs-12 product__info">- {% if is_visible and product.is_in_stock %}- {% block orderform %}- <form role="form" class="product-form form-vertical" method="post"- action="{% url 'cart:add-to-cart' product_id=product.pk %}?next={{ product.get_absolute_url }}" novalidate>- {% csrf_token %}- {% bootstrap_form form %}-- <div class="form-group">- <button class="btn primary">- {% trans "Add to cart" %}- </button>- </div>- </form>- {% endblock %}- {% else %}- <p class="alert alert-warning">{% trans "This product is currently <strong>unavailable</strong>." %}</p>- {% endif %}-- <hr>-- <div itemprop="product__info__description">- <p><strong>{% trans "Description" %}</strong></p>- {{ product.description|markdown }}- </div>-- </div>- </div>- </div>-{% endblock content %}diff --git a/templates/demo/registration/change_password.html b/templates/demo/registration/change_password.htmldeleted file mode 100644index f8930157a8..0000000000--- a/templates/demo/registration/change_password.html+++ /dev/null@@ -1,36 +0,0 @@-{% extends "base.html" %}-{% load i18n %}-{% load bootstrap_form from bootstrap3 %}--{% block title %}{% trans "Change password" %}{% endblock %}--{% block breadcrumb %}- {{ block.super }}- <li><a href="{% url 'profile:details' %}">{% trans "Your profile" %}</a></li>- <li><a href="{% url 'registration:change_password' %}">{% trans "Change password" %}</a></li>-{% endblock breadcrumb %}--{% block content %}-<div class="row">- <div class="col-sm-6">- <div class="panel panel-default">- <div class="panel-body">- <form method="post" novalidate>- {% csrf_token %}- <fieldset>- <legend>{% trans 'Change password' %}</legend>- {% bootstrap_form form %}- <input type="hidden" name="next" value="{{ next }}" />- </fieldset>-- <div class="form-group">- <button class="btn btn-primary">- {% trans "Update password" %}- </button>- </div>- </form>- </div>- </div>- </div>-</div>-{% endblock %}diff --git a/templates/demo/registration/emails/change_email.body.txt b/templates/demo/registration/emails/change_email.body.txtdeleted file mode 100644index 70659c9fad..0000000000--- a/templates/demo/registration/emails/change_email.body.txt+++ /dev/null@@ -1,12 +0,0 @@-{% load i18n %}--{% block content %}{% blocktrans %}Hi!--You have requested email change in saleor project. To continue visit the link below.--{{ confirmation_url }}--If you didn't mean to change your email please ignore this message. We apologise for inconvenience.--Sincerely,-Saleor Team{% endblocktrans %}{% endblock %}diff --git a/templates/demo/registration/emails/change_email.subject.txt b/templates/demo/registration/emails/change_email.subject.txtdeleted file mode 100644index 3155262047..0000000000--- a/templates/demo/registration/emails/change_email.subject.txt+++ /dev/null@@ -1,2 +0,0 @@-{% load i18n %}-{% trans "Confirm your email address" %}\ No newline at end of filediff --git a/templates/demo/registration/emails/confirm_email.body.txt b/templates/demo/registration/emails/confirm_email.body.txtdeleted file mode 100644index 927540faa9..0000000000--- a/templates/demo/registration/emails/confirm_email.body.txt+++ /dev/null@@ -1,12 +0,0 @@-{% load i18n %}--{% block content %}{% blocktrans %}Hi!--You have requested login access to saleor project. To continue visit the link below.--{{ confirmation_url }}--If you didn't try to login to saleor please ignore this message. We apologise for inconvenience.--Sincerely,-Saleor Team{% endblocktrans %}{% endblock %}diff --git a/templates/demo/registration/emails/confirm_email.subject.txt b/templates/demo/registration/emails/confirm_email.subject.txtdeleted file mode 100644index 3155262047..0000000000--- a/templates/demo/registration/emails/confirm_email.subject.txt+++ /dev/null@@ -1,2 +0,0 @@-{% load i18n %}-{% trans "Confirm your email address" %}\ No newline at end of filediff --git a/templates/demo/registration/invalid_token.html b/templates/demo/registration/invalid_token.htmldeleted file mode 100644index f6f21f191c..0000000000--- a/templates/demo/registration/invalid_token.html+++ /dev/null@@ -1,9 +0,0 @@-{% extends "base.html" %}-{% load i18n %}--{% block title %}{% trans "Invalid token" %} — {{ block.super }}{% endblock %}--{% block content %}- <p>Sorry, this link is invalid. Probably it has already been used or has expired.</p>-{% endblock %}-diff --git a/templates/demo/registration/login.html b/templates/demo/registration/login.htmldeleted file mode 100644index cb090b0bca..0000000000--- a/templates/demo/registration/login.html+++ /dev/null@@ -1,56 +0,0 @@-{% extends "base.html" %}-{% load bootstrap_form from bootstrap3 %}-{% load staticfiles %}-{% load i18n %}--{% block title %}{% trans "Login" %} — {{ block.super }}{% endblock %}--{% block content %}-<div class="row login">- <div class="col-lg-10 offset-lg-1">- <div class="row">- <div class="col-md-6">- <form method="post" action="{% url 'registration:login' %}" novalidate>- {% csrf_token %}- <fieldset>- <h2>{% trans 'Log in' %}</h2>- {% bootstrap_form form %}- <input type="hidden" name="next" value="{{ next }}" />- </fieldset>- <div class="row login__btn-group">- <div class="col-lg-6">- <button class="btn primary">- {% trans "Log in" %}- </button>- </div>- <div class="col-lg-6">- <a href="{% url 'registration:request_email_confirmation' %}">{% trans "Forgot password?" %}</a>- </div>- </div>- {% if facebook_login_url or google_login_url %}- <p>{% trans "Want to use your social profile?" %}</p>- <p>- {% if facebook_login_url %}- <a class="btn btn-default" href="{{ facebook_login_url }}">- {% trans "Log in using Facebook" %}- </a>- {% endif %}- {% if google_login_url %}- <a class="btn btn-default" href="{{ google_login_url }}"> {% trans "Log in using Google" %}</a>- {% endif %}- </p>- {% endif %}-- </form>- </div>- <div class="col-md-6">- <div class="login__register-link">- <h2>{% trans "Don't have an account yet?" %}</h2>- <img src="{% static 'img/pirate_login.png' %}" srcset="{% static 'img/pirate_login.png' %} 1x, {% static 'img/pirate_login2x.png' %} 2x">- <p><a href="{% url 'registration:request_email_confirmation' %}" class="btn secondary">{% trans "Register" %}</a></p>- </div>- </div>- </div>- </div>-</div>-{% endblock %}diff --git a/templates/demo/registration/logout.html b/templates/demo/registration/logout.htmldeleted file mode 100644index 607b17744b..0000000000--- a/templates/demo/registration/logout.html+++ /dev/null@@ -1,8 +0,0 @@-{% extends "base.html" %}-{% load i18n %}--{% block title %}{% trans "Logged out" %} — {{ block.super }}{% endblock %}--{% block content %}-<p>Successfully logged out!</p>-{% endblock %}diff --git a/templates/demo/registration/request_email_confirmation.html b/templates/demo/registration/request_email_confirmation.htmldeleted file mode 100644index f673c9bcd1..0000000000--- a/templates/demo/registration/request_email_confirmation.html+++ /dev/null@@ -1,34 +0,0 @@-{% extends "base.html" %}-{% load bootstrap_form from bootstrap3 %}-{% load i18n %}--{% block title %}{% trans "Register or reset your password" %} — {{ block.super }}{% endblock %}--{% block breadcrumb %}- {{ block.super }}- <li><a href="#">{% trans "Register or reset your password" %}</a></li>-{% endblock breadcrumb %}--{% block content %}-<div class="row">- <div class="col-sm-6">- <div class="panel panel-default">- <div class="panel-body">- <form method="post" novalidate>- {% csrf_token %}- <fieldset>- <legend>{% trans 'Register or reset your password' %}</legend>- {% bootstrap_form form %}- <input type="hidden" name="next" value="{{ next }}" />- </fieldset>- <div class="form-group text-right">- <button class="btn btn-primary">- {% trans "Continue" %}- </button>- </div>- </form>- </div>- </div>- </div>-</div>-{% endblock %}diff --git a/templates/demo/registration/set_password.html b/templates/demo/registration/set_password.htmldeleted file mode 100644index 9ac7cc1c8f..0000000000--- a/templates/demo/registration/set_password.html+++ /dev/null@@ -1,32 +0,0 @@-{% extends "base.html" %}-{% load i18n %}-{% load bootstrap_form from bootstrap3 %}--{% block title %}{% trans "Set password" %} — {{ block.super }}{% endblock %}--{% block content %}-<form method="post" class="form-horizontal" novalidate>- {% csrf_token %}- <fieldset>- <legend>{% trans 'Set password' %}</legend>- {% bootstrap_form form layout='horizontal' %}- </fieldset>- <div class="form-group">- <div class="col-sm-offset-2 col-sm-10">- <button class="btn btn-primary">- {% trans "Set password" %}- </button>- </div>- </div>-</form>-<form method="post" class="form-horizontal" novalidate>- {% csrf_token %}- <div class="form-group">- <div class="col-sm-offset-2 col-sm-10">- <button class="btn btn-default">- {% trans "I don't want a password" %}- </button>- </div>- </div>-</form>-{% endblock %}diff --git a/templates/demo/status_label.html b/templates/demo/status_label.htmldeleted file mode 100644index 44b83998a5..0000000000--- a/templates/demo/status_label.html+++ /dev/null@@ -1 +0,0 @@-<span class="data-table-status data-table-status--{{ label_cls }}">{{ status }}</span>diff --git a/templates/demo/userprofile/address-delete.html b/templates/demo/userprofile/address-delete.htmldeleted file mode 100644index 86252321dc..0000000000--- a/templates/demo/userprofile/address-delete.html+++ /dev/null@@ -1,32 +0,0 @@-{% extends "base.html" %}-{% load i18n %}--{% block title %}{% trans "Delete address" %} — {{ block.super }}{% endblock %}--{% block breadcrumb %}- <ul class="breadcrumbs list-unstyled">- <li><a href="{% url 'profile:details' %}">{% trans "Your profile" %}</a></li>- <li><a href=".">{% trans "Delete address" %}</a></li>- </ul>-{% endblock breadcrumb %}--{% block content %}- <div class="row">- <div class="col-sm-8 col-md-6 offset-sm-2 offset-md-3">- <h1 class="text-xs-center">{% trans "Are you sure you want to delete the following address?" %}</h1>- <div class="panel panel-default">- <div class="panel-heading">- {{ address }}- </div>- <div class="panel-body">- <address>{% include "userprofile/snippets/address-details.html" with address=address %}</address>- </div>- </div>- <form method="post" novalidate>- {% csrf_token %}- <button type="submit" class="btn danger">{% trans "Delete" %}</button>- <a href="{% url 'profile:details' %}" class="btn secondary">{% trans "Cancel" %}</a>- </form>- </div>- </div>-{% endblock content %}diff --git a/templates/demo/userprofile/address-edit.html b/templates/demo/userprofile/address-edit.htmldeleted file mode 100644index fa1b272b16..0000000000--- a/templates/demo/userprofile/address-edit.html+++ /dev/null@@ -1,40 +0,0 @@-{% extends "base.html" %}--{% load i18n %}--{% block title %}{% trans "Edit Address" %} — {{ block.super }}{% endblock %}--{% block breadcrumb %}- <ul class="breadcrumbs list-unstyled">- <li><a href="/">{% trans "Home" %}</a></li>- <li><a href="{% url 'profile:details' %}">{% trans "Your profile" %}</a></li>- {% if address_form.instance.pk %}- <li><a href=".">{% trans "Edit address" %}</a></li>- {% else %}- <li><a href=".">{% trans "New address" %}</a></li>- {% endif %}- </ul>-{% endblock breadcrumb %}--{% block content %}-<div class="row userprofile__address-edit">- <div class="col-sm-8 col-lg-6 offset-sm-2 offset-lg-3">- <form method="post" novalidate>- {% csrf_token %}- <h1 class="text-xs-center">- {% if address_form.instance.pk %}- {% trans "Edit address" %}- {% else %}- {% trans "New address" %}- {% endif %}- </h1>- <div class="userprofile__address-edit__form">- {% include "userprofile/snippets/address-form.html" %}- </div>- <p class="text-right">- <button type="submit" class="btn primary">{% trans "Save changes" %}</button>- </p>- </form>- </div>-</div>-{% endblock content %}diff --git a/templates/demo/userprofile/details.html b/templates/demo/userprofile/details.htmldeleted file mode 100644index 9ea45c8b5f..0000000000--- a/templates/demo/userprofile/details.html+++ /dev/null@@ -1,190 +0,0 @@-{% extends "base.html" %}-{% load i18n %}-{% load static from staticfiles %}-{% load gross from prices_i18n %}-{% load discount_amount_for from prices %}--{% block title %}{% trans "Your profile" %} — {{ block.super }}{% endblock %}--{% block breadcrumb %}- <ul class="breadcrumbs list-unstyled">- <li><a href="/">{% trans "Home" %}</a></li>- <li><a href="{% url 'profile:details' %}">{% trans "Your account" %}</a></li>- </ul>-{% endblock breadcrumb %}--{% block content %}- <div class="userprofile">- <div class="row">- <div class="col-lg-10 offset-lg-1">- <h3>{{ user }}</h3>- <p>- <a href="{% url 'registration:change_password' %}">{% trans 'Change your password' %}</a>- <a href="{% url 'registration:request_email_change' %}">{% trans 'Change your email address' %}</a>- </p>- </div>- </div>- <div class="userprofile__nav row">- <ul class="nav nav-tabs col-lg-10 offset-lg-1" role="tablist">- <li class="nav-item">- <a class="nav-link active" data-toggle="tab" href="#addresses" role="tab"><h3>{% trans "Addresses" %}</h3></a>- </li>- <li class="nav-item">- <a class="nav-link" data-toggle="tab" href="#orders" role="tab"><h3>{% trans "Last orders" %}</h3></a>- </li>- </ul>- </div>- <div class="row">- <div class="tab-content col-lg-10 offset-lg-1">- <div class="tab-pane active" id="addresses" role="tabpanel">- {% for address in addresses %}- <div class="row userprofile__address-row">- <div class="col-xs-5">- {{ address }}- </div>- <div class="col-xs-3 col-md-4">- <div class="row">- <div class="col-md-6">- {% if user.default_billing_address == address %}- <span class="label label-default">{% trans "Billing" %}</span>- {% else %}- <form method="post" action="{% url "profile:address-make-default" pk=address.pk purpose="billing" %}" class="form-inline form-horizontal" novalidate>- {% csrf_token %}- <button type="submit" class="btn btn-default btn-sm">{% trans "Billing" %}</button>- </form>- {% endif %}- </div>- <div class="col-md-6">- {% if user.default_shipping_address == address %}- <span class="label label-default">{% trans "Shipping" %}</span>- {% else %}- <form method="post" action="{% url "profile:address-make-default" pk=address.pk purpose="shipping" %}" class="form-inline form-horizontal" novalidate>- {% csrf_token %}- <button type="submit" class="btn btn-default btn-sm">{% trans "Shipping" %}</button>- </form>- {% endif %}- </div>- </div>- </div>- <div class="col-md-2 col-xs-4">- <a href="{% url 'profile:address-edit' pk=address.pk %}"><img src="{% static 'img/icon_edit.svg' %}"></a>- <a href="{% url 'profile:address-delete' pk=address.pk %}"><img src="{% static 'img/icon_delete.svg' %}"></a>- </div>- </div>- {% endfor %}- <a href="{% url 'profile:address-create' %}" class="btn primary ">{% trans "Add new address" %}</a>- </div>- <div class="tab-pane" id="orders" role="tabpanel">- <div id="accordion" role="tablist" aria-multiselectable="true">- {% for order in orders %}- <div class="card userprofile__orders">- <a data-toggle="collapse" data-parent="#accordion" href="#collapse{{ forloop.counter0 }}" aria-expanded="true" aria-controls="collapse{{ forloop.counter0 }}"{% if forloop.counter0 > 0 %} class="collapsed"{% endif %}>- <div class="card-header" role="tab" id="head{{ forloop.counter0 }}">- <div class="row">- <div class="col-md-2 col-xs-5">- <strong>{{ order }}</strong>- </div>- <div class="col-md-4 col-xs-6">- {{ order.created }}- </div>- <div class="col-md-3 col-xs-5">- {% gross order.get_total %}- </div>- <div class="col-md-2 col-xs-6">- <span class="label label-default">{{ order.get_status_display }}</span>- </div>- <div class="col-md-1 col-xs-1">- <img class="userprofile__orders__arrow-icon float-xs-right" src="{% static 'img/gallery-arrow.svg' %}">- </div>- </div>- </div>- </a>- <div id="collapse{{ forloop.counter0 }}" class="collapse{% if forloop.counter0 == 0 %} in{% endif %} userprofile__orders__details" role="tabpanel" aria-labelledby="head{{ forloop.counter0 }}">- <div class="card-block">- <div class="row">- <div class="col-md-3 col-xs-6">- <h3>{% trans "Shipping address" %}</h3>- <address>{% include "userprofile/snippets/address-details.html" with address=order.shipping_address %}</address>- </div>- <div class="col-md-3 col-xs-6">- <h3>{% trans "Billing address" %}</h3>- <address>{% include "userprofile/snippets/address-details.html" with address=order.billing_address %}</address>- </div>- </div>- <!-- {% for group in groups %}- <div class="panel panel-default">- <div class="panel-heading">- {% blocktrans with number=forloop.counter %}Shipment #{{ number }}{% endblocktrans %}- <span class="pull-right">- <span class="label label-default">{{ group.get_status_display }}</span>- </span>- </div>- <table class="table">- <thead>- <tr>- <th class="col-sm-6">{% trans "Name" %}</th>- <th class="col-sm-3 text-right">{% trans "Price" %}</th>- <th class="col-sm-3 text-right">{% trans "Subtotal" %}</th>- </tr>- </thead>- <tfoot>- <tr>- <th colspan="2">{% trans "Total" %}</th>- <th class="text-right">{% gross group.get_total %}</th>- </tr>- </tfoot>- <tbody>- {% for item in group %}- <tr>- <td>{{ item.product }}{% if item.quantity != 1 %} <em>×{{ item.quantity }}</em>{% endif %}</td>- <td class="text-right">{% gross item.get_price_per_item %}</td>- <td class="text-right">{% gross item.get_total %}</td>- </tr>- {% endfor %}- {% if group.shipping_price.gross %}- <tr>- <td class="col-sm-4">- {% trans "Shipping" %}- </td>- <td class="text-right">{% gross group.shipping_price %}</td>- <td class="text-right">{% gross group.shipping_price %}</td>- </tr>- {% endif %}- </tbody>- </table>- </div>- {% endfor %}- {% if order.discount_amount %}- <div class="panel panel-default">- <div class="panel-heading">- {{ order.discount_name }}- </div>- <div class="panel-body text-right">- <strong>{% gross order.discount|discount_amount_for:order.total %}</strong>- </div>- </div>- {% endif %}- {% if order.discount_amount or groups|length > 1 %}- <div class="panel panel-default">- <div class="panel-heading">- {% trans "Total" %}- </div>- <div class="panel-body text-right">- <strong>{% gross order.total %}</strong>- </div>- </div>- {% endif %}- -->- </div>- </div>- </div>- {% endfor %}-- </div>-- </div>- </div>- </div>- </div>-{% endblock content %}-diff --git a/templates/demo/userprofile/orders.html b/templates/demo/userprofile/orders.htmldeleted file mode 100644index 58a10d32b4..0000000000--- a/templates/demo/userprofile/orders.html+++ /dev/null@@ -1,57 +0,0 @@-{% extends "base.html" %}-{% load i18n %}-{% load gross from prices_i18n %}--{% block title %}{% trans "Your orders" %} — {{ block.super }}{% endblock %}--{% block breadcrumb %}- {{ block.super }}- <li><a href="{% url 'profile:orders' %}">{% trans "Your orders" %}</a></li>-{% endblock breadcrumb %}--{% block content %}- <table class="table table-striped">- <thead>- <tr>- <th class="col-sm-2">- {% trans "Order #" %}- </th>- <th class="col-sm-2">- {% trans "Date" %}- </th>- <th class="col-sm-2">- {% trans "Price" %}- </th>- <th class="col-sm-2">- {% trans "Status" %}- </th>- <th class="col-sm-2">- {% trans "Last status change" %}- </th>- </tr>- </thead>- <tbody>- {% for order in orders %}- <tr>- <td class="col-sm-2">- <a href="{{ order.get_absolute_url }}">{{ order }}</a>- </td>- <td class="col-sm-2">- {{ order.created }}- </td>- <td class="col-sm-2">- {% gross order.get_total %}- </td>- <td class="col-sm-2">- <span class="label label-default">{{ order.get_status_display }}</span>- </td>- <td class="col-sm-2">- {{ order.last_status_change }}- </td>- </tr>- {% endfor %}- </tbody>- </table>--{% endblock content %}-diff --git a/templates/demo/userprofile/snippets/address-details.html b/templates/demo/userprofile/snippets/address-details.htmldeleted file mode 100644index d5b5e6a5d8..0000000000--- a/templates/demo/userprofile/snippets/address-details.html+++ /dev/null@@ -1,3 +0,0 @@-{% load format_address from i18n_address_tags %}--{% format_address address %}diff --git a/templates/demo/userprofile/snippets/address-form.html b/templates/demo/userprofile/snippets/address-form.htmldeleted file mode 100644index fb1ba85155..0000000000--- a/templates/demo/userprofile/snippets/address-form.html+++ /dev/null@@ -1,22 +0,0 @@-{% load bootstrap_field from bootstrap3 %}-<div class="i18n-address">- {% bootstrap_field address_form.phone %}- {% with address_form_lines=address_form.i18n_fields_order %}- {% if address_form_lines %}- {% for line in address_form_lines %}- <div class="row">- {% for field in line %}- <div class="col-sm-6">- {% bootstrap_field field %}- </div>- {% endfor %}- </div>- {% endfor %}- {% endif %}- {% endwith %}- {% for field in address_form.hidden_fields %}- {{ field }}- {% endfor %}- {% bootstrap_field address_form.country %}- <input type="hidden" class="preview" name="preview">-</div>diff --git a/templates/demo/userprofile/snippets/address-short.html b/templates/demo/userprofile/snippets/address-short.htmldeleted file mode 100644index 385dadef1a..0000000000--- a/templates/demo/userprofile/snippets/address-short.html+++ /dev/null@@ -1,22 +0,0 @@-<span class="address-details"- data-content="{% if address.company_name %}{{ address.company_name }}<br>{% endif %}- {{ address.street_address_1 }}<br>- {% if address.street_address_2 %}- {{ address.street_address_2 }}<br>- {% endif %}- {{ address.postal_code }} {{ address.city }}<br>- {% if address.country_area %}{{ address.country_area }}, {% endif %}{{ address.get_country_display }}<br>- {{ address.phone }}"- data-html="true" title="{{ address.first_name }} {{ address.last_name }}">- <strong>{{ address }}</strong><br>- {{ address.street_address_1 }}<br>- {% if address.street_address_2 %}- {{ address.street_address_2 }}<br>- {% endif %}- {{ address.postal_code }} {{ address.city }}<br>- {% if address.country_area %}- {{ address.country_area }},- {% endif %}- {{ address.get_country_display }}<br>- {{ address.phone }}-</span>diff --git a/templates/demo/weight_field_widget.html b/templates/demo/weight_field_widget.htmldeleted file mode 100644index eb9793cf8b..0000000000--- a/templates/demo/weight_field_widget.html+++ /dev/null@@ -1,2 +0,0 @@-<div class="input-with-suffix">{{ widget }}</div>-<div class="input-text-suffix">{{ unit }}</div>\ No newline at end of filediff --git a/templates/demo/home.html b/templates/home.htmlsimilarity index 96%rename from templates/demo/home.htmlrename to templates/home.htmlindex aeefbf9a03..fad7211fa2 100644--- a/templates/demo/home.html+++ b/templates/home.html@@ -1,4 +1,4 @@-{% extends "demo/base.html" %}+{% extends "base.html" %}{% load i18n %}{% block content %}@@ -43,4 +43,4 @@</div></div>-{% endblock %}\ No newline at end of file+{% endblock %}diff --git a/templates/product/details.html b/templates/product/details.htmlindex 1f445ad5c1..033c1190aa 100644--- a/templates/product/details.html+++ b/templates/product/details.html@@ -11,16 +11,18 @@{% block title %}{{ product }} — {{ block.super }}{% endblock %}{% block breadcrumb %}- {{ block.super }}- {% with product.get_first_category as category %}- {% if category %}- <li><a href="{{ category.get_absolute_url }}">{{ category }}</a></li>- {% endif %}- {% endwith %}- <li><a href="{{ product.get_absolute_url }}">{{ product }}</a></li>+ <ul class="breadcrumbs list-unstyled hidden-sm-down">+ <li><a href="/">{% trans "Home" %}</a></li>+ {% with product.get_first_category as category %}+ {% if category %}+ <li><a href="{{ category.get_absolute_url }}">{{ category }}</a></li>+ {% endif %}+ {% endwith %}+ <li><a href="{{ product.get_absolute_url }}">{{ product }}</a></li>+ </ul>{% endblock breadcrumb %}-{% block outercontent %}+{% block content %}{% if not is_visible %}<div class="alert alert-warning" role="alert">{% blocktrans with date=product.available_on|date %}<strong>Warning!</strong> You are previewing a product that will become visible on <strong>{{ date }}</strong>.{% endblocktrans %}@@ -37,7 +39,7 @@<p class="lead" itemprop="offers" itemscope itemtype="http://schema.org/Offer"><span class="price">{% price_range availability.price_range %}</span>{% if availability.discount %}- <small class="price undiscounted text-muted">{% gross availability.price_range_undiscounted.min_price html=True %}</small>+ <small class="price undiscounted text-muted">{% gross availability.undiscounted_price_range.min_price html=True %}</small>{% endif %}{% if availability.price_range_local_currency %}<br>@@ -59,33 +61,33 @@<img class="img-responsive" src="{% product_first_image product method="crop" size="680x680" %}" alt=""><hr></div>+ <div class="col-md-5 col-xs-12 product__info">+ {% if is_visible and product.is_in_stock %}+ {% block orderform %}+ <form role="form" class="product-form form-vertical" method="post"+ action="{% url 'product:add-to-cart' product_id=product.pk slug=product.get_slug %}" novalidate>+ {% csrf_token %}+ {% bootstrap_form form %}+ <div class="form-group">+ <button class="btn primary">+ {% trans "Add to cart" %}+ </button>+ </div>+ </form>+ {% endblock %}+ {% else %}+ <p class="alert alert-warning">{% trans "This product is currently <strong>unavailable</strong>." %}</p>+ {% endif %}- {% if is_visible and product.is_in_stock %}- {% block orderform %}- <form role="form" class="product-form form-vertical" method="post"- action="{% url 'product:add-to-cart' product_id=product.pk slug=product.get_slug %}" novalidate>- {% csrf_token %}- {% bootstrap_form form %}-- <div class="form-group">- <button class="btn btn-lg btn-block btn-primary">- {% trans "Add to cart" %}- </button>- </div>- </form>- {% endblock %}- {% else %}- <p class="alert alert-warning">{% trans "This product is currently <strong>unavailable</strong>." %}</p>- {% endif %}+ <hr>- <hr>+ <div itemprop="product__info__description">+ <p><strong>{% trans "Description" %}</strong></p>+ {{ product.description|markdown }}+ </div>- <div itemprop="description">- {{ product.description|markdown }}</div>- </div>-{% with images=product_images %}<div class="col-sm-6 col-sm-pull-6"><div id="product-carousel" class="carousel slide panel panel-default hidden-xs" data-ride="carousel">@@ -133,4 +135,4 @@{% endwith %}</div></div>-{% endblock outercontent %}+{% endblock content %}diff --git a/templates/userprofile/address-delete.html b/templates/userprofile/address-delete.htmlindex 0e37cd5a6b..86252321dc 100644--- a/templates/userprofile/address-delete.html+++ b/templates/userprofile/address-delete.html@@ -4,16 +4,16 @@{% block title %}{% trans "Delete address" %} — {{ block.super }}{% endblock %}{% block breadcrumb %}- {{ block.super }}- <li><a href="{% url 'profile:details' %}">{% trans "Your profile" %}</a></li>- <li><a href=".">{% trans "Delete address" %}</a></li>+ <ul class="breadcrumbs list-unstyled">+ <li><a href="{% url 'profile:details' %}">{% trans "Your profile" %}</a></li>+ <li><a href=".">{% trans "Delete address" %}</a></li>+ </ul>{% endblock breadcrumb %}{% block content %}- <h2>{% trans "Are you sure you want to delete the following address?" %}</h2>-<div class="row">- <div class="col-sm-6">+ <div class="col-sm-8 col-md-6 offset-sm-2 offset-md-3">+ <h1 class="text-xs-center">{% trans "Are you sure you want to delete the following address?" %}</h1><div class="panel panel-default"><div class="panel-heading">{{ address }}@@ -22,12 +22,11 @@<address>{% include "userprofile/snippets/address-details.html" with address=address %}</address></div></div>+ <form method="post" novalidate>+ {% csrf_token %}+ <button type="submit" class="btn danger">{% trans "Delete" %}</button>+ <a href="{% url 'profile:details' %}" class="btn secondary">{% trans "Cancel" %}</a>+ </form></div></div>-- <form method="post" novalidate>- {% csrf_token %}- <button type="submit" class="btn btn-danger">{% trans "Delete" %}</button>- <a href="{% url 'profile:details' %}" class="btn btn-link">{% trans "Cancel" %}</a>- </form>{% endblock content %}diff --git a/templates/userprofile/address-edit.html b/templates/userprofile/address-edit.htmlindex f12d549e79..fa1b272b16 100644--- a/templates/userprofile/address-edit.html+++ b/templates/userprofile/address-edit.html@@ -5,25 +5,34 @@{% block title %}{% trans "Edit Address" %} — {{ block.super }}{% endblock %}{% block breadcrumb %}- {{ block.super }}+ <ul class="breadcrumbs list-unstyled">+ <li><a href="/">{% trans "Home" %}</a></li><li><a href="{% url 'profile:details' %}">{% trans "Your profile" %}</a></li>-{% if address_form.instance.pk %}- <li><a href=".">{% trans "Edit address" %}</a></li>-{% else %}- <li><a href=".">{% trans "New address" %}</a></li>-{% endif %}+ {% if address_form.instance.pk %}+ <li><a href=".">{% trans "Edit address" %}</a></li>+ {% else %}+ <li><a href=".">{% trans "New address" %}</a></li>+ {% endif %}+ </ul>{% endblock breadcrumb %}{% block content %}-<div class="row">- <div class="col-sm-8 col-sm-push-2">+<div class="row userprofile__address-edit">+ <div class="col-sm-8 col-lg-6 offset-sm-2 offset-lg-3"><form method="post" novalidate>{% csrf_token %}- <h4>{% trans "Address" %}</h4>- <br>- {% include "userprofile/snippets/address-form.html" %}+ <h1 class="text-xs-center">+ {% if address_form.instance.pk %}+ {% trans "Edit address" %}+ {% else %}+ {% trans "New address" %}+ {% endif %}+ </h1>+ <div class="userprofile__address-edit__form">+ {% include "userprofile/snippets/address-form.html" %}+ </div><p class="text-right">- <button type="submit" class="btn btn-primary">{% trans "Save changes" %}</button>+ <button type="submit" class="btn primary">{% trans "Save changes" %}</button></p></form></div>diff --git a/templates/userprofile/details.html b/templates/userprofile/details.htmlindex 809aa40680..1338db9703 100644--- a/templates/userprofile/details.html+++ b/templates/userprofile/details.html@@ -1,69 +1,190 @@{% extends "base.html" %}{% load i18n %}+{% load static from staticfiles %}+{% load gross from prices_i18n %}+{% load discount_amount_for from prices %}{% block title %}{% trans "Your profile" %} — {{ block.super }}{% endblock %}{% block breadcrumb %}- {{ block.super }}- <li><a href="{% url 'profile:details' %}">{% trans "Your profile" %}</a></li>+ <ul class="breadcrumbs list-unstyled">+ <li><a href="/">{% trans "Home" %}</a></li>+ <li><a href="{% url 'profile:details' %}">{% trans "Your account" %}</a></li>+ </ul>{% endblock breadcrumb %}{% block content %}- <h2>{% trans "Profile" %}</h2>- <p>- <a href="{% url 'account_change_password' %}" class="btn btn-default">{% trans 'Change your password' %}</a>- </p>--- <h3>{% trans "Your address book" %}</h3>- <table class="table table-striped">- <thead>- <tr>- <th class="col-sm-6">{% trans "Addressee" %}</th>- <th class="col-sm-2">{% trans "Billing" %}</th>- <th class="col-sm-2">{% trans "Shipping" %}</th>- <th class="col-sm-2"></th>- </tr>- </thead>- <tbody>- {% for address in addresses %}- <tr>- <th class="col-sm-6">- {{ address }}- </th>- <td class="col-sm-2">- {% if user.default_billing_address == address %}- <span class="label label-default">{% trans "Default" %}</span>- {% else %}- <form method="post" action="{% url "profile:address-make-default" pk=address.pk purpose="billing" %}" class="form-inline form-horizontal" novalidate>- {% csrf_token %}- <button type="submit" class="btn btn-default btn-sm">{% trans "Make default" %}</button>- </form>- {% endif %}- </td>- <td class="col-sm-2">- {% if user.default_shipping_address == address %}- <span class="label label-default">{% trans "Default" %}</span>- {% else %}- <form method="post" action="{% url "profile:address-make-default" pk=address.pk purpose="shipping" %}" class="form-inline form-horizontal" novalidate>- {% csrf_token %}- <button type="submit" class="btn btn-default btn-sm">{% trans "Make default" %}</button>- </form>- {% endif %}- </td>- <td class="col-sm-2">- <a href="{% url 'profile:address-edit' pk=address.pk %}" class="btn btn-default btn-sm"><i class="glyphicon glyphicon-edit"></i> {% trans "Edit" %}</a>- <a href="{% url 'profile:address-delete' pk=address.pk %}" class="btn btn-danger btn-sm"><i class="glyphicon glyphicon-remove"></i> {% trans "Delete" %}</a>- </td>- </tr>- {% endfor %}- </tbody>- </table>-- <div>- <a href="{% url 'profile:address-create' %}" class="btn btn-default"><i class="glyphicon glyphicon-plus-sign"></i> {% trans "Add new address" %}</a>+ <div class="userprofile">+ <div class="row">+ <div class="col-lg-10 offset-lg-1">+ <h3>{{ user }}</h3>+ <p>+ <a href="{% url 'registration:change_password' %}">{% trans 'Change your password' %}</a>+ <a href="{% url 'registration:request_email_change' %}">{% trans 'Change your email address' %}</a>+ </p>+ </div></div>+ <div class="userprofile__nav row">+ <ul class="nav nav-tabs col-lg-10 offset-lg-1" role="tablist">+ <li class="nav-item">+ <a class="nav-link active" data-toggle="tab" href="#addresses" role="tab"><h3>{% trans "Addresses" %}</h3></a>+ </li>+ <li class="nav-item">+ <a class="nav-link" data-toggle="tab" href="#orders" role="tab"><h3>{% trans "Last orders" %}</h3></a>+ </li>+ </ul>+ </div>+ <div class="row">+ <div class="tab-content col-lg-10 offset-lg-1">+ <div class="tab-pane active" id="addresses" role="tabpanel">+ {% for address in addresses %}+ <div class="row userprofile__address-row">+ <div class="col-xs-5">+ {{ address }}+ </div>+ <div class="col-xs-3 col-md-4">+ <div class="row">+ <div class="col-md-6">+ {% if user.default_billing_address == address %}+ <span class="label label-default">{% trans "Billing" %}</span>+ {% else %}+ <form method="post" action="{% url "profile:address-make-default" pk=address.pk purpose="billing" %}" class="form-inline form-horizontal" novalidate>+ {% csrf_token %}+ <button type="submit" class="btn btn-default btn-sm">{% trans "Billing" %}</button>+ </form>+ {% endif %}+ </div>+ <div class="col-md-6">+ {% if user.default_shipping_address == address %}+ <span class="label label-default">{% trans "Shipping" %}</span>+ {% else %}+ <form method="post" action="{% url "profile:address-make-default" pk=address.pk purpose="shipping" %}" class="form-inline form-horizontal" novalidate>+ {% csrf_token %}+ <button type="submit" class="btn btn-default btn-sm">{% trans "Shipping" %}</button>+ </form>+ {% endif %}+ </div>+ </div>+ </div>+ <div class="col-md-2 col-xs-4">+ <a href="{% url 'profile:address-edit' pk=address.pk %}"><img src="{% static 'img/icon_edit.svg' %}"></a>+ <a href="{% url 'profile:address-delete' pk=address.pk %}"><img src="{% static 'img/icon_delete.svg' %}"></a>+ </div>+ </div>+ {% endfor %}+ <a href="{% url 'profile:address-create' %}" class="btn primary ">{% trans "Add new address" %}</a>+ </div>+ <div class="tab-pane" id="orders" role="tabpanel">+ <div id="accordion" role="tablist" aria-multiselectable="true">+ {% for order in orders %}+ <div class="card userprofile__orders">+ <a data-toggle="collapse" data-parent="#accordion" href="#collapse{{ forloop.counter0 }}" aria-expanded="true" aria-controls="collapse{{ forloop.counter0 }}"{% if forloop.counter0 > 0 %} class="collapsed"{% endif %}>+ <div class="card-header" role="tab" id="head{{ forloop.counter0 }}">+ <div class="row">+ <div class="col-md-2 col-xs-5">+ <strong>{{ order }}</strong>+ </div>+ <div class="col-md-4 col-xs-6">+ {{ order.created }}+ </div>+ <div class="col-md-3 col-xs-5">+ {% gross order.get_total %}+ </div>+ <div class="col-md-2 col-xs-6">+ <span class="label label-default">{{ order.get_status_display }}</span>+ </div>+ <div class="col-md-1 col-xs-1">+ <img class="userprofile__orders__arrow-icon float-xs-right" src="{% static 'img/gallery-arrow.svg' %}">+ </div>+ </div>+ </div>+ </a>+ <div id="collapse{{ forloop.counter0 }}" class="collapse{% if forloop.counter0 == 0 %} in{% endif %} userprofile__orders__details" role="tabpanel" aria-labelledby="head{{ forloop.counter0 }}">+ <div class="card-block">+ <div class="row">+ <div class="col-md-3 col-xs-6">+ <h3>{% trans "Shipping address" %}</h3>+ <address>{% include "userprofile/snippets/address-details.html" with address=order.shipping_address %}</address>+ </div>+ <div class="col-md-3 col-xs-6">+ <h3>{% trans "Billing address" %}</h3>+ <address>{% include "userprofile/snippets/address-details.html" with address=order.billing_address %}</address>+ </div>+ </div>+ <!-- {% for group in groups %}+ <div class="panel panel-default">+ <div class="panel-heading">+ {% blocktrans with number=forloop.counter %}Shipment #{{ number }}{% endblocktrans %}+ <span class="pull-right">+ <span class="label label-default">{{ group.get_status_display }}</span>+ </span>+ </div>+ <table class="table">+ <thead>+ <tr>+ <th class="col-sm-6">{% trans "Name" %}</th>+ <th class="col-sm-3 text-right">{% trans "Price" %}</th>+ <th class="col-sm-3 text-right">{% trans "Subtotal" %}</th>+ </tr>+ </thead>+ <tfoot>+ <tr>+ <th colspan="2">{% trans "Total" %}</th>+ <th class="text-right">{% gross group.get_total %}</th>+ </tr>+ </tfoot>+ <tbody>+ {% for item in group %}+ <tr>+ <td>{{ item.product }}{% if item.quantity != 1 %} <em>×{{ item.quantity }}</em>{% endif %}</td>+ <td class="text-right">{% gross item.get_price_per_item %}</td>+ <td class="text-right">{% gross item.get_total %}</td>+ </tr>+ {% endfor %}+ {% if group.shipping_price.gross %}+ <tr>+ <td class="col-sm-4">+ {% trans "Shipping" %}+ </td>+ <td class="text-right">{% gross group.shipping_price %}</td>+ <td class="text-right">{% gross group.shipping_price %}</td>+ </tr>+ {% endif %}+ </tbody>+ </table>+ </div>+ {% endfor %}+ {% if order.discount_amount %}+ <div class="panel panel-default">+ <div class="panel-heading">+ {{ order.discount_name }}+ </div>+ <div class="panel-body text-right">+ <strong>{% gross order.discount|discount_amount_for:order.total %}</strong>+ </div>+ </div>+ {% endif %}+ {% if order.discount_amount or groups|length > 1 %}+ <div class="panel panel-default">+ <div class="panel-heading">+ {% trans "Total" %}+ </div>+ <div class="panel-body text-right">+ <strong>{% gross order.total %}</strong>+ </div>+ </div>+ {% endif %}+ -->+ </div>+ </div>+ </div>+ {% endfor %}+ </div>+ </div>+ </div>+ </div>+ </div>{% endblock content %}diff --git a/templates/userprofile/snippets/address-form.html b/templates/userprofile/snippets/address-form.htmlindex 92f8fdeee2..fb1ba85155 100644--- a/templates/userprofile/snippets/address-form.html+++ b/templates/userprofile/snippets/address-form.html@@ -6,7 +6,7 @@{% for line in address_form_lines %}<div class="row">{% for field in line %}- <div class="col-sm-4">+ <div class="col-sm-6">{% bootstrap_field field %}</div>{% endfor %}diff --git a/templates/userprofile/snippets/address-short.html b/templates/userprofile/snippets/address-short.htmlindex 823b1b3938..385dadef1a 100644--- a/templates/userprofile/snippets/address-short.html+++ b/templates/userprofile/snippets/address-short.html@@ -7,4 +7,16 @@{{ address.postal_code }} {{ address.city }}<br>{% if address.country_area %}{{ address.country_area }}, {% endif %}{{ address.get_country_display }}<br>{{ address.phone }}"- data-html="true" title="{{ address.first_name }} {{ address.last_name }}">{{ address }}</span>+ data-html="true" title="{{ address.first_name }} {{ address.last_name }}">+ <strong>{{ address }}</strong><br>+ {{ address.street_address_1 }}<br>+ {% if address.street_address_2 %}+ {{ address.street_address_2 }}<br>+ {% endif %}+ {{ address.postal_code }} {{ address.city }}<br>+ {% if address.country_area %}+ {{ address.country_area }},+ {% endif %}+ {{ address.get_country_display }}<br>+ {{ address.phone }}+</span>