diff --git a/templates/bootstrap/forms/authentication.html b/templates/bootstrap/forms/authentication.html new file mode 100644 index 0000000..33ee4e9 --- /dev/null +++ b/templates/bootstrap/forms/authentication.html @@ -0,0 +1,11 @@ +{% load crispy_forms_filters %} + + +{% spaceless %} +
+ {{ field }} + {% if field.has_errors %} +
{{ field.errors|safe }}
+ {% endif %} +
+{% endspaceless %} diff --git a/templates/bootstrap/forms/contact_us.html b/templates/bootstrap/forms/contact_us.html new file mode 100644 index 0000000..d1ffafa --- /dev/null +++ b/templates/bootstrap/forms/contact_us.html @@ -0,0 +1,7 @@ +{% load crispy_forms_tags %} + +{% if input.tag == "input" %} + {{ input }} +{% else %} + {{ field }} +{% endif %} diff --git a/templates/bootstrap/forms/product_search.html b/templates/bootstrap/forms/product_search.html new file mode 100644 index 0000000..9b3c9ee --- /dev/null +++ b/templates/bootstrap/forms/product_search.html @@ -0,0 +1,4 @@ +{% load static %} +{% load crispy_forms_field %} + +{% if input.name == "search" %}{% else %}{{ field }}{% endif %} diff --git a/templates/bootstrap/forms/registration.html b/templates/bootstrap/forms/registration.html new file mode 100644 index 0000000..2320687 --- /dev/null +++ b/templates/bootstrap/forms/registration.html @@ -0,0 +1,37 @@ +{% load accounts_ext_filters %} +{% load crispy_forms_filters %} + +{% spaceless %} +
+
+ {% if "captcha" in field.id_for_label %} + {{ field.field.widget.image_and_audio|safe }} + {% elif "agreement" in field.id_for_label %} +
+ Согласен с условиями + обработки персональных + данных, оплаты, доставки, + и возврата товаров +
+ {% else %} + {{ field.label }}{% if field.field.required %}*{% endif %} + {% endif %} +
+
+
+ {% if "captcha" in field.id_for_label %} + {{ field.field.widget.hidden_field|safe }} + {{ field.field.widget.text_field|safe }} + {% else %} + {{ field }} + {% endif %} + {% if field.field.help_text %} + + {% endif %} +
+ {% if field.has_errors %} +
{{ field.errors|safe }}
+ {% endif %} +
+
+{% endspaceless %} diff --git a/templates/components/footer.html b/templates/components/footer.html new file mode 100644 index 0000000..dab181b --- /dev/null +++ b/templates/components/footer.html @@ -0,0 +1,37 @@ +{% load static %} + + diff --git a/templates/components/header.html b/templates/components/header.html new file mode 100644 index 0000000..5db37ff --- /dev/null +++ b/templates/components/header.html @@ -0,0 +1,76 @@ +{% load static %} + +
+
+
+
+ + +
+
+ +
+
+ Пн - пт, 9:00 - 19:00 +
+
+
+
+
+
+ {% if not request.user.is_authenticated %} + Вход + Регистрация + {% else %} + + {% endif %} + + Перейти в корзину + {% if request.user.is_authenticated %} + 5 + {% endif %} + +
+ +
+
+
+ {% if request.user.is_authenticated %} +
+ +
+ {% endif %} +
+
+
+
diff --git a/templates/components/navbar.html b/templates/components/navbar.html new file mode 100644 index 0000000..c687ff1 --- /dev/null +++ b/templates/components/navbar.html @@ -0,0 +1,18 @@ +{% load static %} + +
+
+ +
+