Skip to content

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

Delete django templates - first part

IKarbowiakecb964293fdb
diff --git a/templates/404.html b/templates/404.html
deleted file mode 100644
index f94cab80df..0000000000
--- a/templates/404.html
+++ /dev/null
@@ -1,7 +0,0 @@
-{% extends "base.html" %}
-{% load i18n %}
-
-{% block content %}
- <h1 class="text-center mt-5">404</h1>
- <div class="text-center">{% trans 'Page not found' context 'Error page not found' %}</div>
-{% endblock %}
diff --git a/templates/account/account_delete_prompt.html b/templates/account/account_delete_prompt.html
deleted file mode 100644
index 5c8f65fe00..0000000000
--- a/templates/account/account_delete_prompt.html
+++ /dev/null
@@ -1,31 +0,0 @@
-{% extends 'base.html' %}
-
-{% load bootstrap_form from bootstrap4 %}
-{% load static %}
-{% load i18n %}
-{% load placeholder %}
-
-{% block title %}{% trans "Are you sure?" context "Account deletetion confirmation page title" %} — {{ block.super }}{% endblock %}
-
-{% block content %}
-<div class="row account__deleted">
- <div class="col-xl-10 m-auto">
- <img class="lazyload lazypreload"
- data-src="{% static 'images/login-bg.png' %}"
- data-srcset="{% static 'images/login-bg.png' %} 1x, {% static 'images/login-bg2x.png' %} 2x">
- <h1>{% trans "Sorry to see you go!" context "Message displayed to the user requesting for his account deletetion" %}</h1>
-
- <form method="POST">
- {% csrf_token %}
-
- <p>
- {% blocktrans trimmed context "Message displayed to the user requesting for his account deletetion" %}
- Are you sure you want to delete your account?
- {% endblocktrans %}
- </p>
-
- <button type="submit" class="btn btn-outline-danger btn-lg">{% trans 'Delete account' context 'Confirm account deletion button' %}</button>
- </form>
- </div>
-</div>
-{% endblock %}
diff --git a/templates/account/address_delete.html b/templates/account/address_delete.html
deleted file mode 100644
index 9a82cc6e86..0000000000
--- a/templates/account/address_delete.html
+++ /dev/null
@@ -1,12 +0,0 @@
-{% load i18n %}
-<div class="address-delete none">
- <form method="post" novalidate action="{% url 'account:address-delete' pk=address.pk %}">
- {% csrf_token %}
- <button type="submit" class="btn danger narrow float-right">
- {% trans "Remove Address" context "Remove address form action" %}
- </button>
- <a class="btn btn-link cancel float-md-right">
- {% trans "Cancel" context "Remove address form action" %}
- </a>
- </form>
-</div>
diff --git a/templates/account/address_edit.html b/templates/account/address_edit.html
deleted file mode 100644
index e84300a6dd..0000000000
--- a/templates/account/address_edit.html
+++ /dev/null
@@ -1,63 +0,0 @@
-{% extends "base.html" %}
-
-{% load i18n %}
-
-{% block title %}
- {% if address_form.instance.pk %}
- {% trans "Edit address" context "Edit address page title" %}
- {% else %}
- {% trans "New address" context "New address page title" %}
- {% endif %} — {{ block.super }}{% endblock %}
-
-{% block breadcrumb %}
- <ul class="breadcrumbs list-unstyled">
- <li>
- <a href="{% url 'home' %}">
- {% trans "Home" context "Main navigation item" %}
- </a>
- </li>
- <li>
- <a href="{% url "account:details" %}">
- {% trans "Your profile" context "Edit/new address breadcrumb" %}
- </a>
- </li>
- {% if address_form.instance.pk %}
- <li>
- <a href=".">
- {% trans "Edit address" context "Edit address breadcrumb" %}
- </a>
- </li>
- {% else %}
- <li>
- <a href=".">
- {% trans "New address" context "New address breadcrumb" %}
- </a>
- </li>
- {% endif %}
- </ul>
-{% endblock breadcrumb %}
-
-{% block content %}
- <div class="row account__address-edit">
- <div class="col-sm-8 col-lg-6 m-auto">
- <form method="post" novalidate>
- {% csrf_token %}
- <h2 class="text-center">
- {% if address_form.instance.pk %}
- {% trans "Edit address" context "Edit address title" %}
- {% else %}
- {% trans "New address" context "New address title" %}
- {% endif %}
- </h2>
- <div class="account__address-edit__form">
- {% include "account/snippets/address_form.html" %}
- </div>
- <p class="text-right">
- <button type="submit" class="btn btn-primary narrow">
- {% trans "Save changes" context "Edit/new address primary action" %}
- </button>
- </p>
- </form>
- </div>
- </div>
-{% endblock content %}
diff --git a/templates/account/details.html b/templates/account/details.html
deleted file mode 100644
index 73587026a1..0000000000
--- a/templates/account/details.html
+++ /dev/null
@@ -1,192 +0,0 @@
-{% extends "base.html" %}
-{% load bootstrap_form from bootstrap4 %}
-{% load bootstrap_pagination from bootstrap4 %}
-{% load i18n %}
-{% load i18n_address_tags %}
-{% load price from taxed_prices %}
-{% load static %}
-{% load status %}
-
-{% block title %}{% trans "Your profile" context "User profile page title" %} — {{ block.super }}{% endblock %}
-
-{% block breadcrumb %}
- <ul class="breadcrumbs list-unstyled">
- <li>
- <a href="{% url 'home' %}">
- {% trans "Home" context "Main navigation item" %}
- </a>
- </li>
- <li>{% trans "Your account" context "Main navigation item" %} (<b>{{ user }}</b>)</li>
- </ul>
-{% endblock breadcrumb %}
-
-{% block content %}
- <div class="account">
- <div class="account__nav container">
- <h2>{% trans "My account" %}</h2>
- <ul class="nav nav-tabs col-lg-11 m-auto" role="tablist">
- <li class="nav-item">
- <a class="nav-link active" data-toggle="tab" href="#orders" role="tab">
- <h3>{% trans "Recent Orders" context "User profile tab" %}</h3>
- </a>
- </li>
- {% if user.password %}
- <li class="nav-item">
- <a class="nav-link " data-toggle="tab" href="#password" role="tab">
- <h3>{% trans "Change password" context "User profile tab" %}</h3>
- </a>
- </li>
- {% endif %}
- <li class="nav-item">
- <a class="nav-link" data-toggle="tab" href="#addresses" role="tab">
- <h3>{% trans "Contact details" context "User profile tab" %}</h3>
- </a>
- </li>
- <li class="nav-item">
- <a class="nav-link" data-toggle="tab" href="#settings" role="tab">
- <h3>{% trans "Settings" context "User profile tab" %}</h3>
- </a>
- </li>
- </ul>
- </div>
- <div class="tab-content col-lg-11 m-auto">
- <div class="tab-pane active fade show" id="orders" role="tabpanel">
- <div id="accordion" role="tablist" aria-multiselectable="true">
- {% if orders|length %}
- <div class="table__header">
- <div class="row">
- <div class="col-md-2 col-4">
- <small>{% trans "Order" context "Recent orders column title" %}</small>
- </div>
- <div class="col-md-3 d-none d-md-block">
- <small>{% trans "Date" context "Recent orders column title" %}</small>
- </div>
- <div class="col-md-2 col-6">
- <small>{% trans "Summary" context "Recent orders column title" %}</small>
- </div>
- <div class="col-md-2 d-none d-md-block">
- <small>{% trans "Payment status" context "Recent orders column title" %}</small>
- </div>
- <div class="col-md-2 d-none d-md-block">
- <small>{% trans "Order status" context "Recent orders column title" %}</small>
- </div>
- <div class="col-md-1 col-2"></div>
- </div>
- </div>
- {% for order in orders %}
- <div class="table__row">
- <div class="row">
- <div class="col-md-2 col-4">
- {{ order }}
- </div>
- <div class="col-md-3 d-none d-md-block">
- {{ order.created }}
- </div>
- <div class="col-md-2 col-6">
- {% price order.total.gross %}
- </div>
- <div class="col-md-2 d-none d-md-block">
- {% render_status order.get_payment_status order.get_payment_status_display %}
- </div>
- <div class="col-md-2 d-none d-md-block">
- {% render_order_status order.status order.get_status_display %}
- </div>
- <div class="col-md-1 col-2">
- <a href="{{ order.get_absolute_url }}" class="float-right link--styled">
- {% trans "Details" context "Recent orders link text" %}
- </a>
- </div>
- </div>
- </div>
- {% endfor %}
- <div class="row mt-4">
- <div class="m-auto">
- {% if orders.has_other_pages %}
- {% bootstrap_pagination orders extra=request.GET.urlencode %}
- {% endif %}
- </div>
- </div>
- {% else %}
- <h3 class="text-sm-center account__orders-empty">
- {% trans "There are not any completed orders yet." context "No recent orders text" %}
- </h3>
- {% endif %}
- </div>
- </div>
- <div class="tab-pane fade" id="password" role="tabpanel">
- <div class="row ">
- <div class="col-md-8 col-lg-6 m-auto account__password">
- <form action="" method="post">
- {% csrf_token %}
- {% bootstrap_form change_password_form %}
- <input type="submit" class="btn btn-primary narrow" value="{% trans "Change password" context "User profile action" %}">
- </form>
- </div>
- </div>
- </div>
- <div class="tab-pane fade" id="addresses" role="tabpanel">
- <h3 class="text-sm-center">
- {% trans "Personal Data" context "User profile settings" %}
- </h3>
- <div class="row">
- <div class="col-md-6">
- <form action="" method="post">
- {% csrf_token %}
- {% bootstrap_form user_name_form %}
- <input type="submit" class="btn btn-primary narrow" value="{% trans "Update" context "User profile action" %}">
- </form>
- </div>
- </div>
- <h3 class="text-sm-center">
- {% trans "Addresses" context "List of adresses in contact details" %}
- </h3>
- <div class="card-deck-wrapper account__addresses">
- <div class="row card-deck">
- {% for address in addresses %}
- <div class="col-md-6">
- <div class="card card-block">
- {% format_address address %}
- <ul class="icons">
- <li>
- <a href="{% url "account:address-edit" pk=address.pk %}">
- {% trans "Edit" context "User address action" %}
- </a>
- </li>
- <li>
- <a class="delete-icon">
- <svg data-src="{% static "images/delete.svg" %}" height="20px" width="20px" />
- </a>
- </li>
- </ul>
- {% include "account/address_delete.html" with pk=address.pk %}
- </div>
- </div>
- {% endfor %}
- </div>
- {% if addresses|length == 0 %}
- <h3 class="text-sm-center">
- {% trans "You will see new addresses here after first successful checkout." context "No addresses text" %}
- </h3>
- {% endif %}
- </div>
- </div>
- <div class="tab-pane fade" id="settings" role="tabpanel">
- <div class="row ">
- <div class="d-block mx-auto text-center">
- <form action="{% url 'account:delete' %}" method="post">
- {% csrf_token %}
- <p>
- {% blocktrans context "Message informing about the process of account removal" %}
- If you'd like to remove your account, please click on the button below and a confirmation email will be sent to you.
- {% endblocktrans %}
- </p>
- <button type="submit" class="btn danger narrow text-center">
- {% trans "Remove Account" context "Remove account form action" %}
- </button>
- </form>
- </div>
- </div>
- </div>
- </div>
- </div>
-{% endblock content %}
diff --git a/templates/account/login.html b/templates/account/login.html
deleted file mode 100644
index b762aa6b3c..0000000000
--- a/templates/account/login.html
+++ /dev/null
@@ -1,31 +0,0 @@
-{% extends "base.html" %}
-{% load static %}
-{% load i18n %}
-
-{% block title %}{% trans "Log in" context "Login page title" %} — {{ block.super }}{% endblock %}
-
-{% block meta_tags %}
- <meta name="robots" content="nofollow">
-{% endblock meta_tags %}
-
-{% block content %}
- <div class="col-lg-10 col-sm-12 m-auto">
- <div class="row login">
- <div class="col-md-6 login__register">
- <div class="login__register-link">
- <h3>{% trans "Don't have an account yet?" context "Login form secondary title" %}</h3>
- <img class="lazyload lazypreload"
- data-src="{% static 'images/login-bg.png' %}"
- data-srcset="{% static 'images/login-bg.png' %} 1x, {% static 'images/login-bg2x.png' %} 2x">
- <a rel="nofollow" href="{% url 'account:signup' %}" class="btn secondary narrow">
- {% trans "Register" context "Login form secondary action" %}
- </a>
- </div>
- </div>
- <div class="col-md-6 login__form">
- <h3>{% trans "Log in" context "Login form title" %}</h3>
- {% include "account/partials/login_form.html" %}
- </div>
- </div>
- </div>
-{% endblock %}
diff --git a/templates/account/partials/already_logged_in.html b/templates/account/partials/already_logged_in.html
deleted file mode 100644
index 1cad8ce5b8..0000000000
--- a/templates/account/partials/already_logged_in.html
+++ /dev/null
@@ -1,9 +0,0 @@
-{% load i18n %}
-
-<div class="alert alert-warning" role="alert">
- <p>
- {% blocktrans trimmed context "Already logged in warning message" %}
- You are already logged in as {{ user }}.
- {% endblocktrans %}
- </p>
-</div>
diff --git a/templates/account/partials/login_form.html b/templates/account/partials/login_form.html
deleted file mode 100644
index 2e51a6e77c..0000000000
--- a/templates/account/partials/login_form.html
+++ /dev/null
@@ -1,46 +0,0 @@
-{% load bootstrap_form from bootstrap4 %}
-{% load i18n %}
-{% load static %}
-
-<form method="post" action="{% url 'account:login' %}" novalidate>
- {% csrf_token %}
- <fieldset>
- {% bootstrap_form form %}
- {% if REDIRECT_FIELD_VALUE %}
- <input type="hidden" name="{{ REDIRECT_FIELD_NAME }}" value="{{ REDIRECT_FIELD_VALUE }}"/>
- {% endif %}
- </fieldset>
- <div class="row login__btn-group">
- <div class="col-sm-12">
- <button class="btn btn-primary narrow">
- {% trans "Log in" context "Login form primary action" %}
- </button>
- <a rel="nofollow" class="link--styled" href="{% url 'account:reset-password' %}">
- {% trans "Forgot password?" context "Login form secondary link" %}
- </a>
- {% with available_backends=site.settings.available_backends %}
- {% if available_backends %}
- <hr>
- <div class="row">
- <div class="col-sm-6 col-md-12 col-xl-6">
- {% if 'facebook' in backends.backends and 'facebook' in available_backends %}
- <a class="btn social-btn facebook" href="{% url 'social:begin' 'facebook' %}">
- <svg data-src="{% static "images/facebook-logo.svg" %}" width="18" height="18"/>
- <small>{% trans 'Facebook' %}</small>
- </a>
- {% endif %}
- </div>
- <div class="col-sm-6 col-md-12 col-xl-6">
- {% if 'google-oauth2' in backends.backends and 'google-oauth2' in available_backends %}
- <a class="btn social-btn google" href="{% url 'social:begin' 'google-oauth2' %}">
- <svg data-src="{% static "images/google-logo.svg" %}" width="18" height="18"/>
- <small>{% trans 'Google' %}</small>
- </a>
- {% endif %}
- </div>
- </div>
- {% endif %}
- {% endwith %}
- </div>
- </div>
-</form>
diff --git a/templates/account/password_change.html b/templates/account/password_change.html
deleted file mode 100644
index 2b762e7717..0000000000
--- a/templates/account/password_change.html
+++ /dev/null
@@ -1,35 +0,0 @@
-{% extends "base.html" %}
-{% load i18n %}
-{% load bootstrap_form from bootstrap4 %}
-
-{% block breadcrumb %}
- <ul class="breadcrumbs list-unstyled">
- <li><a href="{% url 'home' %}">{% trans "Home" context "Main navigation item" %}</a></li>
- <li><a href="{% url 'account:details' %}">{% trans "Your account" context "Main navigation item" %}</a></li>
- <li><a href="{% url 'home' %}">{% trans "Edit" context "Password change breadcrumb" %}</a></li>
- </ul>
-{% endblock breadcrumb %}
-
-{% block content %}
- <div class="row account-edit">
- <div class="col-sm-4 m-auto">
- <div class="panel panel-default">
- <div class="panel-body">
- <form method="post" novalidate>
- {% csrf_token %}
- <fieldset>
- <legend class="text-xs-center account-edit__tittle">
- {% trans "Change Password" context "Password change form legend" %}
- </legend>
- {% bootstrap_form form %}
- <input type="hidden" name="next" value="{{ next }}" />
- </fieldset>
- <button class="btn btn-primary">
- {% trans "Save new password" context "Password change form primary action" %}
- </button>
- </form>
- </div>
- </div>
- </div>
- </div>
-{% endblock %}
diff --git a/templates/account/password_reset_base.html b/templates/account/password_reset_base.html
deleted file mode 100644
index 2c9f7d8a4f..0000000000
--- a/templates/account/password_reset_base.html
+++ /dev/null
@@ -1,11 +0,0 @@
-{% extends "base.html" %}
-{% load i18n %}
-{% load bootstrap_form from bootstrap4 %}
-
-{% block content %}
- <div class="row login__forgot-password">
- <div class="col-md-8 m-auto text-center">
- {% block form %}{% endblock form %}
- </div>
- </div>
-{% endblock %}
diff --git a/templates/account/password_reset_done.html b/templates/account/password_reset_done.html
deleted file mode 100644
index cffcc292de..0000000000
--- a/templates/account/password_reset_done.html
+++ /dev/null
@@ -1,22 +0,0 @@
-{% extends "account/password_reset_base.html" %}
-
-{% load i18n %}
-{% load static %}
-
-{% block title %}{% trans "Password Reset" context "Password reset done page title" %}{% endblock %}
-
-{% block form %}
- <div class="login__forgot-password">
- <h2>{% trans "Password Reset" context "Password reset done title" %}</h2>
- {% if user.is_authenticated %}
- {% include "account/partials/already_logged_in.html" %}
- {% endif %}
- <p>{% blocktrans trimmed context "Password reset done text" %}
- We have sent you an e-mail.
- Please contact us if you do not receive it within a few minutes.
- {% endblocktrans %}</p>
- <div class="row login__btn-group">
- <img class="lazyload lazypreload" data-src="{% static "images/reset-bg.png" %}" />
- </div>
- </div>
-{% endblock %}
diff --git a/templates/account/password_reset_from_key.html b/templates/account/password_reset_from_key.html
deleted file mode 100644
index 5049d4969b..0000000000
--- a/templates/account/password_reset_from_key.html
+++ /dev/null
@@ -1,46 +0,0 @@
-{% extends "account/password_reset_base.html" %}
-
-{% load i18n %}
-{% load bootstrap_form from bootstrap4 %}
-{% load static %}
-{% block head_title %}{% trans "Change Password" context "Password reset from key page title" %}{% endblock %}
-
-{% block form %}
- {% if token_fail %}
- <div class="col-sm-12">
- <h2>{% trans "Bad Token" %}</h2>
- {% url 'account:reset-password' as passwd_reset_url %}
- <p>{% blocktrans trimmed context "Password reset text if key is invalid" %}
- The password reset link was invalid, possibly
- because it has already been used.<br>
- Please request a
- <a href="{{ passwd_reset_url }}">new password reset</a>.{% endblocktrans %}
- </p>
- </div>
- {% else %}
- {% if form %}
- <form method="post" novalidate>
- {% csrf_token %}
- <h2>{% trans "Password Reset" context "Password reset from key form title" %}</h2>
- <p>{% trans "Now you can set new password for you account." context "Password reset from key form title" %}</p>
- <fieldset>
- {% bootstrap_form form %}
- </fieldset>
- <div class="row login__btn-group">
- <div class="col-sm-12">
- <button class="btn btn-primary narrow">
- {% trans "Continue" context "Password reset from key form primary action" %}
- </button>
- <img class="lazyload lazypreload" data-src="{% static "images/reset-bg.png" %}" />
- </div>
- </div>
- </form>
- {% else %}
- <h2>{% trans "Password Reset Link Expired" context "Password reset link expired from key form title" %}</h2>
- <p>{% trans "Sorry but this link is no longer valid. If you forget your password, please use link below." context "Password reset from key form title" %}</p>
- <a href="{% url 'account:reset-password' %}">
- {% trans "Reset my password" context "Reset my password link" %}
- </a>
- {% endif %}
- {% endif %}
-{% endblock %}
diff --git a/templates/account/password_reset_from_key_done.html b/templates/account/password_reset_from_key_done.html
deleted file mode 100644
index d01cf71870..0000000000
--- a/templates/account/password_reset_from_key_done.html
+++ /dev/null
@@ -1,12 +0,0 @@
-{% extends "account/password_reset_base.html" %}
-
-{% load i18n %}
-{% block title %}{% trans "Password Changed" context "Password reset from key done page title" %}{% endblock %}
-
-{% block form %}
- <h2>{% trans "Password Changed" context "Password reset from key done title" %}</h2>
- {% url "account:login" as login_url %}
- <p>{% trans 'Your password is now changed.' %}
- {% blocktrans trimmed with login_url=login_url context "Password reset from key done text" %}
- You can now <a href="{{ login_url }}">sign in</a> using your new password{% endblocktrans %}</p>
-{% endblock %}
diff --git a/templates/account/signup.html b/templates/account/signup.html
deleted file mode 100644
index 44bf1571b4..0000000000
--- a/templates/account/signup.html
+++ /dev/null
@@ -1,42 +0,0 @@
-{% extends "base.html" %}
-{% load bootstrap_form from bootstrap4 %}
-{% load static %}
-{% load i18n %}
-
-{% block title %}{% trans "Sign Up" context "Signup page title" %} — {{ block.super }}{% endblock %}
-
-{% block meta_tags %}
- <meta name="robots" content="nofollow">
-{% endblock meta_tags %}
-
-{% block content %}
- <div class="col-lg-10 col-sm-12 m-auto">
- <div class="row login">
- <div class="col-md-6 login__register">
- <div class="login__register-link">
- <h3>{% trans "Already have an account?" context "Signup form secondary title" %}</h3>
- <img class="signup-img lazyload lazypreload" data-src="{% static 'images/login-bg.png' %}"
- srcset="{% static 'images/login-bg.png' %} 1x, {% static 'images/login-bg2x.png' %} 2x">
- <p><a rel="nofollow" href="{% url 'account:login' %}" class="btn secondary narrow">
- {% trans "Log in" context "Signup form secondary action" %}
- </a></p>
- </div>
- </div>
- <div class="col-md-6 login__form">
- <form method="post" action="{% url 'account:signup' %}">
- <fieldset>
- <h3>{% trans "Create an account" context "Signup form title" %}</h3>
- {% csrf_token %}
- {% bootstrap_form form %}
- {% if REDIRECT_FIELD_VALUE %}
- <input type="hidden" name="{{ REDIRECT_FIELD_NAME }}" value="{{ REDIRECT_FIELD_VALUE }}"/>
- {% endif %}
- </fieldset>
- <button type="submit" class="btn btn-primary narrow">
- {% trans "Create an account" context "Signup form primary action" %}
- </button>
- </form>
- </div>
- </div>
- </div>
-{% endblock %}
diff --git a/templates/account/snippets/address_form.html b/templates/account/snippets/address_form.html
deleted file mode 100644
index 334d1ff50b..0000000000
--- a/templates/account/snippets/address_form.html
+++ /dev/null
@@ -1,22 +0,0 @@
-{% load bootstrap_field from bootstrap4 %}
-<div class="i18n-address">
- {% 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-6 checkout__{{ field.name }}" >
- {% bootstrap_field field %}
- </div>
- {% endfor %}
- </div>
- {% endfor %}
- {% endif %}
- {% endwith %}
- {% for field in address_form.hidden_fields %}
- {{ field }}
- {% endfor %}
- {% bootstrap_field address_form.country %}
- {% bootstrap_field address_form.phone %}
- <input type="hidden" class="preview" name="preview">
-</div>
diff --git a/templates/base.html b/templates/base.html
index 8c67dc9175..a8be522794 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -6,7 +6,7 @@
{% load static %}
{% load translate_url from urls %}
-<html lang="{{ LANGUAGE_CODE }}" class="no-js" data-shipping-options-url="{% url 'checkout:shipping-options' %}" data-checkout-summary-url="{% url 'checkout:dropdown' %}">
+<html lang="{{ LANGUAGE_CODE }}" class="no-js">
<head>
<title>{% block title %}{{ site.name }}{% endblock %}</title>
{% block meta %}
@@ -71,34 +71,6 @@
</div>
</li>
{% endif %}
- {% if user.is_authenticated %}
- <li>
- <a href="{% url "account:details" %}">
- {% trans "Your account" context "Main navigation item" %}</a>
- </li>
- {% if user.is_impersonate %}
- <li>
- <a href="{% url "impersonate-stop" %}">
- {% trans 'Stop impersonating' context 'Main navigation item' %}
- </a>
- </li>
- {% else %}
- <li>
- <a href="{% url "account:logout" %}">
- {% trans "Log out" context "Main navigation item" %}</a>
- </li>
- {% endif %}
- {% else %}
- <li>
- <a rel="nofollow" href="{% url "account:signup" %}">
- {% trans "Register" context "Main navigation item" %}</a>
- </li>
- <li>
- <a rel="nofollow" href="{% url "account:login" %}">
- {% trans "Log in" context "Main navigation item" %}
- </a>
- </li>
- {% endif %}
</ul>
</div>
</div>
@@ -115,26 +87,6 @@
<svg data-src="{% static "images/logo-light.svg" %}"/>
</a>
</div>
- <div class="col-2 col-md-5 navbar__search static">
- {% if SEARCH_IS_ENABLED %}
- <div class="d-md-none mobile-search-icon">
- <svg data-src="{% static "images/search.svg" %}" width="30" height="30"/>
- </div>
- <form class="form-inline search-form" action="{% url "search:search" %}">
- <div class="mobile-close-search d-md-none">
- <svg data-src="{% static "images/close.svg" %}" width="30" height="30"/>
- </div>
- <input class="form-control" type="text" name="q"
- value="{% if query %}{{ query }}{% endif %}"
- placeholder="{% trans "Search for product" %}"
- autocomplete="off"
- required>
- <button class="btn btn-primary" type="submit">
- {% trans "Search" %} <svg data-src="{% static "images/search.svg" %}" width="18" height="18"/>
- </button>
- </form>
- {% endif %}
- </div>
<div class="col-2 col-md-3">
<div class="navbar__brand__checkout float-right">
<a rel="nofollow" class="checkout__icon" href="{% url "checkout:index" %}">
@@ -202,43 +154,6 @@
{% trans "Your cart" context "Main navigation item" %}
</a>
</li>
- {% if user.is_authenticated %}
- {% if user.is_staff %}
- <li>
- <a href="{% url "styleguide" %}" target="_blank">
- {% trans "Style guide" context "Main navigation item" %}
- </a>
- </li>
- {% endif %}
- <li>
- <a href="{% url "account:details" %}">
- {% trans "Your account" context "Main navigation item" %}
- </a>
- </li>
- {% if user.is_impersonate %}
- <li>
- <a href="{% url "impersonate-stop" %}">
- {% trans 'Stop impersonating' context 'Main navigation item' %}
- </a>
- </li>
- {% else %}
- <li>
- <a href="{% url "account:logout" %}">
- {% trans "Log out" context "Main navigation item" %}</a>
- </li>
- {% endif %}
- {% else %}
- <li>
- <a rel="nofollow" href="{% url "account:signup" %}">
- {% trans "Register" context "Main navigation item" %}
- </a>
- </li>
- <li>
- <a rel="nofollow" href="{% url "account:login" %}">
- {% trans "Log in" context "Main navigation item" %}
- </a>
- </li>
- {% endif %}
</ul>
</div>
<div class="offset-md-2 col-md-4 col-12">
diff --git a/templates/category/filters.html b/templates/category/filters.html
deleted file mode 100644
index 5dc033b732..0000000000
--- a/templates/category/filters.html
+++ /dev/null
@@ -1,17 +0,0 @@
-{% extends "product/_filters.html" %}
-
-{% block title_tree %}
- {% with children=category.get_children %}
- {% if children %}
- <div class="product-filters__categories">
- <ul class="product-filters__categories__childs no-parent">
- {% for child in children %}
- <li>
- <a href="{{ child.get_absolute_url }}">{{ child.translated.name }}</a>
- </li>
- {% endfor %}
- </ul>
- </div>
- {% endif %}
- {% endwith %}
-{% endblock title_tree %}
diff --git a/templates/category/index.html b/templates/category/index.html
deleted file mode 100644
index 5a3b79da19..0000000000
--- a/templates/category/index.html
+++ /dev/null
@@ -1,18 +0,0 @@
-{% extends "product/product_list_base.html" %}
-{% load i18n %}
-{% load static %}
-
-{% block breadcrumb_part %}
- <li>
- <a href="{% url 'home' %}">{% trans "Home" context 'Category breadcrumbs home' %}</a>
- </li>
- {% for ancestor in object.get_ancestors %}
- <li><a href='{{ ancestor.get_absolute_url }}'>{{ ancestor.translated.name }}</a>
- </li>
- {% endfor %}
- <li><a href='{{ object.get_absolute_url }}'>{{ object.translated.name }}</a></li>
-{% endblock %}
-
-{% block filters %}
- {% include "category/filters.html" with category=object %}
-{% endblock filters %}
diff --git a/templates/checkout/_subtotal_table.html b/templates/checkout/_subtotal_table.html
deleted file mode 100644
index 7f90cb1a61..0000000000
--- a/templates/checkout/_subtotal_table.html
+++ /dev/null
@@ -1,76 +0,0 @@
-{% load i18n %}
-{% load taxed_prices %}
-
-{% if shipping_required %}
- <div class="table__row">
- <div class="row">
- <div class="col-8 checkout-preview__total__subtotal">
- <h3>{% trans "Subtotal" context "Order subtotal" %}</h3>
- </div>
- <div class="col-4">
- <h3 class="text-right checkout-preview-subtotal" data-value="{% price checkout_subtotal.gross html=False %}" {% if local_checkout_subtotal is not None %}data-value-local="{% price local_checkout_subtotal.gross html=False %}"{% endif %}>
- {% spaceless %}
- {% price checkout_subtotal %}
- {% if local_checkout_subtotal is not None and local_checkout_subtotal.gross %}
- <br>
- <small>
- &asymp;
- {% price local_checkout_subtotal %}
- </small>
- {% endif %}
- {% endspaceless %}
- </h3>
- </div>
- </div>
- </div>
- {% if country_form.country.field.choices %}
- <div class="last table__row checkout-preview__delivery-info">
- <div class="row">
- <div class="col-7 checkout-preview__total__subtotal deliveryform" data-csrf="{{ csrf_token }}">
- <div class="row">
- <div class="col-12 col-md-4">
- <p>{% trans "Shipping cost for:" context "Checkout shipping cost form" %}</p>
- </div>
- <div class="col-12 col-md-8">
- {{ country_form.country }}
- </div>
- </div>
- </div>
- <div class="col-5">
- <div class="row">
- <div class="col-md-12 col-12 text-right">
- <p class="checkout-preview__delivery-info__price">
- {% if shipping_price_range %}
- {% price_range shipping_price_range %}
- {% endif %}
- </p>
- </div>
- </div>
- </div>
- </div>
- </div>
- {% endif %}
-{% endif %}
-<div class="checkout-preview__total">
- <div class="row">
- <div class="col-8 checkout-preview__total__subtotal">
- <h3>{% trans "Total" context "Order subtotal" %}</h3>
- <small>{% trans "Shipment and taxes calculated at checkout" context "Checkout summary text" %}</small>
- </div>
- <div class="col-4">
- {% spaceless %}
- {% if total_with_shipping %}
- <h3 class="text-right checkout-total"><span>{% price_range total_with_shipping %}</span>
- {% if local_total_with_shipping %}
- <br>
- <small>
- &asymp;
- {% price_range local_total_with_shipping %}
- </small>
- {% endif %}
- </h3>
- {% endif %}
- {% endspaceless %}
- </div>
- </div>
-</div>
diff --git a/templates/checkout/details.html b/templates/checkout/details.html
deleted file mode 100644
index 1eef9c4e60..0000000000
--- a/templates/checkout/details.html
+++ /dev/null
@@ -1,104 +0,0 @@
-{% extends "base.html" %}
-
-{% load i18n %}
-{% load price from taxed_prices %}
-{% load static %}
-
-{% block title %}{% trans "Checkout" context "Checkout page title" %} — {{ block.super }}{% endblock %}
-
-{% block header %}
- <div class="container-fluid navbar__login">
- <div class="container">
- <p>{% trans "Easy and secure!" context "Checkout top message" %}</p>
- </div>
- </div>
- <header class="checkout__header">
- <div class="container">
- <a href="{% url 'home'%}">
- <svg data-src="{% static "images/logo-light.svg" %}" height="48px" width="176px" />
- </a>
- <h1>{% trans "Checkout" context "Checkout title" %}</h1>
- </div>
- </header>
-{% endblock %}
-
-{% block footer %}
-{% endblock %}
-
-{% block content %}
- <div class="row checkout">
- <div class="col-md-7">
- {% block forms %}{% endblock %}
- </div>
- <div class="col-md-5">
- <div class="checkout__review">
- <h3 class="checkout__review__tittle">{% trans "Order review" context "Order review title" %}</h3>
- {% for line, line_total in checkout_lines %}
- <div class="row">
- <div class="col-8">
- <p><strong>{{ line.variant.product.translated }}</strong> x {{ line.quantity }}<br>
- <span class="checkout__review__variant">{{ line.variant.translated }}</span></p>
- </div>
- <div class="col-4">
- <p class="float-right">
- {% price line_total %}
- </p>
- </div>
- </div>
- {% endfor %}
- <div class="row checkout__review__section">
- <div class="col-8">
- <p>{% trans "Subtotal" context "Order review section" %}</p>
- </div>
- <div class="col-4">
- <p class="float-right">
- {% price checkout_subtotal %}
- </p>
- </div>
- </div>
- <div class="row checkout__review__section">
- <div class="col-8">
- <p>{% trans "Shipment" context "Order review section" %}</p>
- </div>
- <div class="col-4">
- <p class="float-right">
- {% if checkout.shipping_method %}
- {% price checkout_shipping_price %}
- {% else %}
- &mdash;
- {% endif %}
- </p>
- </div>
- </div>
- {% if checkout_are_taxes_handled %}
- <div class="row checkout__review__section">
- <div class="col-8">
- {% if site.settings.display_gross_prices %}
- <p>{% trans "Taxes (included)" context "Order review section title" %}</p>
- {% else %}
- <p>{% trans "Taxes" context "Order review section title" %}</p>
- {% endif %}
- </div>
- <div class="col-4">
- <p class="float-right">{% price checkout_total.tax %}</p>
- </div>
- </div>
- {% endif %}
- <div class="row checkout__review__section">
- <div class="col-12">
- <h3>{% trans "Promo code" context "Order review section title" %}</h3>
- {% include "checkout/snippets/voucher_form.html" with checkout=checkout form=voucher_form %}
- </div>
- </div>
- <div class="row checkout__review__section">
- <div class="col-8">
- <h3>{% trans "Total" context "Order review section title" %}</h3>
- </div>
- <div class="col-4">
- <h3 class="float-right">{% price checkout_total.gross %}</h3>
- </div>
- </div>
- </div>
- </div>
- </div>
-{% endblock content %}
diff --git a/templates/checkout/index.html b/templates/checkout/index.html
deleted file mode 100644
index 3bfa7b4d2a..0000000000
--- a/templates/checkout/index.html
+++ /dev/null
@@ -1,96 +0,0 @@
-{% extends "base.html" %}
-{% load i18n %}
-{% load get_product_image_thumbnail from product_images %}
-{% load price from taxed_prices %}
-{% load static %}
-
-{% block title %}{% trans "Your cart" context "Checkout page title" %} — {{ block.super }}{% endblock %}
-
-{% block breadcrumb %}
- <ul class="breadcrumbs list-unstyled">
- <li><a href="{% url 'home' %}">{% trans "Home" context "Main navigation item" %}</a></li>
- <li><a rel="nofollow" href="{% url 'checkout:index' %}">{% trans "Cart" context "Checkout breadcrumb" %}</a></li>
- </ul>
-{% endblock breadcrumb %}
-
-{% block meta_tags %}
- <meta name="robots" content="nofollow">
-{% endblock meta_tags %}
-
-{% block content %}
- <div class="alert alert-success remove-product-alert d-none">
- {% trans "Product has been removed from checkout" context "Checkout message" %}
- <button type="button" class="close close-msg" aria-hidden="true">&times;</button>
- </div>
- <div class="checkout-preview">
- {% if checkout_lines %}
- <div class="table__header d-none d-md-block">
- <div class="row">
- <div class="col-md-7">
- <small>{% trans "Product" context "Checkout table header" %}</small>
- </div>
- <div class="col-md-3">
- <small>{% trans "Quantity" context "Checkout table header" %}</small>
- </div>
- <div class="col-md-2 text-right">
- <small>{% trans "Price" context "Checkout table header" %}</small>
- </div>
- </div>
- </div>
- {% for line in checkout_lines %}
- <div class="checkout-preview__line{% if forloop.last %} last{% endif %} table__row">
- <div class="row">
- <div class="col-7 checkout-preview__line__product">
- <a class="link--clean" href="{{ line.variant.get_absolute_url }}">
- <img class="lazyload lazypreload" data-src="{% get_product_image_thumbnail line.variant.get_first_image method="thumbnail" size=60 %}"
- data-srcset="{% get_product_image_thumbnail line.variant.get_first_image method="thumbnail" size=60 %} 1x, {% get_product_image_thumbnail line.variant.get_first_image method="thumbnail" size=120 %} 2x"
- alt="">
- <p>{{ line.variant.product.translated }}<br><small>{{ line.variant.translated }}</small></p>
- </a>
- </div>
- <div class="col-5">
- <div class="row">
- <div class="checkout-preview__line__quantity col-md-7 col-12">
- <form role="form" action="{% url "checkout:update-line" variant_id=line.variant.pk %}" method="post" class="form-checkout">
- <div class="{% if form.quantity.errors %} has-error{% endif %}" tabindex="-1">
- {{ line.form.quantity }}
- </div>
- {% csrf_token %}
- </form>
- <span class="checkout-preview-item-delete">
- <svg data-src="{% static "images/delete.svg" %}" height="20px" width="20px" />
- </span>
- <small class="checkout-preview__line__quantity-error text-danger"></small>
- </div>
- <div class="checkout-preview-item-price col-md-5 col-12" data-product-id="{{ line.variant.pk }}">
- <p class="text-right">
- {% price line.get_total %}
- </p>
- </div>
- </div>
- </div>
- </div>
- </div>
- {% endfor %}
- <div class="checkout__subtotal">
- {% include 'checkout/_subtotal_table.html' %}
- </div>
- <div class="row">
- <div class="col-md-12">
- <a href="{% url "checkout:login" %}" class="btn btn-primary float-right checkout-preview__submit">
- {% trans "Checkout" context "Checkout primary action" %}
- </a>
- <button class="btn secondary float-right checkout-preview__clear" data-action="{% url 'checkout:clear' %}">
- {% trans "Clear cart" context "checkout page: secondary action, empty the checkout" %}
- </button>
- </div>
- </div>
- {% else %}
- <div class="checkout-preview__empty">
- <img class="lazyload lazypreload" data-src="{% static 'images/empty-checkout-bg.png' %}" data-srcset="{% static 'images/empty-checkout-bg.png' %} 1x, {% static 'images/empty-checkout-bg2x.png' %} 2x">
- <h2>{% trans "There are no products in your shopping cart." context "Empty checkout message" %}</h2>
- <a href="{% url 'home' %}" class="btn btn-primary">{% trans "Check out our sales" context "Empty checkout link" %}</a>
- </div>
- {% endif %}
- </div>
-{% endblock content %}
diff --git a/templates/checkout/login.html b/templates/checkout/login.html
deleted file mode 100644
index f4b5094e98..0000000000
--- a/templates/checkout/login.html
+++ /dev/null
@@ -1,30 +0,0 @@
-{% extends "checkout/details.html" %}
-{% load static %}
-{% load i18n %}
-{% load placeholder %}
-
-{% block title %}{% trans "Login" context "Checkout login page title" %} — {{ block.super }}{% endblock %}
-
-{% block content %}
- <div class="row checkout__login">
- <div class="col-12 col-md-6">
- <div class="checkout__login__continue">
- <h3>{% trans "New customer?" context "Checkout login page title" %}</h3>
- <img class="checkout-pirate lazyload lazypreload"
- data-src="{% static 'images/login-bg.png' %}"
- data-srcset="{% static 'images/login-bg.png' %} 1x, {% static 'images/login-bg2x.png' %} 2x">
- <p>
- <a href="{% url 'checkout:start' %}" class="btn secondary narrow">
- {% trans "Continue" context "Checkout login page new users action" %}
- </a>
- </p>
- <small>{% trans "Registration is not required!" context "Checkout login page new users message" %}</small>
- </div>
- </div>
- <div class="col-12 col-md-6 checkout__login__form">
- {% url "checkout:start" as checkout_url %}
- <h3>{% trans "Existing customer? Log in." context "Checkout login form title" %}</h3>
- {% include "account/partials/login_form.html" with REDIRECT_FIELD_VALUE=checkout_url %}
- </div>
- </div>
-{% endblock %}
diff --git a/templates/checkout/payment.html b/templates/checkout/payment.html
deleted file mode 100644
index 6fa8ef226e..0000000000
--- a/templates/checkout/payment.html
+++ /dev/null
@@ -1,16 +0,0 @@
-{% extends "checkout/details.html" %}
-{% load i18n %}
-{% load bootstrap_form from bootstrap4 %}
-
-
-{% block forms %}
- <form method="post" novalidate>
- {% csrf_token %}
- <h1>{% trans "Payment" context "Checkout payment title" %}</h1>
- {% bootstrap_form payment_form %}
- {% bootstrap_form billing_address_form %}
- <button type="submit" class="btn btn-primary">
- {% trans "Place order" context "Checkout payment primary action" %}
- </button>
- </form>
-{% endblock forms %}
diff --git a/templates/checkout/shipping_address.html b/templates/checkout/shipping_address.html
deleted file mode 100644
index 1dc81925fe..0000000000
--- a/templates/checkout/shipping_address.html
+++ /dev/null
@@ -1,25 +0,0 @@
-{% extends "checkout/details.html" %}
-{% load i18n %}
-{% load bootstrap_form from bootstrap4 %}
-
-{% block forms %}
- <form method="post" novalidate class="checkout__shipping">
- {% csrf_token %}
- <h2>{% trans "Shipping address" context "Checkout shipping address title" %}</h2>
-
- <div class="checkout__addresses{{ request.user.is_authenticated|yesno:",--full-width" }}">
- {% 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 "account/snippets/address_form.html" with address_form=address_form only %}
- {% endif %}
- </div>
-
- <div class="checkout__addresses">
- <button type="submit" class="btn btn-primary">
- {% trans "Continue" context "Checkout shipping address primary action" %}
- </button>
- </div>
- </form>
-{% endblock %}
diff --git a/templates/checkout/shipping_method.html b/templates/checkout/shipping_method.html
deleted file mode 100644
index 58e8e085d2..0000000000
--- a/templates/checkout/shipping_method.html
+++ /dev/null
@@ -1,52 +0,0 @@
-{% extends "checkout/details.html" %}
-{% load i18n %}
-{% load i18n_address_tags %}
-
-{% block forms %}
- <div class="checkout__shipping-methods">
- <h3>{% trans "Shipping address" context "Checkout shipping address title" %}</h3>
- <div class="card card-default address">
- <div class="card-body">
- {% format_address checkout.shipping_address %}
- </div>
- </div>
- <p>
- <a class="text-uppercase" href="{% url 'checkout:shipping-address' %}">
- {% trans "Select other address" %}
- </a>
- </p>
- <hr>
- {% if shipping_method_form.shipping_method.field.choices %}
- <form method="post" novalidate>
- {% csrf_token %}
- <h2>
- {% trans "Shipping method" context "Checkout shipping method form title" %}
- </h2>
- <div class="checkout__shipping-methods-form">
- {% for choice in shipping_method_form.shipping_method %}
- <div class="radio">
- <label>
- <div class="card card-default">
- <div class="card-body">
- <strong>
- {{choice}}
- </strong>
- </div>
- </div>
- </label>
- </div>
- {% endfor %}
- <button type="submit" class="btn btn-primary">
- {% trans "Continue" context "Checkout shipping method primary action" %}
- </button>
- </div>
- </form>
- {% else %}
- {% blocktrans context "Message displayed to the user if there's no shipping methods for his country" %}
- Unfortunately we do not ship to your selected country.
- <br>
- Please enter an alternative shipping address or contact us, if you think that's a mistake.
- {% endblocktrans %}
- {% endif %}
- </div>
-{% endblock %}
diff --git a/templates/checkout/snippets/addresses_form.html b/templates/checkout/snippets/addresses_form.html
deleted file mode 100644
index d68380b14e..0000000000
--- a/templates/checkout/snippets/addresses_form.html
+++ /dev/null
@@ -1,13 +0,0 @@
-{% load i18n %}
-
-{% if addresses_form.SHIPPING_ADDRESS %}
- {% trans "Same as shipping" context "Checkout addresses form label" as same_as_shipping %}
- {% include "checkout/snippets/addresses_form_panel.html" with parent_element_id="accordion" address_show=False 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" address_show=False 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 %}
- {% trans "Enter a new address" context "Checkout addresses form label" as enter_a_new_address %}
- {% include "checkout/snippets/addresses_form_panel.html" with parent_element_id="accordion" address_show=True 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 %}
diff --git a/templates/checkout/snippets/addresses_form_panel.html b/templates/checkout/snippets/addresses_form_panel.html
deleted file mode 100644
index 80dfe4a4cc..0000000000
--- a/templates/checkout/snippets/addresses_form_panel.html
+++ /dev/null
@@ -1,24 +0,0 @@
- {% load i18n_address_tags %}
- <div class="checkout__addresses-panel radio {% if not address_show %} address_hide{% else %} address_show{% endif %}">
- <label>
- <div class="card card-default">
- <div class="card-body">
- <input type="radio" name="{{ radio_name }}" value="{{ radio_value }}" id="address_{{ radio_value }}" {% if radio_value == value %}checked{% endif %}>
- {% if address %}
- <div class="address-details">
- {% format_address address %}
- </div>
- {% else %}
- {{ label }}
- {% endif %}
- </div>
- </div>
- </label>
-</div>
-<div class="checkout__new-address-container">
- {% if address_form %}
- <div class="checkout__new-address">
- {% include "account/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.html
deleted file mode 100644
index 7ca14d885f..0000000000
--- a/templates/checkout/snippets/voucher_form.html
+++ /dev/null
@@ -1,34 +0,0 @@
-{% load bootstrap_field bootstrap_button from bootstrap4 %}
-{% load trans from i18n %}
-{% load discount_as_negative from voucher %}
-
-{% if form %}
- {% if checkout.discount_amount %}
- <form action="{% url "checkout:remove-voucher" %}?next={{ request.path }}"
- method="post"
- class="float-left input-btn">
- {% csrf_token %}
- <span>{{ checkout.translated_discount_name|default:checkout.discount_name }}</span>
- <button type="submit"
- class="btn btn-link btn-voucher-remove"
- aria-label="{% trans "Remove" context "Checkout voucher form action" %}">
- {% trans "(Remove)" context "Checkout voucher form action" %}
- </button>
- </form>
- <div class="float-right">
- {% discount_as_negative checkout.discount %}
- </div>
- {% else %}
- <form action="{{ request.path }}?next={{ request.path }}" method="post">
- {% csrf_token %}
- <div class="form-group input-btn">
- {% trans "Use" context "Checkout voucher form action" as use_voucher %}
- {% if form.errors %}
- {% bootstrap_field form.voucher show_label=False show_help=False placeholder=False %}
- {% else %}
- {% bootstrap_field form.voucher show_label=False show_help=True placeholder=False %}
- {% endif %} {% bootstrap_button use_voucher button_type="submit" button_class="btn secondary narrow" %}
- </div>
- </form>
- {% endif %}
-{% endif %}
diff --git a/templates/checkout/summary.html b/templates/checkout/summary.html
deleted file mode 100644
index 7cadb47b86..0000000000
--- a/templates/checkout/summary.html
+++ /dev/null
@@ -1,21 +0,0 @@
-{% extends "checkout/details.html" %}
-{% load i18n %}
-{% load bootstrap_form from bootstrap4 %}
-
-{% block forms %}
- <div class="checkout__billing-form">
- <form method="post" novalidate>
- {% csrf_token %}
- <h2>{% trans "Billing address" context "Checkout summary title" %}</h2>
- {% include "checkout/snippets/addresses_form.html" with addresses_form=addresses_form addresses=additional_addresses address_form=address_form only %}
- <p><a class="text-uppercase" href="{% url 'checkout:shipping-method' %}">{% trans "Change shipping method" context "Checkout shipping method" %}</a></p>
- <h2>{% trans "Add a note to your order" context "Checkout summary note title" %}</h2>
- {% bootstrap_form note_form show_label=False %}
- <p class="text-md-right">
- <button type="submit" class="btn btn-primary">
- {% trans "Order & Pay" context "Checkout summary primary action" %}
- </button>
- </p>
- </form>
- </div>
-{% endblock forms %}
diff --git a/templates/checkout/summary_without_shipping.html b/templates/checkout/summary_without_shipping.html
deleted file mode 100644
index bac8514c6b..0000000000
--- a/templates/checkout/summary_without_shipping.html
+++ /dev/null
@@ -1,23 +0,0 @@
-{% extends "checkout/details.html" %}
-{% load i18n %}
-{% load bootstrap_form from bootstrap4 %}
-
-{% block forms %}
- <form method="post" novalidate>
- {% csrf_token %}
- <h2>{% trans "Billing address" context "Checkout summary without shipping title" %}</h2>
- {% 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 "account/snippets/address_form.html" with address_form=address_form only %}
- {% endif %}
- <h2>{% trans "Add a note to your order" context "Checkout summary without shipping note title" %}</h2>
- {% bootstrap_form note_form show_label=False %}
- <p class="text-md-right">
- <button type="submit" class="btn btn-primary">
- {% trans "Place order" context "Checkout summary without shipping action" %}
- </button>
- </p>
- </form>
-{% endblock forms %}
diff --git a/templates/collection/index.html b/templates/collection/index.html
deleted file mode 100644
index dfb22e16e1..0000000000
--- a/templates/collection/index.html
+++ /dev/null
@@ -1,32 +0,0 @@
-{% extends "product/product_list_base.html" %}
-{% load i18n %}
-{% load static %}
-
-{% block breadcrumb_part %}
- <li>
- <a href="{% url 'home' %}">{% trans "Home" context 'Site breadcrumbs home' %}</a>
- </li>
- <li><a href='{{ object.get_absolute_url }}'>{{ object.translated.name }}</a></li>
-{% endblock %}
-
-{% block collection_published_warning %}
- {% if not object.is_visible %}
- <div class="alert alert-warning" role="alert">
- {% if object.publication_date %}
- {% blocktrans trimmed with date=object.publication_date|date context "Unpublished collection details text" %}
- <strong>Warning!</strong>
- You are previewing a collection that will become visible on <strong>{{ date }}</strong>.
- {% endblocktrans %}
- {% else %}
- {% blocktrans context "Unavailable collection detail text" %}
- <strong>Warning!</strong>
- You are previewing a collection that is not published.
- {% endblocktrans %}
- {% endif %}
- </div>
- {% endif %}
-{% endblock %}
-
-{% block filters %}
- {% include "product/_filters.html" %}
-{% endblock filters %}
diff --git a/templates/home.html b/templates/home.html
deleted file mode 100644
index 4f524df91f..0000000000
--- a/templates/home.html
+++ /dev/null
@@ -1,59 +0,0 @@
-{% extends "base.html" %}
-{% load i18n %}
-
-{% block content %}
- <div class="home">
- <div class="row">
- <div class="col-sm-12 home__block1">
- <div class="home--square">
- <div class="home--content">
- <div class="home--content-wrapper">
- <div class="home--content-inner">
- <h1>{% trans "Promo & Sale" context "Homepage title" %}</h1>
- <h2>{% trans "from the Northpole" context "Homepage title" %}</h2>
- <a class="btn btn-secondary home__button" href="#">
- {% trans "Shop now" context "Homepage action" %}
- </a>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-sm-12 col-md-6 home__block2">
- <div class="home--square">
- <div class="home--content">
- <div class="home--content-wrapper">
- <div class="home--content-inner">
- <h1>{% trans "Size & Colours" context "Homepage title" %}</h1>
- <a class="btn btn-secondary home__button" href="#">{% trans "Shop now" context "Homepage action" %}</a>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="col-sm-12 col-md-6 home__block3">
- <div class="home--square">
- <div class="home--content">
- <div class="home--content-wrapper">
- <div class="home--content-inner">
- <h1>{% trans "Digital Downloads" context "Homepage title" %}</h1>
- <a class="btn btn-secondary home__button" href="#">{% trans "Shop now" context "Homepage action" %}</a>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- {% if products %}
- <div class="home__featured">
- <h2 class="text-center">{% trans "Featured products" context "Homepage title" %}</h2>
- <div class="row">
- {% include "product/_items.html" %}
- </div>
- </div>
- {% endif %}
- <script type="application/ld+json">{{ webpage_schema|safe }}</script>
- </div>
-{% endblock %}
diff --git a/templates/order/checkout_success.html b/templates/order/checkout_success.html
deleted file mode 100644
index 33f24daaa8..0000000000
--- a/templates/order/checkout_success.html
+++ /dev/null
@@ -1,33 +0,0 @@
-{% extends 'base.html' %}
-
-{% load bootstrap_form from bootstrap4 %}
-{% load static %}
-{% load i18n %}
-{% load placeholder %}
-
-{% block title %}{% trans "Thank you" context "Checkout success page title" %} — {{ block.super }}{% endblock %}
-
-
-{% block content %}
- <div class="row checkout__thankyoupage">
- <div class="col-xl-10 m-auto">
- <img class="checkout__thankyoupage__parrot lazyload lazypreload" data-src="{% static 'images/confirm-order-bg.png' %}"
- srcset="{% static 'images/confirm-order-bg.png' %} 1x, {% static 'images/confirm-order-bg2x.png' %} 2x">
- <h1>{% blocktrans trimmed with order_url=order.get_absolute_url context "Checkout title" %}
- Thank you for your <a href="{{ order_url }}">order</a>!
- {% endblocktrans %}</h1>
-
- <p>{% blocktrans trimmed with order_url=order.get_absolute_url context "Checkout text" %}
- We've sent a confirmation email with details to <span>{{ email }}</span>.<br>
- In case of any problems or questions please contact us.
- {% endblocktrans %}</p>
- </div>
- <div class="m-auto">
- <img class="checkout-pirate lazyload lazypreload" data-src="{% static 'images/checkout-bg.png' %}"
- srcset="{% static 'images/checkout-bg.png' %} 1x, {% static 'images/checkout-bg2x.png' %} 2x">
- <p><a href="{% url 'home' %}" class="btn secondary">
- {% trans "Continue shopping" context "Checkout secondary action" %}
- </a></p>
- </div>
- </div>
-{% endblock %}
diff --git a/templates/order/checkout_success_anonymous.html b/templates/order/checkout_success_anonymous.html
deleted file mode 100644
index 50f1dfd935..0000000000
--- a/templates/order/checkout_success_anonymous.html
+++ /dev/null
@@ -1,64 +0,0 @@
-{% extends 'base.html' %}
-
-{% load bootstrap_form from bootstrap4 %}
-{% load static %}
-{% load i18n %}
-{% load placeholder %}
-
-{% block title %}{% trans "Thank you" context "Checkout success page title" %} — {{ block.super }}{% endblock %}
-
-
-{% block content %}
- <div class="row checkout__thankyoupage">
- <div class="col-xl-10 m-auto">
- <img class="checkout__thankyoupage__parrot lazyload lazypreload" data-src="{% static 'images/confirm-order-bg.png' %}"
- data-srcset="{% static 'images/confirm-order-bg.png' %} 1x, {% static 'images/confirm-order-bg2x.png' %} 2x">
- <h1>{% blocktrans trimmed with order_url=order.get_absolute_url context "Checkout title" %}
- Thank you for your <a href="{{ order_url }}">order</a>!
- {% endblocktrans %}</h1>
-
- <p>{% blocktrans trimmed with order_url=order.get_absolute_url context "Checkout text" %}
- We've sent a confirmation email with details to <span>{{ email }}</span>.<br>
- In case of any problems or questions please contact us.
- {% endblocktrans %}</p>
- <div class="row checkout__thankyoupage__form">
- <div class="col-md-6 push-md-6">
- {% if login_form is not None %}
- <p>{% blocktrans trimmed context "Checkout text" %}
- It looks like you already are our customer! <br>
- Please log in to connect order with your account.
- {% endblocktrans %}</p>
- {% url "order:connect-order-with-user" token=order.token as attach_url %}
- {% include "account/partials/login_form.html" with REDIRECT_FIELD_VALUE=attach_url form=login_form %}
- {% else %}
- <form method="post" action="" novalidate>
- {% csrf_token %}
- <fieldset>
- <h3>{% trans "Why not to create an account" context "Checkout title" %}</h3>
- <p>{% blocktrans trimmed %}
- Make your shopping experience even better!
- Save your shipping and payment details for faster checkout.
- {% endblocktrans %}</p>
- {% bootstrap_form form %}
- </fieldset>
- <div class="row login__btn-group">
- <div class="col-12">
- <button class="btn btn-primary">
- {% trans "Create an account" context "Checkout primary action" %}
- </button>
- </div>
- </div>
- </form>
- {% endif %}
- </div>
- <div class="col-md-6 pull-md-6">
- <img class="checkout-pirate lazyload lazypreload" data-src="{% static 'images/checkout-bg.png' %}"
- data-srcset="{% static 'images/checkout-bg.png' %} 1x, {% static 'images/checkout-bg2x.png' %} 2x">
- <p><a href="{% url 'home' %}" class="btn secondary">
- {% trans "Continue shopping" context "Checkout secondary action" %}
- </a></p>
- </div>
- </div>
- </div>
- </div>
-{% endblock %}
diff --git a/templates/order/details.html b/templates/order/details.html
deleted file mode 100644
index fbabe6be9c..0000000000
--- a/templates/order/details.html
+++ /dev/null
@@ -1,81 +0,0 @@
-{% extends "base.html" %}
-
-{% load i18n %}
-{% load static %}
-{% load bootstrap_form from bootstrap4 %}
-
-{% block title %}
- {% blocktrans trimmed context "Order details page title" %}
- Order {{ order }}
- {% endblocktrans %} — {{ block.super }}
-{% endblock %}
-
-{% block breadcrumb %}
- {% if order.user == user %}
- <ul class="breadcrumbs list-unstyled">
- <li>
- <a href="{% url 'home'%}">
- {% trans "Home" context "Main navigation item" %}
- </a>
- </li>
- <li>
- <a href="{% url "account:details" %}">
- {% trans "Your account" context "Main navigation item" %}
- </a>
- </li>
- <li>
- <a href="{{ order.get_absolute_url }}">
- {% blocktrans trimmed context "Order details breadcrumb" %}
- Order {{ order }}
- {% endblocktrans %}
- </a>
- </li>
- </ul>
- {% endif %}
-{% endblock breadcrumb %}
-
-{% block meta_tags %}
- <meta name="robots" content="noindex, nofollow">
-{% endblock meta_tags %}
-
-{% block content %}
- {# This view is available by just knowing url, #}
- {# so we don't show all details (like shipping address) #}
- {# unless current user is owner of the order. #}
-
- <div class="row order-details">
- <div class="col-lg-10 m-auto">
- <h2 class="order-details__header">
- {% blocktrans trimmed with payment_status=order.get_payment_status_display order_status=order.get_status_display context "Order detail text" %}
- Order {{ order }}: {{ payment_status }} & {{ order_status }}
- {% endblocktrans %}
- </h2>
- {% if not order.is_partly_paid %}
- {% if order.is_pre_authorized %}
- <a href="{% url "order:payment" token=order.token %}" class="btn btn-link">
- {% trans "Payment details" context "Order details link text" %}
- </a>
- {% else %}
- <a href="{% url "order:payment" token=order.token %}" class="btn btn-primary">
- {% trans "Pay for order" context "Order details primary action" %}
- </a>
- {% endif %}
- {% endif %}
- {% include "order/_ordered_items_table.html" %}
- <div class="order-notes">
- {% if order.customer_note %}
- <h2 class="order-notes__header">{% trans "Your note" context "Customer order note" %}</h2>
- <p>{{ order.customer_note }}</p>
- {% endif %}
- {% if order.is_open and not order.customer_note %}
- <form method="post" class="form-group">
- {% csrf_token %}
- <h2>{% trans "Add a note to your order" context "Order note title" %}</h2>
- {% bootstrap_form note_form display_labels=False %}
- <input type="submit" value="{% trans 'Submit note' context 'Customer panel - order details: add note submit button' %}" class="btn btn-primary" />
- </form>
- {% endif %}
- </div>
- </div>
- </div>
-{% endblock content %}
diff --git a/templates/order/payment.html b/templates/order/payment.html
deleted file mode 100644
index ca850afdfc..0000000000
--- a/templates/order/payment.html
+++ /dev/null
@@ -1,110 +0,0 @@
-{% extends "base.html" %}
-
-{% load bootstrap_form from bootstrap4 %}
-{% load i18n %}
-{% load static %}
-
-{% block title %}
- {% blocktrans trimmed context "Payment details page title" %}
- Pay for order {{ order }}
- {% endblocktrans %} — {{ block.super }}
-{% endblock %}
-
-{% block breadcrumb %}
- {% if order.user == user %}
- <ul class="breadcrumbs list-unstyled">
- <li>
- <a href="{% url 'home' %}">
- {% trans "Home" context "Main navigation item" %}
- </a>
- </li>
- <li>
- <a href="{% url "account:details" %}">
- {% trans "Your account" context "Main navigation item" %}
- </a>
- </li>
- <li>
- <a href="{{ order.get_absolute_url }}">
- {% blocktrans trimmed context "Payment details breadcrumb" %}
- Order {{ order }}
- {% endblocktrans %}
- </a>
- </li>
- </ul>
- {% endif %}
-{% endblock breadcrumb %}
-
-{% block content %}
- <div class="row checkout">
- <div class="col-lg-10 m-auto checkout__payment">
- {% if order.user == user or not order.is_fully_paid %}
- {% if not order.is_fully_paid and order.billing_address %}
- {% if waiting_payment %}
- <h1>
- {% trans "Payment pending" context "Payment details title" %}
- </h1>
- <form method="post" action="{% url 'order:cancel-payment' token=order.token %}" class="checkout-form">
- {% csrf_token %}
- <p>{% blocktrans trimmed context "Payment pending text" %}
- We are currently waiting for an external service to authorize
- your payment for this order.
- {% endblocktrans %}</p>
- <p>{% trans "Current status:" context "Payment status text" %}
- <br>
- <span class="label label-default">
- {{ waiting_payment.get_charge_status_display }}
- </span>
- </p>
- <p>{% blocktrans trimmed context "Payment pending text" %}
- 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.
- {% endblocktrans %}</p>
- {% bootstrap_form waiting_payment_form %}
- <button type="submit" class="btn danger">
- {% trans "I understand, allow me to pay again" context "Payment pending action" %}
- </button>
- </form>
- {% elif payment_form %}
- <h1>
- {% blocktrans trimmed context "Payment details title" %}
- Pay for order {{ order }}
- {% endblocktrans %}
- </h1>
- <h3>
- <b>{% trans "Choose payment method" %}</b>
- </h3>
- <div class="checkout__payment-form">
- <form method="post" action="{% url "order:payment" token=order.token %}" class="payment-form radio">
- {% csrf_token %}
- {% for choice in payment_form.gateway %}
- <div class="radio checkout__payment-form__choice">
- <label>
- <div class="card card-default">
- <div class="card-body">
- <strong>
- {{choice}}
- </strong>
- </div>
- </div>
- </label>
- </div>
- {% endfor %}
- {% block form_submit %}
- <button type="submit" class="btn btn-primary">
- {% trans "Proceed to payment" context "Payment details primary action" %}
- </button>
- {% endblock %}
- </form>
- </div>
- {% else %}
- <p>{% trans "You've authorized transaction. Order is in processing" context "Payment details text" %}</p>
- {% endif %}
- {% endif %}
- {% endif %}
- {% include 'order/_ordered_items_table.html' %}
- </div>
- </div>
-{% endblock content %}
diff --git a/templates/order/payment/stripe.html b/templates/order/payment/stripe.html
deleted file mode 100644
index c94af28ba7..0000000000
--- a/templates/order/payment/stripe.html
+++ /dev/null
@@ -1,15 +0,0 @@
-{% extends "order/payment/details.html" %}
-{% load i18n %}
-
-{% block forms %}
- <form method="POST" id="payment-form" {% if form.action %} action="{{ form.action }}"{% endif %} novalidate>
- {% csrf_token %}
- {{ form.media }}
- {{ form }}
- {% if form.errors %}
- <a class="btn" href="{% url "order:details" token=payment.order.token %}">
- {% trans "Change payment" context "Payment form (Stripe) secondary action" %}
- </a>
- {% endif %}
- </form>
-{% endblock forms %}
diff --git a/templates/page/details.html b/templates/page/details.html
deleted file mode 100644
index f878567c66..0000000000
--- a/templates/page/details.html
+++ /dev/null
@@ -1,57 +0,0 @@
-{% extends "base.html" %}
-{% load i18n %}
-{% load build_absolute_uri from urls %}
-{% load format_content from content_formatting %}
-
-{% block title %}
- {% if page.seo_title %}
- {{ page.translated.seo_title }}
- {% else %}
- {{ page.translated.title }} - {{ block.super }}
- {% endif %}
-{% endblock %}
-
-{% block meta_tags %}
- <meta property="og:title" content="{{ page.translated.seo_title|default:page.translated.title }}">
- <meta property="og:description" content="{{ page.translated.seo_description|default:"" }}">
- <meta name="description" content="{{ page.translated.seo_description|default:"" }}">
-
- {% build_absolute_uri request=request location=page.get_absolute_url as page_url %}
- <meta property="og:url" content="{{ page_url }}">
-{% endblock meta_tags %}
-
-{% block breadcrumb %}
- <ul class="breadcrumbs list-unstyled">
- <li>
- <a href="{% url 'home' %}">
- {% trans "Home" context "Main navigation item" %}
- </a>
- </li>
- {% if page %}
- <li>
- <a href="{{ page.get_absolute_url }}">{{ page.translated.title }}</a>
- </li>
- {% endif %}
- </ul>
-{% endblock breadcrumb %}
-
-{% block content %}
- {% if not page.is_published %}
- <div class="alert alert-warning" role="alert">
- {% blocktrans context "Unavailable page detail text" %}
- <strong>Warning!</strong>
- You are previewing a page that is not visible.
- {% endblocktrans %}
- </div>
- {% elif not is_visible %}
- <div class="alert alert-warning" role="alert">
- {% blocktrans trimmed with date=page.publication_date|date context "Unpublished page details text" %}
- <strong>Warning!</strong>
- You are previewing a page that will become visible on <strong>{{ date }}</strong>.
- {% endblocktrans %}
- </div>
- {% endif %}
- <div class="content">
- {% format_content content_json=content_json content_html=content_html %}
- </div>
-{% endblock %}
diff --git a/templates/payments/credit_card_expiry_widget.html b/templates/payments/credit_card_expiry_widget.html
deleted file mode 100644
index 5c0c681a18..0000000000
--- a/templates/payments/credit_card_expiry_widget.html
+++ /dev/null
@@ -1,9 +0,0 @@
-<div class="row">
- {% with widget.subwidgets.0 as month %}
- {% with widget.subwidgets.1 as year %}
- <div class="col-6">{% include month.template_name with widget=month %}</div>
- <span class="text-center align-bottom position-absolute w-100 checkout__payments-card-expiry-slash">/</span>
- <div class="col-6">{% include year.template_name with widget=year %}</div>
- {% endwith %}
- {% endwith %}
-</div>
diff --git a/templates/prices/widget.html b/templates/prices/widget.html
deleted file mode 100644
index b4ac31541e..0000000000
--- a/templates/prices/widget.html
+++ /dev/null
@@ -1,4 +0,0 @@
-<div class="input-with-suffix">
- {{ widget }}
- <div class="input-text-suffix">{{ currency }}</div>
-</div>
diff --git a/templates/product/_filters.html b/templates/product/_filters.html
deleted file mode 100644
index 29ab335f1f..0000000000
--- a/templates/product/_filters.html
+++ /dev/null
@@ -1,62 +0,0 @@
-{% load i18n %}
-{% load static %}
-
-<div class="filters-menu__body d-none d-md-block">
- <div class="product-filters">
- <div class="product-filters__attributes" data-icon-up="{% static "images/chevron-up.svg" %}" data-icon-down="{% static "images/chevron-down.svg" %}">
- <form method="get">
- {% for field in filter_set.form %}
- {% if field.name == 'sort_by' %}
- {% comment %}
- Field 'sort_by' is hidden because it is rendered in header.
- This is required if you want to have sorting to be kept during further filtering.
- {% endcomment %}
- <input type="hidden" name="sort_by" value="{% if request.GET.sort_by %}{{ request.GET.sort_by }}{% endif %}">
- {% elif field.name != 'minimal_variant_price' %}
- <div class="filter-section" aria-expanded="true">
- <div class="filter-section__header">
- <h3>{{ field.label }}</h3>
- <div class="filter-section__icon">
- <img class="lazyload lazypreload" data-src="{% static "images/chevron-up.svg" %}">
- </div>
- </div>
- <div class="filter-section__content">
- <div class="filter-form-field">
- {{ field }}
- </div>
- </div>
- </div>
- {% endif %}
- {% endfor %}
- {% for field in filter_set.form %}
- {% if field.name == 'minimal_variant_price' %}
- <div class="filter-section" aria-expanded="true">
- <div class="filter-section__header">
- <h3>{{ field.label }}</h3>
- <div class="filter-section__icon">
- <img class="lazyload lazypreload" data-src="{% static "images/chevron-up.svg" %}">
- </div>
- </div>
- <div class="filter-section__content">
- <div class="filter-form-field price-field">
- <input id="{{ field.auto_id }}_0" name="{{ field.name }}_min"
- value="{% if field.value.0 %}{{ field.value.0 }}{% endif %}" type="number" min="0"
- class="form-control d-inline"
- placeholder="{% trans 'from' context 'Product price filter' %}"/><span>-</span><input id="{{ field.auto_id }}_1" name="{{ field.name }}_max"
- value="{% if field.value.1 %}{{ field.value.1 }}{% endif %}" type="number" min="0"
- class="form-control d-inline" placeholder="{% trans 'to' context 'Product price filter' %}"/>
- </div>
- </div>
- </div>
- {% endif %}
- {% endfor %}
- {% if filter_set.is_bound_unsorted %}
- <a class="clear-filters text-uppercase" href="./">
- {% trans 'Clear filters' context 'Product list page filters' %}
- </a>
- {% endif %}
- <button class="btn btn-primary" type="submit">{% trans 'Update results' context 'Apply filters button' %}</button>
- </form>
- </div>
- </div>
-</div>
diff --git a/templates/product/_items.html b/templates/product/_items.html
deleted file mode 100644
index 88085fe2e2..0000000000
--- a/templates/product/_items.html
+++ /dev/null
@@ -1,42 +0,0 @@
-{% load i18n %}
-{% load static %}
-{% load taxed_prices %}
-{% load get_product_image_thumbnail from product_images %}
-{% load placeholder %}
-
-{% for product, availability in products %}
- <div class="col-6 col-lg-3 product-list">
- <a href="{{ product.get_absolute_url }}" class="link--clean">
- <div class="text-center">
- <div>
- <div class="product-image">
- <img class="img-responsive lazyload lazypreload"
- data-src="{% get_product_image_thumbnail product.get_first_image method="thumbnail" size=255 %}"
- data-srcset="{% get_product_image_thumbnail product.get_first_image method="thumbnail" size=255 %} 1x, {% get_product_image_thumbnail product.get_first_image method="thumbnail" size=510 %} 2x"
- alt=""
- src="{% placeholder size=255 %}">
- </div>
- <span class="product-list-item-name" title="{{ product.translated }}">{{ product.translated }}</span>
- </div>
- <div class="panel-footer">
- {% if availability.available %}
- {% price_range availability.price_range %}
- {% if availability.on_sale %}
- {% if availability.price_range_undiscounted.start != availability.price_range.start %}
- <div class="product-list__sale">
- <svg data-src="{% static "images/sale-bg.svg" %}" />
- <span class="product-list__sale__text">
- {% comment %}Translators: Layout may break if character length is different than four.{% endcomment %}
- {% trans "Sale" context "Sale (discount) label for item in product list" %}
- </span>
- </div>
- {% endif %}
- {% endif %}
- {% else %}
- &nbsp;
- {% endif %}
- </div>
- </div>
- </a>
- </div>
-{% endfor %}
diff --git a/templates/product/_price_range.html b/templates/product/_price_range.html
deleted file mode 100644
index abae38078b..0000000000
--- a/templates/product/_price_range.html
+++ /dev/null
@@ -1,13 +0,0 @@
-{% load i18n %}
-{% load prices %}
-
-<span>
- <span>
- {% if price_range.start != price_range.stop %}{% trans "from" context "product price range" %} {% endif %}
- {% if display_gross %}
- {{ price_range.start.gross|amount:'html' }}
- {% else %}
- {{ price_range.start.net|amount:'html' }}
- {% endif %}
- </span>
-</span>
diff --git a/templates/product/details.html b/templates/product/details.html
deleted file mode 100644
index 3eeb4b742c..0000000000
--- a/templates/product/details.html
+++ /dev/null
@@ -1,211 +0,0 @@
-{% extends "base.html" %}
-
-{% load bootstrap_field from bootstrap4 %}
-{% load build_absolute_uri from urls %}
-{% load get_object_properties from attributes %}
-{% load get_thumbnail from product_images %}
-{% load get_product_image_thumbnail from product_images %}
-{% load i18n %}
-{% load markdown from markdown %}
-{% load placeholder %}
-{% load static %}
-{% load taxed_prices %}
-{% load format_content from content_formatting %}
-
-{% block title %}
- {% if product.seo_title %}
- {{ product.translated.seo_title }}
- {% else %}
- {{ product.translated.name }} - {{ block.super }}
- {% endif %}
-{% endblock %}
-
-{% block meta_tags %}
- <meta property="og:title" content="{{ product.translated.seo_title|default:product.translated.name }}">
- <meta property="og:description" content="{{ product.translated.seo_description|default:"" }}">
- <meta name="description" content="{{ product.translated.seo_description|default:"" }}">
-
- {% build_absolute_uri request=request location=product.get_absolute_url as product_url %}
- <meta property="og:url" content="{{ product_url }}">
- <link rel="canonical" href="{{ product_url }}">
-
- {% get_product_image_thumbnail product.get_first_image size=510 method="thumbnail" as product_image %}
- {% if product_image %}
- <meta property="og:image" content="{{ product_image }}" />
- <meta property="og:image:width" content="510">
- <meta property="og:image:height" content="510">
- {% else %}
- <meta property="og:image" content="{% static "images/block1.png" %}">
- {% endif %}
-{% endblock meta_tags %}
-
-{% block breadcrumb %}
- <ul class="breadcrumbs list-unstyled">
- <li>
- <a href="{% url 'home' %}">
- {% trans "Home" context "Main navigation item" %}
- </a>
- </li>
- {% if product.category %}
- <li>
- <a href="{{ product.category.get_absolute_url }}">{{ product.category.translated }}</a>
- </li>
- {% endif %}
- <li>
- <a href="{{ product.get_absolute_url }}">{{ product.translated }}</a>
- </li>
- </ul>
-{% endblock breadcrumb %}
-
-{% block content %}
- {% if not is_visible %}
- <div class="alert alert-warning" role="alert">
- {% blocktrans trimmed with date=product.publication_date|date context "Product details text" %}
- <strong>Warning!</strong>
- You are previewing a product that will become visible on <strong>{{ date }}</strong>.
- {% endblocktrans %}
- </div>
- {% endif %}
- <div class="row product">
- <script type="application/ld+json">{{ json_ld_product_data|safe }}</script>
- <div class="col-md-6 col-12 product__gallery">
- {% with images=product_images %}
- {% if images %}
- <div id="carousel-example-generic" class="carousel slide">
- <div class="carousel-inner" role="listbox">
- {% for image in images %}
- <div class="carousel-item{% if forloop.first %} active{% endif %}">
- <div class="product-image">
- <img class="d-block img-fluid lazyload lazypreload"
- data-src="{% get_thumbnail image.image method="thumbnail" size=540 %}"
- data-srcset="{% get_thumbnail image.image method="thumbnail" size=540 %} 1x, {% get_thumbnail image.image method="thumbnail" size=1080 %} 2x"
- alt=""
- src="{% placeholder size=540 %}">
- </div>
- </div>
- {% endfor %}
- </div>
- {% if images|length > 1 %}
- <a class="carousel-control-prev" href="#carousel-example-generic" role="button" data-slide="prev">
- <svg data-src="{% static "images/gallery-arrow.svg" %}" />
- </a>
- <a class="carousel-control-next" href="#carousel-example-generic" role="button" data-slide="next">
- <svg data-src="{% static "images/gallery-arrow.svg" %}" />
- </a>
- {% endif %}
- <ol class="carousel-indicators d-none d-md-block">
- {% for image in images %}
- {% if images|length > 1 %}
- <li data-target="#carousel-example-generic" data-slide-to="{{ forloop.counter0 }}"{% if forloop.first %} class="active"{% endif %}>
- <img data-src="{% get_thumbnail image.image method="thumbnail" size=60 %}"
- data-srcset="{% get_thumbnail image.image method="thumbnail" size=60 %} 1x, {% get_thumbnail image.image method="thumbnail" size=120 %} 2x"
- alt=""
- class="lazyload lazypreload"
- src="{% placeholder size=60 %}">
- </li>
- {% endif %}
- {% endfor %}
- </ol>
- </div>
- {% else %}
- <img data-src="{% placeholder size=540 %}"
- data-srcset="{% placeholder size=540 %} 1x, {% placeholder size=1080 %} 2x"
- alt=""
- class="img-fluid lazyload lazypreload">
- {% endif %}
- {% endwith %}
- </div>
- <div class="col-md-6 col-12 product__info">
- <h1 class="product__info__name">
- {{ product.translated }}
- </h1>
- {% if availability.available %}
- {% if show_variant_picker %}
- <div id="variant-price-component"></div>
- {% else %}
- <h2 class="product__info__price">
- <span>{% price_range availability.price_range %}</span>
- {% if availability.on_sale %}
- <small class="product__info__price__undiscounted">
- {% price availability.price_range_undiscounted %}
- </small>
- {% endif %}
- {% if availability.price_range_local_currency %}
- <br>
- <small class="text-info">
- &asymp;
- {% price availability.price_range_local_currency %}
- </small>
- {% endif %}
- {% if request.extensions.show_taxes_on_storefront %}
- <small>
- {% tax_rate request product as tax_rate %}
- {% if site.settings.display_gross_prices %}
- {% blocktrans trimmed with tax_rate=tax_rate context "Product details page vat rate value" %}
- including {{ tax_rate }}% VAT
- {% endblocktrans %}
- {% else %}
- {% blocktrans trimmed with tax_rate=tax_rate context "Product details page vat rate value" %}
- excluding {{ tax_rate }}% VAT
- {% endblocktrans %}
- {% endif %}
- </small>
- {% endif %}
- </h2>
- {% endif %}
- {% endif %}
- {% if availability.available %}
- {% block orderform %}
- {% if show_variant_picker %}
- {% csrf_token %}
- <div id="variant-picker" data-variant-picker-data="{{ variant_picker_data }}" data-action="{% url 'product:add-to-checkout' product_id=product.pk slug=product.get_slug %}"></div>
- {% else %}
- <form id="product-form" role="form" class="product-form clearfix" method="post" action="{% url 'product:add-to-checkout' product_id=product.pk slug=product.get_slug %}" novalidate>
- {% csrf_token %}
- {% bootstrap_field form.variant %}
- <div class="product__info__quantity">
- {% bootstrap_field form.quantity %}
- </div>
-
- <div class="form-group product__info__button">
- <button class="btn btn-primary">
- {% trans "Add to cart" context "Product details primary action" %}
- </button>
- </div>
- </form>
- {% endif %}
- {% endblock %}
- <div class="product__info__form-error">
- <small class="text-danger"></small>
- </div>
-
- {% else %}
- <p class="alert alert-warning">
- {% blocktrans context "Product details text" %}This product is currently <strong>unavailable</strong>.{% endblocktrans %}
- </p>
- {% endif %}
- <div class="product__info__description">
- <h3>{% trans "Description" context "Product details title" %}</h3>
- <hr>
- {% format_content content_json=description_json content_html=description_html %}
- </div>
- <hr>
- <table>
- {% for attribute_rel in product.attributes.all %}
- {% with attribute=attribute_rel.attribute %}
- <tr>
- <td>{{ attribute.translated }}:</td>
- <td>
- <strong>
- {% for value in attribute_rel.values.all %}
- {{ value.translated }}{% if not forloop.last %},{% endif %}
- {% endfor %}
- </strong>
- </td>
- </tr>
- {% endwith %}
- {% endfor %}
- </table>
- </div>
- </div>
-{% endblock content %}
diff --git a/templates/product/product_list_base.html b/templates/product/product_list_base.html
deleted file mode 100644
index 2bb9531daa..0000000000
--- a/templates/product/product_list_base.html
+++ /dev/null
@@ -1,169 +0,0 @@
-{% extends "base.html" %}
-{% load bootstrap_pagination from bootstrap4 %}
-{% load build_absolute_uri from urls %}
-{% load get_object_properties from attributes %}
-{% load get_thumbnail from product_images %}
-{% load i18n %}
-{% load shop %}
-{% load static %}
-
-{% block footer_scripts %}
- {{ block.super }}
-{% endblock footer_scripts %}
-
-{% block title %}
- {% if object.seo_title %}
- {{ object.translated.seo_title }}
- {% else %}
- {{ object.translated.name }} - {{ block.super }}
- {% endif %}
-{% endblock %}
-
-{% block meta_tags %}
- <meta property="og:title" content="{{ object.translated.seo_title|default:object.translated.name }}">
- {% get_object_properties object=object properties="seo_description,description" as seo_description %}
- <meta property="og:description" content="{{ seo_description }}">
- <meta name="description" content="{{ seo_description }}">
-
- {% if object.background_image %}
- <meta property="og:image"
- content="{% get_thumbnail object.background_image size='1080x440' method="thumbnail" rendition_key_set="background_images" %}">
- {% else %}
- <meta property="og:image" content="{% static "images/block1.png" %}">
- {% endif %}
-
- {% build_absolute_uri request=request location=object.get_absolute_url as object_url %}
- <meta property="og:url" content="{{ object_url }}">
- <link rel="canonical" href="{{ object_url }}?page={{ products_paginated.number }}">
-
- {% if products_paginated.has_previous %}
- <link rel="prev" href="{{ object_url }}?page={{ products_paginated.previous_page_number }}">
- {% endif %}
-
- {% if products_paginated.has_next %}
- <link rel="next" href="{{ object_url }}?page={{ products_paginated.next_page_number }}">
- {% endif %}
-{% endblock meta_tags %}
-
-{% block breadcrumb %}
- <div class="row">
- <div class="col-md-7">
- <ul class="breadcrumbs list-unstyled d-none d-md-block">
- {% block breadcrumb_part %}{% endblock %}
- </ul>
- </div>
- </div>
-{% endblock %}
-
-{% block topcontent %}
- {% if object.background_image %}
- <div class="row" id="product-list-image" alt="{{ object.background_image_alt }}"
- style="background-image: url({% get_thumbnail object.background_image size='1080x440' method="thumbnail" rendition_key_set="background_images" %})"></div>
- {% endif %}
-{% endblock topcontent %}
-
-{% block content %}
- {% block collection_published_warning %}{% endblock %}
- <div id="product-list-page">
- <div class="row">
- <div class="col-md-4 col-lg-3">
- {% block filters %}{% endblock filters %}
- </div>
- <div class="col-md-8 col-lg-9 product-list">
- <div class="product-list__header">
- <div class="product-list__header__title">
- <h1>
- <strong>{{ object.translated }}</strong>
- </h1>
- {% block title_tree %}{% endblock title_tree %}
- </div>
- <hr />
- <div>
- <h3 class="d-md-none filters-toggle">
- {% trans 'Filters' context 'Filter heading title' %}
- </h3>
- <div class="sort-by">
- <div class="click-area d-none"></div>
- <button class="btn btn-link">
- <div>
- <span>
- {% if now_sorted_by == 'name' %}
- {% blocktrans trimmed %}
- Sort by: <b>name</b>
- {% endblocktrans %}
- {% elif now_sorted_by == 'minimal_variant_price_amount' %}
- {% blocktrans trimmed %}
- Sort by: <b>price</b>
- {% endblocktrans %}
- {% endif %}
- </span>
- <div class="sort-order-icon">
- {% if is_descending %}
- <svg data-src="{% static "images/chevron-down.svg" %}" />
- {% else %}
- <svg data-src="{% static "images/chevron-up.svg" %}" />
- {% endif %}
- </div>
- </div>
- </button>
- <ul class="sort-list d-none">
- {% for choice, label in sort_by_choices.items %}
- <li>
- <div class="row">
- <div class="col-6">
- {% trans 'Sort by' context 'Product list filters' %}:
- <strong>{{ label }}</strong>
- </div>
- <div class="col-6">
- <div>
- <a href="{% get_sort_by_url choice %}">
- <span>{% trans 'ascending' context 'sort by option' %}</span>
- <div class="sort-order-icon float-right">
- <img class="lazyload lazypreload" data-src="{% static "images/arrow-up.svg" %}">
- </div>
- </a>
- <a href="{% get_sort_by_url choice descending=True %}">
- <span>{% trans 'descending' context 'sort by option' %}</span>
- <div class="sort-order-icon float-right">
- <img class="lazyload lazypreload" data-src="{% static "images/arrow-down.svg" %}">
- </div>
- </a>
- </div>
- </div>
- </div>
- </li>
- {% endfor %}
- </ul>
- </div>
- </div>
- <div>
- <div>
- {% if products %}
- <div class="row">
- {% include "product/_items.html" with products=products %}
- </div>
- <div class="row">
- <div class="m-auto">
- {% if products_paginated.has_other_pages %}
- {% bootstrap_pagination products_paginated extra=request.GET.urlencode %}
- {% endif %}
- </div>
- </div>
- {% else %}
- <div class="row no-results">
- <div class="col-12">
- <svg data-src="{% static "images/no-results-bg.svg" %}"
- width="360"
- height="360" />
- <p>{% trans "Sorry, no matches found for your request." context "Search without results text" %}</p>
- <p>{% trans "Try again or shop new arrivals." context "Search without results text" %}</p>
- </div>
- </div>
- {% endif %}
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
-{% endblock content %}
diff --git a/templates/search/results.html b/templates/search/results.html
deleted file mode 100644
index 75fc537c53..0000000000
--- a/templates/search/results.html
+++ /dev/null
@@ -1,41 +0,0 @@
-{% extends "base.html" %}
-{% load i18n %}
-{% load static %}
-{% load bootstrap_pagination from bootstrap4 %}
-
-{% block title %}{% trans "Search results" context "Search page title" %} {{ 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 home__featured">
- <div class="col-12">
- {% if query and results %}
- <div class="row">
- {% include "product/_items.html" with products=results %}
- </div>
- {% bootstrap_pagination results url=query_string %}
- {% else %}
- <div class="row no-results">
- <div class="col-12">
- <h2>{% trans "Search:" %} <strong>{{ query }}</strong></h2>
- <svg data-src="{% static "images/no-results-bg.svg" %}" width="360" height="360"/>
- <p>{% trans "Sorry, no matches found for your request." context "Search without results text" %}</p>
- <p>{% trans "Try again or shop new arrivals." context "Search without results text" %}</p>
- </div>
- </div>
- {% endif %}
- </div>
- </div>
-{% endblock content %}
diff --git a/templates/templated_email/dashboard/staff/promote_customer.email b/templates/templated_email/dashboard/staff/promote_customer.email
deleted file mode 100644
index 63ef9d6918..0000000000
--- a/templates/templated_email/dashboard/staff/promote_customer.email
+++ /dev/null
@@ -1,14 +0,0 @@
-{% load i18n %}
-{% block subject %}{% blocktrans %}Hello from {{ site_name }}!{% endblocktrans %}{% endblock %}
-
-{% block plain %}
-{% include 'templated_email/shared/_header.email' %}
-{% blocktrans context "Promote customer to staff member confirmation e-mail text" %}
-You're receiving this e-mail because you have been promoted to staff member at {{ domain }}.{% endblocktrans %}
-
-{% include 'templated_email/shared/_footer.email' %}
-{% endblock %}
-
-{% block html %}
-{% include 'templated_email/compiled/promote_customer.html' %}
-{% endblock %}
diff --git a/templates/templated_email/source/promote_customer.mjml b/templates/templated_email/source/promote_customer.mjml
deleted file mode 100644
index f96efdd7b7..0000000000
--- a/templates/templated_email/source/promote_customer.mjml
+++ /dev/null
@@ -1,25 +0,0 @@
-<mjml>
- <mj-head>
- <mj-include path="./shared/styles.mjml" />
- </mj-head>
- <mj-body>
- <mj-raw>
- {% load i18n %}
- </mj-raw>
- <mj-include path="./shared/header.mjml" />
- <mj-section>
- <mj-column>
- <mj-text font-size="16px">
- {% trans "Hi!" context "Standard e-mail greeting" %}
- </mj-text>
- <mj-text>
- {% blocktrans trimmed context "Promote customer to staff member confirmation e-mail text" %}
- You're receiving this e-mail because you have been promoted to staff member at {{ domain }}.<br/>
- To access dashboard please visit: <a href="{{ dashboard_url }}">{{ dashboard_url }}</a>
- {% endblocktrans %}
- </mj-text>
- </mj-column>
- </mj-section>
- <mj-include path="./shared/footer.mjml" />
- </mj-body>
-</mjml>