You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.4 KiB
27 lines
1.4 KiB
{% load static %}
|
|
<div class="popup js-popup-gift-certificate">
|
|
<div class="popup__wrap popup__wrap_sm js-popup-wrap">
|
|
<button class="popup__close js-popup-close">
|
|
<svg class="icon icon-close">
|
|
<use xlink:href={% static "img/sprite.svg" %}#icon-close></use>
|
|
</svg>
|
|
</button>
|
|
<div class="popup__body">
|
|
<div class="subtitle">{{ user_gift_certificate.user.get_full_name }}
|
|
подарил{% if user_gift_certificate.user.gender = 'f' %}а{% endif %} вам Сертификат!</div>
|
|
<div class="gift-certificates__item">
|
|
<div class="gift-certificates__preview theme_pink2"></div>
|
|
<div class="gift-certificates__details">
|
|
<span class="gift-certificates__title theme theme_pink2">подарочный сертификат</span>
|
|
<div class="gift-certificates__price">{{ gift_certificate.price|floatformat:"-2" }}₽</div>
|
|
</div>
|
|
<a class="gift-certificates__buy-btn btn"
|
|
{% if request.user.is_authenticated %}
|
|
href="{% url 'gift-certificate-get' user_gift_certificate.code %}"
|
|
{% else %}
|
|
href="#" data-popup=".js-popup-auth" data-auth-next-url="{% url 'gift-certificate-get' user_gift_certificate.code %}"
|
|
{% endif %}>Получить сертификат</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|