From 0aa3bdc3368dfaf4cf4072b66ee713fe317bff01 Mon Sep 17 00:00:00 2001 From: vlados31 Date: Mon, 3 Oct 2022 10:42:01 +0300 Subject: [PATCH] Changes by vlad --- static/css/._style.css | Bin 4096 -> 0 bytes templates/cart.html | 30 ------------------ templates/catalog.html | 45 --------------------------- templates/product-view.html | 26 ---------------- templates/registration/register.html | 20 ++++++++++++ 5 files changed, 20 insertions(+), 101 deletions(-) delete mode 100644 static/css/._style.css delete mode 100644 templates/cart.html delete mode 100644 templates/catalog.html delete mode 100644 templates/product-view.html create mode 100644 templates/registration/register.html diff --git a/static/css/._style.css b/static/css/._style.css deleted file mode 100644 index bbe2027849714f7267e60ca6d9f3382ec73e1730..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4096 zcmZQz6=P>$Vqox1Ojhs@R)|o50+1L3ClDJkFz{^v(m+1nBL)UWIUt(=a103v0xGG8 z=wR3bWJjQB0htaG7hqtJO3u&KODrhJN!80qEG{W6PEAQkEJ;-k2!`r81Ef6|82AzD zaubttfP(d>>ykifbheyV0MRTA+MypBg@pXK?_f#W;p#VWJ`01`>)&^})I62e9{H#l z<#QC|u2C==0;3@?8UmvsFd71*Aut*OqaiRF0;3@?8UmvsFib;$5$G=v1_QZ}jLc$% zqSWI2(xT*4g|z&lY=z9clGMDC%>2B>oSaI9oYb@ug`}Lsylh}!7^-VXQ>gxjdqsvp H?*D%PMs`48 diff --git a/templates/cart.html b/templates/cart.html deleted file mode 100644 index 46b9190..0000000 --- a/templates/cart.html +++ /dev/null @@ -1,30 +0,0 @@ -{% extends 'base.html' %} -{% block title %} Корзина {% endblock %} - -{% block styles %} - {% load static %} - -{% endblock %} - -{% block content %} -

Ваша корзина

- {% if user %} - {% if cart_objects %} - {% for ojb in cart_objects %} -{# 'item_count', 'prod', 'prod__prod_name', 'prod__prod_price', 'prod__prod_available', 'prod__prod_photo', 'prod__category__cat_name' #} - - photo -
-
{{ ojb.0 }}шт
-
{{ ojb.2 }}
-
{{ ojb.3 }} доступно
-
-
- {% endfor %} - {% else %} -

Корзина пуста!

- {% endif %} - {% else %} - нужно войти... - {% endif %} -{% endblock %} diff --git a/templates/catalog.html b/templates/catalog.html deleted file mode 100644 index ad25db5..0000000 --- a/templates/catalog.html +++ /dev/null @@ -1,45 +0,0 @@ -{% extends 'base.html' %} -{% block title %} Каталог {% endblock %} - -{% block styles %} - {% load static %} - -{% endblock %} - -{% block content %} -

- Каталог - {% if cat_name %} - / {{ cat_name }} - {% endif %} -

-
-
-

Категории

- -
- {% if products %} -
- {% for p in products %} - - photo -
-
{{ p.prod_name }}
-
{{ p.prod_price }}
-
-
- {% endfor %} -
- {% else %} -
-

Упс, тут нет доступных товаров...

-
- {% endif %} -
- -{% endblock %} diff --git a/templates/product-view.html b/templates/product-view.html deleted file mode 100644 index 8ebb46a..0000000 --- a/templates/product-view.html +++ /dev/null @@ -1,26 +0,0 @@ -{% extends 'base.html' %} -{% block title %} Каталог {% endblock %} - -{% block styles %} - {% load static %} - -{% endblock %} - -{% block content %} -

{{ product.prod_name }}

- {% if product %} -
-
- photo -
-
-

Цена: {{ product.prod_price }}

-

{{ product.prod_description }}

-
-
- {% else %} -
-

Упс, товар не найден...

-
- {% endif %} -{% endblock %} diff --git a/templates/registration/register.html b/templates/registration/register.html new file mode 100644 index 0000000..a7c06f9 --- /dev/null +++ b/templates/registration/register.html @@ -0,0 +1,20 @@ +{% extends 'base.html' %} +{% block title %} Аккаунт | регистрация {% endblock %} + +{% block content %} +

Ваш аккаунт

+

Регистрация

+
+ {% csrf_token %} + + + {{ form.as_table }} + +
+ +
+ +
+ Уже зарегистрированы? Вход +
+{% endblock %}