1.0.5 add error_message for subscribe

This commit is contained in:
2024-05-08 14:24:06 +03:00
parent 4b588eb6e4
commit 14691d0ee4
6 changed files with 92 additions and 23 deletions

View File

@@ -63,27 +63,44 @@
{% if item.id != subscribe_for_user.subscribe.id %}
<div class="another_subscribe">
<div class="name_subscribe_another padding-n-width-another-subscribes">{{ item.name }}</div>
<div class="text_another_subscribe padding-n-width-another-subscribes">
{% translate "Стоимость:" %}<span class="orange-text">
{% if item.price %}
{{ item.price|floatformat }}$
{% else %}
{% translate "Бесплатно" %}
{% endif %}
</span>
<div class="subscribe_wrpapper">
<div class="name_subscribe_another padding-n-width-another-subscribes">{{ item.name }}</div>
<div class="text_another_subscribe padding-n-width-another-subscribes">
{% translate "Стоимость:" %}
<span class="orange-text">
{% if item.price %}
{{ item.price|floatformat }}$
{% else %}
{% translate "Бесплатно" %}
{% endif %}
</span>
</div>
<div class="text_another_subscribe padding-n-width-another-subscribes ">
{% translate "Период" %}: <span class="orange-text">{{ item.period_name }}</span>
</div>
{% if not item.order_error %}
<button class="read_more_about_subscribe"
onclick="send_subscribe({{ item.id }},'{% if page.url == 'for_movers' or page.url == 'for_customers' %}a{% endif %}','{% url "profile_page" "my_subscribe" %}')">{% translate "Перейти" %}
</button>
{% endif %}
</div>
<div class="text_another_subscribe padding-n-width-another-subscribes ">
{% translate "Период" %}: <span class="orange-text">{{ item.period_name }}</span>
</div>
<button class="read_more_about_subscribe" onclick="send_subscribe({{ item.id }},'{% if page.url == 'for_movers' or page.url == 'for_customers' %}a{% endif %}','{% url "profile_page" "my_subscribe" %}')">{% translate "Перейти" %}</button>
{% if item.order_error %}
<div class="error_order">
<div class="error_title">
<img class="error_icon" src="/static/img/svg/Warning.svg" alt="">
{% translate "Ошибка оплаты" %}
</div>
<div class="error_title">{% translate "Сообщение от банка:" %} <span class="error_text">{{ item.order_error }}</span></div>
<div class="read_more_about_subscribe error"
onclick="send_subscribe({{ item.id }},'{% if page.url == 'for_movers' or page.url == 'for_customers' %}a{% endif %}','{% url "profile_page" "my_subscribe" %}')"
>
<img class="error_icon filter-orange" src="/static/img/svg/ClockCounterClockwise.svg" alt="">
{% translate "Повторить оплату" %}
</div>
</div>
{% endif %}
</div>
{% if item.order_error %}
<div>
<div>Ошибка оплаты</div>
<div>{{ item.order_error }}</div>
</div>
{% endif %}
{% endif %}

View File

@@ -90,7 +90,8 @@
</a>
<div class="button_raise_route">
<button onclick="editRoute({{ route.id }})"
<button
{# onclick="editRoute({{ route.id }})"#}
id="raise_route">
{% translate "Увеличить просмотры" %}
</button>