From a04941f872735d365db3637a3e75fda2873c0e7b Mon Sep 17 00:00:00 2001 From: Anton Kamalov Date: Thu, 21 Nov 2024 18:40:38 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D1=81=D0=BD=D0=BE=D0=B2=D1=8B=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D0=BE=D1=84=D0=BE=D1=80=D0=BC=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F=20=D0=BD=D0=B0=D0=BA=D0=BB=D0=B0=D0=B4=D0=BD=D1=8B?= =?UTF-8?q?=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App/Waybill/__init__.py | 4 ++- App/Waybill/templates/waybill.html | 56 +++++++++++++++++++----------- App/data/db_access.json | 2 +- App/static/css/waybill.css | 24 ++++++++----- App/templates/main_menu.html | 5 ++- 5 files changed, 58 insertions(+), 33 deletions(-) diff --git a/App/Waybill/__init__.py b/App/Waybill/__init__.py index c91ca76..66fdc1b 100644 --- a/App/Waybill/__init__.py +++ b/App/Waybill/__init__.py @@ -6,4 +6,6 @@ waybill_bp = Blueprint('waybill_bp', __name__, template_folder='templates') @check_auth def waybill(): if request.method == 'GET': - return render_template('waybill.html') \ No newline at end of file + return render_template('waybill.html') + print(request.form) + return 'OK' \ No newline at end of file diff --git a/App/Waybill/templates/waybill.html b/App/Waybill/templates/waybill.html index 4d17692..529270f 100644 --- a/App/Waybill/templates/waybill.html +++ b/App/Waybill/templates/waybill.html @@ -3,32 +3,46 @@ Авторизация - +

Заглушка для примера составления накладной

-
- -
- Фото товара -

Название товара 1

-

Цена: 500 руб.

-

Количество: 10 шт.

+
+
+ +
+ Фото товара +

Название товара 1

+

Цена: 500 руб.

+

Количество: 10 шт.

+
+ +
+
+
+ Фото товара +

Название товара 2

+

Цена: 1200 руб.

+

Количество: 5 шт.

+
+ +
+
+
+ Фото товара +

Название товара 3

+

Цена: 800 руб.

+

Количество: 7 шт.

+
+ +
+
-
- Фото товара -

Название товара 2

-

Цена: 1200 руб.

-

Количество: 5 шт.

+
+ +
-
- Фото товара -

Название товара 3

-

Цена: 800 руб.

-

Количество: 7 шт.

-
-
- +
\ No newline at end of file diff --git a/App/data/db_access.json b/App/data/db_access.json index a6ba414..16a79c5 100644 --- a/App/data/db_access.json +++ b/App/data/db_access.json @@ -7,6 +7,6 @@ "report_bp"], "Бухгалтер": [ "report_bp"], - "Поставщик": [ + "": [ "waybill_bp"] } \ No newline at end of file diff --git a/App/static/css/waybill.css b/App/static/css/waybill.css index 3d04723..048abb5 100644 --- a/App/static/css/waybill.css +++ b/App/static/css/waybill.css @@ -12,10 +12,6 @@ width: 250px; padding: 15px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); - transition: transform 0.2s; -} -.card:hover { - transform: scale(1.05); } .card img { width: 100%; @@ -26,17 +22,27 @@ .card h3 { margin: 10px 0; font-size: 18px; - color: #333; -} -.card p { - margin: 5px 0; - color: #555; } .price { font-weight: bold; color: #28a745; } .quantity { + margin: 10px 0; font-weight: bold; color: #007bff; +} +.input-container { + margin: 10px 0; +} +.input-container input { + width: 80%; + padding: 8px; + font-size: 14px; + border: 1px solid #ddd; + border-radius: 5px; +} +.button-container { + text-align: center; + margin: 20px 0; } \ No newline at end of file diff --git a/App/templates/main_menu.html b/App/templates/main_menu.html index 288fbd0..fed3c58 100644 --- a/App/templates/main_menu.html +++ b/App/templates/main_menu.html @@ -19,7 +19,10 @@ {% else %} -

Not implemented

+ + {% endif %} {% else %}