From 14691d0ee4b046a3b63f635b10d641a637bb7eca Mon Sep 17 00:00:00 2001 From: ArtemB Date: Wed, 8 May 2024 14:24:06 +0300 Subject: [PATCH] 1.0.5 add error_message for subscribe --- static/css/styles(boris).css | 43 ++++++++++++++- static/css/styles.css | 5 ++ static/img/svg/ClockCounterClockwise.svg | 4 ++ static/img/svg/Warning.svg | 5 ++ .../blocks/profile/b_subscribe_current.html | 55 ++++++++++++------- templates/widgets/w_route_info.html | 3 +- 6 files changed, 92 insertions(+), 23 deletions(-) create mode 100644 static/img/svg/ClockCounterClockwise.svg create mode 100644 static/img/svg/Warning.svg diff --git a/static/css/styles(boris).css b/static/css/styles(boris).css index e6f2c12..c747b96 100644 --- a/static/css/styles(boris).css +++ b/static/css/styles(boris).css @@ -1821,14 +1821,18 @@ a.open_inf_carrier{ .another_subscribe{ width: calc(100% - 50px); - padding: 0 20px; + padding: 10px 20px; background: #FFFFFF; box-shadow: -1px 4px 10px 0 rgba(198, 199, 203, 0.20), 0 -1px 10px 0 rgba(198, 199, 203, 0.20); - display: flex; + /*display: flex;*/ margin-bottom: 20px; border-radius: 10px; + /*height: 76px;*/ +} + +.subscribe_wrpapper { + display: flex; align-items: center; - height: 76px; } .name_subscribe_another{ @@ -1859,6 +1863,39 @@ a.open_inf_carrier{ height: 44px; width: 160px; } +.read_more_about_subscribe.error{ + background: unset; + color: #FF613A; + width: unset; + height: unset; + font-size: 15px; + font-weight: 600; + cursor: pointer; +} + +.error_order { + display: flex; + justify-content: space-between; + align-items: center; + border: 1px solid #FF613A; + padding: 5px; + border-radius: 10px; + margin-top: 10px; + width: 100%; +} +.error_icon{ + vertical-align: middle; +} +.error_title { + font-weight: 600; + font-size: 14px; +} +.error_text { + font-weight: 400; + font-size: 12px; +} + + .subscribe_was_paid{ color: #27242499; diff --git a/static/css/styles.css b/static/css/styles.css index 727aa96..7ad4963 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -2023,6 +2023,11 @@ button#raise_route { .remove_route.hide{ display: none; } + +.filter-orange{ + filter: invert(43%) sepia(93%) saturate(1113%) hue-rotate(336deg) brightness(100%) contrast(102%); +} + .msg_send{ font-size: 24px; text-align: center; diff --git a/static/img/svg/ClockCounterClockwise.svg b/static/img/svg/ClockCounterClockwise.svg new file mode 100644 index 0000000..73aa624 --- /dev/null +++ b/static/img/svg/ClockCounterClockwise.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/img/svg/Warning.svg b/static/img/svg/Warning.svg new file mode 100644 index 0000000..926e607 --- /dev/null +++ b/static/img/svg/Warning.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/templates/blocks/profile/b_subscribe_current.html b/templates/blocks/profile/b_subscribe_current.html index b75e46e..886f1dd 100644 --- a/templates/blocks/profile/b_subscribe_current.html +++ b/templates/blocks/profile/b_subscribe_current.html @@ -63,27 +63,44 @@ {% if item.id != subscribe_for_user.subscribe.id %}
-
{{ item.name }}
-
- {% translate "Стоимость:" %} - {% if item.price %} - {{ item.price|floatformat }}$ - {% else %} - {% translate "Бесплатно" %} - {% endif %} - + -
- {% translate "Период" %}: {{ item.period_name }} -
- + + {% if item.order_error %} +
+
+ + {% translate "Ошибка оплаты" %} +
+
{% translate "Сообщение от банка:" %} {{ item.order_error }}
+
+ + {% translate "Повторить оплату" %} +
+
+ {% endif %}
- {% if item.order_error %} -
-
Ошибка оплаты
-
{{ item.order_error }}
-
- {% endif %} {% endif %} diff --git a/templates/widgets/w_route_info.html b/templates/widgets/w_route_info.html index 5d138f4..538b7e4 100644 --- a/templates/widgets/w_route_info.html +++ b/templates/widgets/w_route_info.html @@ -90,7 +90,8 @@
-