lfs-theme 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lfs_theme/__init__.py +1 -0
- lfs_theme/locale/cs/LC_MESSAGES/django.mo +0 -0
- lfs_theme/locale/cs/LC_MESSAGES/django.po +1299 -0
- lfs_theme/locale/de/LC_MESSAGES/django.mo +0 -0
- lfs_theme/locale/de/LC_MESSAGES/django.po +1466 -0
- lfs_theme/locale/en/LC_MESSAGES/django.mo +0 -0
- lfs_theme/locale/en/LC_MESSAGES/django.po +1083 -0
- lfs_theme/locale/es/LC_MESSAGES/django.mo +0 -0
- lfs_theme/locale/es/LC_MESSAGES/django.po +1100 -0
- lfs_theme/locale/es_MX/LC_MESSAGES/django.mo +0 -0
- lfs_theme/locale/es_MX/LC_MESSAGES/django.po +1236 -0
- lfs_theme/locale/fr/LC_MESSAGES/django.mo +0 -0
- lfs_theme/locale/fr/LC_MESSAGES/django.po +1223 -0
- lfs_theme/locale/it/LC_MESSAGES/django.mo +0 -0
- lfs_theme/locale/it/LC_MESSAGES/django.po +1267 -0
- lfs_theme/locale/nl/LC_MESSAGES/django.mo +0 -0
- lfs_theme/locale/nl/LC_MESSAGES/django.po +1113 -0
- lfs_theme/locale/pl/LC_MESSAGES/django.mo +0 -0
- lfs_theme/locale/pl/LC_MESSAGES/django.po +1285 -0
- lfs_theme/locale/ro/LC_MESSAGES/django.mo +0 -0
- lfs_theme/locale/ro/LC_MESSAGES/django.po +1108 -0
- lfs_theme/locale/ru/LC_MESSAGES/django.mo +0 -0
- lfs_theme/locale/ru/LC_MESSAGES/django.po +1107 -0
- lfs_theme/locale/zh_CN/LC_MESSAGES/django.mo +0 -0
- lfs_theme/locale/zh_CN/LC_MESSAGES/django.po +1138 -0
- lfs_theme/locale/zh_TW/LC_MESSAGES/django.mo +0 -0
- lfs_theme/locale/zh_TW/LC_MESSAGES/django.po +1139 -0
- lfs_theme/navigation.py +81 -0
- lfs_theme/package-lock.json +503 -0
- lfs_theme/package.json +23 -0
- lfs_theme/static/lfs_theme/css/lfs_theme.css +1 -0
- lfs_theme/static/lfs_theme/img/favicon.svg +1 -0
- lfs_theme/static/lfs_theme/js/addons/bulk_prices.js +26 -0
- lfs_theme/static/lfs_theme/js/addons/carousel.js +8 -0
- lfs_theme/static/lfs_theme/js/cart.js +49 -0
- lfs_theme/static/lfs_theme/js/checkout.js +72 -0
- lfs_theme/static/lfs_theme/js/main.js +229 -0
- lfs_theme/static/lfs_theme/js/product.js +136 -0
- lfs_theme/static/lfs_theme/js/rating.js +24 -0
- lfs_theme/static/lfs_theme/scss/_added-to-cart.scss +73 -0
- lfs_theme/static/lfs_theme/scss/_base.scss +71 -0
- lfs_theme/static/lfs_theme/scss/_breadcrumbs.scss +23 -0
- lfs_theme/static/lfs_theme/scss/_breakpoints.scss +18 -0
- lfs_theme/static/lfs_theme/scss/_cart.scss +83 -0
- lfs_theme/static/lfs_theme/scss/_checkout.scss +130 -0
- lfs_theme/static/lfs_theme/scss/_colors.scss +15 -0
- lfs_theme/static/lfs_theme/scss/_footer.scss +84 -0
- lfs_theme/static/lfs_theme/scss/_header.scss +82 -0
- lfs_theme/static/lfs_theme/scss/_menu.scss +290 -0
- lfs_theme/static/lfs_theme/scss/_one-page-checkout.scss +75 -0
- lfs_theme/static/lfs_theme/scss/_portlets.scss +51 -0
- lfs_theme/static/lfs_theme/scss/_product-cards.scss +97 -0
- lfs_theme/static/lfs_theme/scss/_product-page.scss +398 -0
- lfs_theme/static/lfs_theme/scss/_rating.scss +73 -0
- lfs_theme/static/lfs_theme/scss/_search.scss +52 -0
- lfs_theme/static/lfs_theme/scss/_swiper.scss +56 -0
- lfs_theme/static/lfs_theme/scss/bootstrap-custom.scss +20 -0
- lfs_theme/static/lfs_theme/scss/lfs_theme.scss +17 -0
- lfs_theme/static/lfs_theme/vendor/bootstrap/bootstrap.bundle.min.js +7 -0
- lfs_theme/static/lfs_theme/vendor/bootstrap/bootstrap.bundle.min.js.map +1 -0
- lfs_theme/static/lfs_theme/vendor/bootstrap/bootstrap.min.css +5 -0
- lfs_theme/static/lfs_theme/vendor/bootstrap-icons/bootstrap-icons.css +2106 -0
- lfs_theme/static/lfs_theme/vendor/bootstrap-icons/bootstrap-icons.json +2080 -0
- lfs_theme/static/lfs_theme/vendor/bootstrap-icons/bootstrap-icons.min.css +5 -0
- lfs_theme/static/lfs_theme/vendor/bootstrap-icons/bootstrap-icons.scss +2118 -0
- lfs_theme/static/lfs_theme/vendor/bootstrap-icons/fonts/bootstrap-icons.woff +0 -0
- lfs_theme/static/lfs_theme/vendor/bootstrap-icons/fonts/bootstrap-icons.woff2 +0 -0
- lfs_theme/static/lfs_theme/vendor/htmx/htmx.min.js +1 -0
- lfs_theme/static/lfs_theme/vendor/swiper/swiper-bundle.min.css +13 -0
- lfs_theme/static/lfs_theme/vendor/swiper/swiper-bundle.min.js +14 -0
- lfs_theme/static/lfs_theme/vendor/swiper/swiper-bundle.min.js.map +1 -0
- lfs_theme/templates/404.html +14 -0
- lfs_theme/templates/500.html +8 -0
- lfs_theme/templates/lfs/addresses/address_form.html +8 -0
- lfs_theme/templates/lfs/addresses/address_view.html +35 -0
- lfs_theme/templates/lfs/base.html +182 -0
- lfs_theme/templates/lfs/cart/added_to_cart.html +101 -0
- lfs_theme/templates/lfs/cart/added_to_cart_items.html +102 -0
- lfs_theme/templates/lfs/cart/cart.html +22 -0
- lfs_theme/templates/lfs/cart/cart_inline.html +310 -0
- lfs_theme/templates/lfs/catalog/breadcrumbs.html +42 -0
- lfs_theme/templates/lfs/catalog/categories/category/default.html +30 -0
- lfs_theme/templates/lfs/catalog/categories/product/default.html +80 -0
- lfs_theme/templates/lfs/catalog/categories/product/products_navigation.html +50 -0
- lfs_theme/templates/lfs/catalog/category_base.html +45 -0
- lfs_theme/templates/lfs/catalog/packing_result.html +5 -0
- lfs_theme/templates/lfs/catalog/product_base.html +47 -0
- lfs_theme/templates/lfs/catalog/product_navigation.html +16 -0
- lfs_theme/templates/lfs/catalog/products/_product_properties.html +24 -0
- lfs_theme/templates/lfs/catalog/products/product_inline.html +566 -0
- lfs_theme/templates/lfs/catalog/sorting.html +17 -0
- lfs_theme/templates/lfs/catalog/top_level_categories.html +10 -0
- lfs_theme/templates/lfs/checkout/address_summary.html +11 -0
- lfs_theme/templates/lfs/checkout/checkout_cart_inline.html +204 -0
- lfs_theme/templates/lfs/checkout/empty_page_checkout.html +24 -0
- lfs_theme/templates/lfs/checkout/login.html +107 -0
- lfs_theme/templates/lfs/checkout/new_addresses.html +56 -0
- lfs_theme/templates/lfs/checkout/new_check_and_pay.html +117 -0
- lfs_theme/templates/lfs/checkout/new_payment_and_shipping.html +42 -0
- lfs_theme/templates/lfs/checkout/one_page_checkout.html +219 -0
- lfs_theme/templates/lfs/checkout/payment_inline.html +20 -0
- lfs_theme/templates/lfs/checkout/shipping_inline.html +23 -0
- lfs_theme/templates/lfs/checkout/stepper.html +20 -0
- lfs_theme/templates/lfs/checkout/thank_you_page.html +34 -0
- lfs_theme/templates/lfs/checkout/voucher_inline.html +32 -0
- lfs_theme/templates/lfs/contact/contact_form.html +43 -0
- lfs_theme/templates/lfs/contact/contact_form_sent.html +22 -0
- lfs_theme/templates/lfs/customer/account.html +15 -0
- lfs_theme/templates/lfs/customer/addresses.html +62 -0
- lfs_theme/templates/lfs/customer/base.html +30 -0
- lfs_theme/templates/lfs/customer/data.html +90 -0
- lfs_theme/templates/lfs/customer/email.html +29 -0
- lfs_theme/templates/lfs/customer/login.html +91 -0
- lfs_theme/templates/lfs/customer/order.html +21 -0
- lfs_theme/templates/lfs/customer/orders.html +83 -0
- lfs_theme/templates/lfs/customer/password.html +28 -0
- lfs_theme/templates/lfs/mail/contact_mail.html +28 -0
- lfs_theme/templates/lfs/mail/mail.css +35 -0
- lfs_theme/templates/lfs/mail/mail_html_footer.html +3 -0
- lfs_theme/templates/lfs/mail/mail_text_footer.html +2 -0
- lfs_theme/templates/lfs/mail/new_user_mail.html +17 -0
- lfs_theme/templates/lfs/mail/new_user_mail.txt +7 -0
- lfs_theme/templates/lfs/mail/new_user_mail_subject.txt +1 -0
- lfs_theme/templates/lfs/mail/order_details.html +299 -0
- lfs_theme/templates/lfs/mail/order_details.txt +63 -0
- lfs_theme/templates/lfs/mail/order_paid_mail.html +18 -0
- lfs_theme/templates/lfs/mail/order_paid_mail.txt +7 -0
- lfs_theme/templates/lfs/mail/order_paid_subject.txt +1 -0
- lfs_theme/templates/lfs/mail/order_received_mail.html +18 -0
- lfs_theme/templates/lfs/mail/order_received_mail.txt +8 -0
- lfs_theme/templates/lfs/mail/order_received_subject.txt +1 -0
- lfs_theme/templates/lfs/mail/order_sent_mail.html +18 -0
- lfs_theme/templates/lfs/mail/order_sent_mail.txt +8 -0
- lfs_theme/templates/lfs/mail/order_sent_subject.txt +1 -0
- lfs_theme/templates/lfs/mail/review_added_mail.html +44 -0
- lfs_theme/templates/lfs/mail/review_added_mail.txt +15 -0
- lfs_theme/templates/lfs/manufacturers/manufacturer.html +29 -0
- lfs_theme/templates/lfs/manufacturers/manufacturers.html +48 -0
- lfs_theme/templates/lfs/manufacturers/products.html +16 -0
- lfs_theme/templates/lfs/order/lfs_order_tmpl.html +229 -0
- lfs_theme/templates/lfs/page/page.html +41 -0
- lfs_theme/templates/lfs/page/pages.html +28 -0
- lfs_theme/templates/lfs/portlets/average_rating.html +18 -0
- lfs_theme/templates/lfs/portlets/cart.html +27 -0
- lfs_theme/templates/lfs/portlets/categories.html +22 -0
- lfs_theme/templates/lfs/portlets/category_children.html +14 -0
- lfs_theme/templates/lfs/portlets/delivery_time.html +21 -0
- lfs_theme/templates/lfs/portlets/featured.html +62 -0
- lfs_theme/templates/lfs/portlets/filter.html +197 -0
- lfs_theme/templates/lfs/portlets/forsale.html +63 -0
- lfs_theme/templates/lfs/portlets/latest.html +62 -0
- lfs_theme/templates/lfs/portlets/pages.html +22 -0
- lfs_theme/templates/lfs/portlets/portlet.html +1 -0
- lfs_theme/templates/lfs/portlets/recent_products.html +18 -0
- lfs_theme/templates/lfs/portlets/related_products.html +27 -0
- lfs_theme/templates/lfs/portlets/text_portlet.html +8 -0
- lfs_theme/templates/lfs/portlets/topseller.html +27 -0
- lfs_theme/templates/lfs/reviews/rating_mail.html +16 -0
- lfs_theme/templates/lfs/reviews/rating_mail.txt +8 -0
- lfs_theme/templates/lfs/search/livesearch_results.html +47 -0
- lfs_theme/templates/lfs/search/search_results.html +101 -0
- lfs_theme/templates/lfs/shipping/shipping_portlet.html +19 -0
- lfs_theme/templates/lfs/shipping/shipping_tag.html +13 -0
- lfs_theme/templates/lfs/shop/google_analytics_ecommerce.html +37 -0
- lfs_theme/templates/lfs/shop/google_analytics_tracking.html +11 -0
- lfs_theme/templates/lfs/shop/lfs_form.html +6 -0
- lfs_theme/templates/lfs/shop/menu.html +8 -0
- lfs_theme/templates/lfs/shop/robots.txt +17 -0
- lfs_theme/templates/lfs/shop/shop.html +113 -0
- lfs_theme/templates/lfs/shop/tabs.html +18 -0
- lfs_theme/templates/lfs_carousel/carousel.html +25 -0
- lfs_theme/templates/lfs_theme/addons/bulk_prices.html +34 -0
- lfs_theme/templates/lfs_theme/addons/bulk_prices_scripts.html +3 -0
- lfs_theme/templates/lfs_theme/addons/carousel.html +2 -0
- lfs_theme/templates/lfs_theme/addons/cookie_consent_body.html +3 -0
- lfs_theme/templates/lfs_theme/addons/cookie_consent_head.html +2 -0
- lfs_theme/templates/lfs_theme/addons/cookie_consent_link.html +2 -0
- lfs_theme/templates/lfs_theme/addons/cookie_consent_scripts.html +2 -0
- lfs_theme/templates/lfs_theme/addons/gtm/added_to_cart_script.html +1 -0
- lfs_theme/templates/lfs_theme/addons/gtm/begin_checkout_script.html +1 -0
- lfs_theme/templates/lfs_theme/addons/gtm/consent_script.html +2 -0
- lfs_theme/templates/lfs_theme/addons/gtm/gtm_noscript.html +1 -0
- lfs_theme/templates/lfs_theme/addons/gtm/gtm_script.html +1 -0
- lfs_theme/templates/lfs_theme/addons/gtm/purchase_script.html +1 -0
- lfs_theme/templates/lfs_theme/addons/gtm/view_item_list_script.html +1 -0
- lfs_theme/templates/lfs_theme/addons/gtm/view_item_script.html +1 -0
- lfs_theme/templates/lfs_theme/addons/samples.html +14 -0
- lfs_theme/templates/lfs_theme/addons/stripe_card_fields.html +25 -0
- lfs_theme/templates/lfs_theme/addons/stripe_scripts.html +3 -0
- lfs_theme/templates/lfs_theme/categories_footer.html +16 -0
- lfs_theme/templates/lfs_theme/mobile_menu.html +11 -0
- lfs_theme/templates/lfs_theme/mobile_menu_item.html +28 -0
- lfs_theme/templates/lfs_theme/og_image.html +11 -0
- lfs_theme/templates/lfs_theme/og_share_card.html +11 -0
- lfs_theme/templates/lfs_theme/star_rating.html +2 -0
- lfs_theme/templates/lfs_theme/top_nav.html +41 -0
- lfs_theme/templates/pagination/pagination.html +26 -0
- lfs_theme/templates/registration/password_reset_complete.html +31 -0
- lfs_theme/templates/registration/password_reset_confirm.html +62 -0
- lfs_theme/templates/registration/password_reset_done.html +28 -0
- lfs_theme/templates/registration/password_reset_email.html +15 -0
- lfs_theme/templates/registration/password_reset_form.html +38 -0
- lfs_theme/templates/reviews/already_rated.html +11 -0
- lfs_theme/templates/reviews/average_for_instance.html +7 -0
- lfs_theme/templates/reviews/review_form.html +72 -0
- lfs_theme/templates/reviews/review_preview.html +67 -0
- lfs_theme/templates/reviews/reviews_for_instance.html +36 -0
- lfs_theme/templates/reviews/thank_you.html +17 -0
- lfs_theme/templatetags/__init__.py +0 -0
- lfs_theme/templatetags/lfs_theme_tags.py +227 -0
- lfs_theme/tests/__init__.py +0 -0
- lfs_theme/tests/settings.py +86 -0
- lfs_theme/tests/test_addons.py +30 -0
- lfs_theme/tests/test_category_page.py +66 -0
- lfs_theme/tests/test_contact.py +24 -0
- lfs_theme/tests/test_layout.py +63 -0
- lfs_theme/tests/test_manufacturers.py +68 -0
- lfs_theme/tests/test_mobile_menu.py +32 -0
- lfs_theme/tests/test_navigation.py +145 -0
- lfs_theme/tests/test_organization.py +42 -0
- lfs_theme/tests/test_page.py +25 -0
- lfs_theme/tests/test_pages.py +22 -0
- lfs_theme/tests/test_product_group.py +131 -0
- lfs_theme/tests/test_product_images.py +103 -0
- lfs_theme/tests/test_star_rating.py +100 -0
- lfs_theme/tests/test_titles.py +60 -0
- lfs_theme/tests/urls.py +14 -0
- lfs_theme/tests/urls_without_theme.py +5 -0
- lfs_theme/urls.py +9 -0
- lfs_theme/views.py +20 -0
- lfs_theme-1.0.0.dist-info/METADATA +73 -0
- lfs_theme-1.0.0.dist-info/RECORD +235 -0
- lfs_theme-1.0.0.dist-info/WHEEL +5 -0
- lfs_theme-1.0.0.dist-info/licenses/LICENSE.txt +27 -0
- lfs_theme-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,566 @@
|
|
|
1
|
+
{% load i18n %}
|
|
2
|
+
{% load static %}
|
|
3
|
+
{% load lfs_tags %}
|
|
4
|
+
{% load l10n %}
|
|
5
|
+
{% load reviews_tags %}
|
|
6
|
+
{% load lfs_seo_tags %}
|
|
7
|
+
{% load lfs_theme_tags %}
|
|
8
|
+
{% addon_installed "lfs_bulk_prices" as has_bulk_prices %}
|
|
9
|
+
|
|
10
|
+
<script type="application/ld+json">
|
|
11
|
+
{
|
|
12
|
+
"@context": "https://schema.org",
|
|
13
|
+
"@type": "Product",
|
|
14
|
+
"@id": "https://{{ request.get_host|escapejs }}{{ product.get_absolute_url|escapejs }}#product",
|
|
15
|
+
"name": "{{ product|variant_name|escapejs }}",
|
|
16
|
+
"url": "https://{{ request.get_host|escapejs }}{{ product.get_absolute_url|escapejs }}",
|
|
17
|
+
{% if product.is_variant %}
|
|
18
|
+
"isVariantOf": {"@id": "https://{{ request.get_host|escapejs }}{{ product.parent.get_absolute_url|escapejs }}#group"},
|
|
19
|
+
{% endif %}
|
|
20
|
+
{% with image_url=product.get_image.image.url_400x400 %}
|
|
21
|
+
{% if image_url %}
|
|
22
|
+
"image": "https://{{ request.get_host|escapejs }}{{ image_url|escapejs }}",
|
|
23
|
+
{% endif %}
|
|
24
|
+
{% endwith %}
|
|
25
|
+
"description": "{{ product.get_short_description|striptags|escapejs }}",
|
|
26
|
+
"category": "{{ product.get_category.name|escapejs }}",
|
|
27
|
+
{% if product.get_weight %}
|
|
28
|
+
"weight": {
|
|
29
|
+
"@type": "QuantitativeValue",
|
|
30
|
+
"value": {{ product.get_weight|floatformat:'2u' }},
|
|
31
|
+
"unitCode": "KGM"
|
|
32
|
+
},
|
|
33
|
+
{% endif %}
|
|
34
|
+
{% if product.get_manufacturer %}
|
|
35
|
+
"manufacturer": {
|
|
36
|
+
"@type": "Organization",
|
|
37
|
+
"name": "{{ product.get_manufacturer.name|escapejs }}"
|
|
38
|
+
},
|
|
39
|
+
"brand": {
|
|
40
|
+
"@type": "Brand",
|
|
41
|
+
"name": "{{ product.get_manufacturer.name|escapejs }}"
|
|
42
|
+
},
|
|
43
|
+
{% endif %}
|
|
44
|
+
{% with sku=product|own_sku %}
|
|
45
|
+
{% if sku %}
|
|
46
|
+
"sku": "{{ sku|escapejs }}",
|
|
47
|
+
{% endif %}
|
|
48
|
+
{% endwith %}
|
|
49
|
+
|
|
50
|
+
{% if average_rating %}
|
|
51
|
+
"aggregateRating": {
|
|
52
|
+
"@type": "AggregateRating",
|
|
53
|
+
"ratingValue": {{ average_rating|unlocalize }},
|
|
54
|
+
"bestRating": 5,
|
|
55
|
+
"reviewCount": {{ review_count|unlocalize }}
|
|
56
|
+
},
|
|
57
|
+
{% endif %}
|
|
58
|
+
|
|
59
|
+
"offers": {
|
|
60
|
+
"@type": "Offer",
|
|
61
|
+
"url": "https://{{ request.get_host|escapejs }}{{ product.get_absolute_url|escapejs }}",
|
|
62
|
+
"priceCurrency": "{% currency_code %}",
|
|
63
|
+
{% if product.get_for_sale %}
|
|
64
|
+
"price": "{{ product|get_for_sale_price:request|floatformat:'2u' }}",
|
|
65
|
+
{% else %}
|
|
66
|
+
"price": "{{ product|get_price:request|floatformat:'2u' }}",
|
|
67
|
+
{% endif %}
|
|
68
|
+
"availability": "https://schema.org/{% if product.is_deliverable %}InStock{% else %}OutOfStock{% endif %}",
|
|
69
|
+
"itemCondition": "https://schema.org/NewCondition",
|
|
70
|
+
"seller": {
|
|
71
|
+
"@type": "Organization",
|
|
72
|
+
"name": "{{ SHOP.shop_owner|default:SHOP.name|escapejs }}"
|
|
73
|
+
},
|
|
74
|
+
"hasMerchantReturnPolicy": {% merchant_return_policy_json %},
|
|
75
|
+
"shippingDetails": {
|
|
76
|
+
"@type": "OfferShippingDetails",
|
|
77
|
+
"shippingDestination": {
|
|
78
|
+
"@type": "DefinedRegion",
|
|
79
|
+
"addressCountry": [{% for country in SHOP.shipping_countries.all %}"{{ country.code|upper }}"{% if not forloop.last %}, {% endif %}{% endfor %}]
|
|
80
|
+
}{% if delivery_time and delivery_time.min != None and delivery_time.max != None %},
|
|
81
|
+
"deliveryTime": {
|
|
82
|
+
"@type": "ShippingDeliveryTime",
|
|
83
|
+
"handlingTime": {
|
|
84
|
+
"@type": "QuantitativeValue",
|
|
85
|
+
"minValue": 0,
|
|
86
|
+
"maxValue": 1,
|
|
87
|
+
"unitCode": "DAY"
|
|
88
|
+
},
|
|
89
|
+
"transitTime": {
|
|
90
|
+
"@type": "QuantitativeValue",
|
|
91
|
+
"minValue": {{ delivery_time.min|unlocalize }},
|
|
92
|
+
"maxValue": {{ delivery_time.max|unlocalize }},
|
|
93
|
+
"unitCode": "DAY"
|
|
94
|
+
}
|
|
95
|
+
}{% endif %}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
</script>
|
|
100
|
+
{% if product.is_variant %}
|
|
101
|
+
<script type="application/ld+json">
|
|
102
|
+
{% product_group_json product %}
|
|
103
|
+
</script>
|
|
104
|
+
{% endif %}
|
|
105
|
+
|
|
106
|
+
<h1 class="product-title">
|
|
107
|
+
{{ product.get_name }}
|
|
108
|
+
</h1>
|
|
109
|
+
<form id="product-form"
|
|
110
|
+
action="{% url 'lfs_product_dispatcher' %}"
|
|
111
|
+
data-url="{% url 'lfs_select_variant_from_properties' %}"
|
|
112
|
+
method="post">
|
|
113
|
+
{% csrf_token %}
|
|
114
|
+
|
|
115
|
+
<input type="hidden"
|
|
116
|
+
name="product_id"
|
|
117
|
+
value="{{ product.id }}"/>
|
|
118
|
+
|
|
119
|
+
<input type="hidden"
|
|
120
|
+
name="variant_id"
|
|
121
|
+
value="{{ product.id }}"/>
|
|
122
|
+
|
|
123
|
+
<div class="row">
|
|
124
|
+
<div class="col-12 col-lg-6 col-xl-5">
|
|
125
|
+
<div class="product-images">
|
|
126
|
+
<div class="row">
|
|
127
|
+
<div class="col">
|
|
128
|
+
<div class="main-image">
|
|
129
|
+
{% if product.get_image %}
|
|
130
|
+
{% with size=product.get_image.image|thumbnail_size:"400x400" %}
|
|
131
|
+
<img src="{{ product.get_image.image.url_400x400 }}"
|
|
132
|
+
{% if size %}width="{{ size.0 }}" height="{{ size.1 }}"{% endif %}
|
|
133
|
+
title="{{ product.get_image.title }}"
|
|
134
|
+
alt="{{ product.get_image.alt|default:product.get_name }}"/>
|
|
135
|
+
{% endwith %}
|
|
136
|
+
{% endif %}
|
|
137
|
+
</div>
|
|
138
|
+
<div class="sub-images">
|
|
139
|
+
{% for image in product.get_images %}
|
|
140
|
+
<a href="{{ image.image.url_400x400 }}">
|
|
141
|
+
{% with size=image.image|thumbnail_size:"60x60" %}
|
|
142
|
+
<img src="{{ image.image.url_60x60 }}"
|
|
143
|
+
{% if size %}width="{{ size.0 }}" height="{{ size.1 }}"{% endif %}
|
|
144
|
+
title="{{ image.title }}"
|
|
145
|
+
alt="{% if image.alt %}{{ image.alt }}{% else %}{{ product.get_name }}{% if not forloop.first %} – {% blocktrans with number=forloop.counter %}Image {{ number }}{% endblocktrans %}{% endif %}{% endif %}"/>
|
|
146
|
+
{% endwith %}
|
|
147
|
+
</a>
|
|
148
|
+
{% endfor %}
|
|
149
|
+
</div>
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
152
|
+
</div>
|
|
153
|
+
</div>
|
|
154
|
+
<div class="col-12 col-lg-6 col-xl-7">
|
|
155
|
+
<div class="product-box position-relative">
|
|
156
|
+
|
|
157
|
+
{# Displayed properties #}
|
|
158
|
+
{% if product.get_displayed_properties %}
|
|
159
|
+
<div class="product-properties">
|
|
160
|
+
{% for property in product.get_displayed_properties %}
|
|
161
|
+
<div>
|
|
162
|
+
{{ property.title }}: {{ property.value }} {{ property.unit|safe }}
|
|
163
|
+
</div>
|
|
164
|
+
{% endfor %}
|
|
165
|
+
</div>
|
|
166
|
+
{% endif %}
|
|
167
|
+
|
|
168
|
+
<div class="row">
|
|
169
|
+
<div class="col-6">
|
|
170
|
+
{% shipping product %}
|
|
171
|
+
</div>
|
|
172
|
+
<div class="col-6 text-end">
|
|
173
|
+
{% average_for_instance product %}
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
{# Prices #}
|
|
177
|
+
<div class="prices pb-3">
|
|
178
|
+
<div class="product-price text-end">
|
|
179
|
+
{% if product.get_for_sale %}
|
|
180
|
+
<div>
|
|
181
|
+
<p class="for-sale-standard-price" nowrap="nowrap">
|
|
182
|
+
<span class="for-sale-standard-price-value">
|
|
183
|
+
{{ product|get_standard_price:request|currency }}
|
|
184
|
+
</span>
|
|
185
|
+
** {% if product.price_unit %}/ {{ product.price_unit }}{% endif %}
|
|
186
|
+
</p>
|
|
187
|
+
<p class="for-sale-price" nowrap="nowrap">
|
|
188
|
+
<span class="for-sale-price-value">
|
|
189
|
+
{{ product|get_price:request|currency }}*
|
|
190
|
+
</span>
|
|
191
|
+
{% if product.price_unit %}/ {{ product.price_unit }}{% endif %}
|
|
192
|
+
</p>
|
|
193
|
+
</div>
|
|
194
|
+
{% else %}
|
|
195
|
+
<div class="standard-price"
|
|
196
|
+
nowrap="nowrap">
|
|
197
|
+
<span class="standard-price-value">
|
|
198
|
+
{{ product|get_price:request|currency }}*
|
|
199
|
+
</span>
|
|
200
|
+
{% if product.price_unit %}/ {{ product.price_unit }}{% endif %}
|
|
201
|
+
</div>
|
|
202
|
+
{% endif %}
|
|
203
|
+
<div class="packing-result">{{ packing_result }}</div>
|
|
204
|
+
|
|
205
|
+
{% if product.get_active_base_price %}
|
|
206
|
+
<div class="base-price">
|
|
207
|
+
<span class="money">{{ product|get_base_price_gross:request|currency }}</span>
|
|
208
|
+
/ {{ product.get_base_price_unit }}*
|
|
209
|
+
</div>
|
|
210
|
+
{% endif %}
|
|
211
|
+
</div>
|
|
212
|
+
|
|
213
|
+
{# Properties for Configurable Product #}
|
|
214
|
+
{% if product.is_configurable_product %}
|
|
215
|
+
<div class="product-properties">
|
|
216
|
+
<div class="cp-properties"
|
|
217
|
+
id="cp-url"
|
|
218
|
+
data="{% url 'lfs_calculate_price' product.id %}">
|
|
219
|
+
|
|
220
|
+
{% regroup properties by property_group as property_groups %}
|
|
221
|
+
|
|
222
|
+
{% for property_group in property_groups %}
|
|
223
|
+
{% for prop in property_group.list %}
|
|
224
|
+
<div class="property-row">
|
|
225
|
+
{% if prop.obj.is_select_field %}
|
|
226
|
+
<span class="property-label">{{ prop.title }}:</span>
|
|
227
|
+
<select class="cp-property"
|
|
228
|
+
name="property-{{ prop.property_group_id }}-{{ prop.id }}">
|
|
229
|
+
{% if not prop.obj.required %}
|
|
230
|
+
<option>---</option>
|
|
231
|
+
{% endif %}
|
|
232
|
+
{% for option in prop.options %}
|
|
233
|
+
<option value="{{ option.id }}"
|
|
234
|
+
{% if option.selected %}selected="selected"{% endif %}>
|
|
235
|
+
{{ option.name }}
|
|
236
|
+
|
|
237
|
+
{% if prop.display_price %}
|
|
238
|
+
/ {{ option.price|currency:request }}
|
|
239
|
+
{% endif %}
|
|
240
|
+
</option>
|
|
241
|
+
{% endfor %}
|
|
242
|
+
</select>
|
|
243
|
+
<span class="property-range-hint" aria-hidden="true"></span>
|
|
244
|
+
{% elif prop.obj.is_text_field %}
|
|
245
|
+
<span class="property-label">{{ prop.title }} {% if prop.unit %}({{ prop.unit }}){% endif %}:</span>
|
|
246
|
+
<input class="product-input-field text-field"
|
|
247
|
+
type="text"
|
|
248
|
+
maxlength="100"
|
|
249
|
+
name="property-{{ prop.property_group_id }}-{{ prop.id }}"
|
|
250
|
+
value="{{ prop.value }}"/>
|
|
251
|
+
<span class="property-range-hint" aria-hidden="true"></span>
|
|
252
|
+
{% else %}
|
|
253
|
+
<span class="property-label">{{ prop.title }} {% if prop.unit %}({{ prop.unit }}){% endif %}:</span>
|
|
254
|
+
<input class="right product-input-field number-field"
|
|
255
|
+
type="text"
|
|
256
|
+
maxlength="9"
|
|
257
|
+
name="property-{{ prop.property_group_id }}-{{ prop.id }}"
|
|
258
|
+
value="{{ prop.value }}"
|
|
259
|
+
{% if prop.obj.unit_min is not None %}data-min="{{ prop.obj.unit_min|unlocalize }}"{% endif %}
|
|
260
|
+
{% if prop.obj.unit_max is not None %}data-max="{{ prop.obj.unit_max|unlocalize }}"{% endif %}
|
|
261
|
+
{% if prop.obj.unit_step is not None %}data-step="{{ prop.obj.unit_step|unlocalize }}"{% endif %}
|
|
262
|
+
data-title="{{ prop.title }}"
|
|
263
|
+
data-unit="{{ prop.unit }}"/>
|
|
264
|
+
{% if prop.obj.unit_min is not None and prop.obj.unit_max is not None %}
|
|
265
|
+
<span class="property-range-hint">
|
|
266
|
+
{{ prop.obj.unit_min|floatformat:-2 }} – {{ prop.obj.unit_max|floatformat:-2 }}{% if prop.unit %} {{ prop.unit }}{% endif %}
|
|
267
|
+
</span>
|
|
268
|
+
{% else %}
|
|
269
|
+
<span class="property-range-hint" aria-hidden="true"></span>
|
|
270
|
+
{% endif %}
|
|
271
|
+
<span class="property-error" hidden></span>
|
|
272
|
+
{% endif %}
|
|
273
|
+
</div>
|
|
274
|
+
{% endfor %}
|
|
275
|
+
{% endfor %}
|
|
276
|
+
</div>
|
|
277
|
+
</div>
|
|
278
|
+
{% endif %}
|
|
279
|
+
{% addon_include "lfs_bulk_prices" "lfs_theme/addons/bulk_prices.html" %}
|
|
280
|
+
{% addon_include "lfs_samples" "lfs_theme/addons/samples.html" %}
|
|
281
|
+
</div>
|
|
282
|
+
|
|
283
|
+
{# Product with variants #}
|
|
284
|
+
{% if product.is_variant %}
|
|
285
|
+
<div class="variants"
|
|
286
|
+
data-url="{% url 'lfs_select_variant' %}">
|
|
287
|
+
<h2 class="variants-title">{% trans 'Variants' %}</h2>
|
|
288
|
+
{% if display_variants_list %}
|
|
289
|
+
{# Radio Buttons #}
|
|
290
|
+
<div class="row">
|
|
291
|
+
<div class="col-1"></div>
|
|
292
|
+
<div class="col-4">
|
|
293
|
+
{% trans 'Name' %}
|
|
294
|
+
</div>
|
|
295
|
+
{% for property in properties %}
|
|
296
|
+
<div class="col">
|
|
297
|
+
{{ property.title }}
|
|
298
|
+
</div>
|
|
299
|
+
{% endfor %}
|
|
300
|
+
<div class="col-2">
|
|
301
|
+
{% trans 'Price' %}
|
|
302
|
+
</div>
|
|
303
|
+
</div>
|
|
304
|
+
{% for product_variant in variants %}
|
|
305
|
+
<div class="row">
|
|
306
|
+
<div class="col-1">
|
|
307
|
+
<input type="radio"
|
|
308
|
+
class="variant"
|
|
309
|
+
name="variant_id"
|
|
310
|
+
value="{{ product_variant.id }}"
|
|
311
|
+
{% if product_variant.id == product.id %}checked="checked"{% endif %}/>
|
|
312
|
+
</div>
|
|
313
|
+
<div class="col-4">
|
|
314
|
+
{{ product_variant.get_name }}
|
|
315
|
+
</div>
|
|
316
|
+
{% for property in product_variant.get_variant_properties %}
|
|
317
|
+
<div class="col">
|
|
318
|
+
{{ property.value }}
|
|
319
|
+
</div>
|
|
320
|
+
{% endfor %}
|
|
321
|
+
<div class="col-3 number">
|
|
322
|
+
{% if product_variant.get_for_sale %}
|
|
323
|
+
<span class="for-sale-standard-price">
|
|
324
|
+
{{ product_variant|get_standard_price:request|currency }}
|
|
325
|
+
</span>
|
|
326
|
+
{{ product_variant|get_for_sale_price:request|currency }}
|
|
327
|
+
{% else %}
|
|
328
|
+
{{ product_variant|get_price:request|currency }}
|
|
329
|
+
{% endif %}
|
|
330
|
+
{% if product_variant.get_price_unit %}
|
|
331
|
+
/ {{ product_variant.get_price_unit }}
|
|
332
|
+
{% endif %}
|
|
333
|
+
</div>
|
|
334
|
+
</div>
|
|
335
|
+
{% endfor %}
|
|
336
|
+
{% else %}
|
|
337
|
+
{# Select Fields #}
|
|
338
|
+
<div class="properties-list">
|
|
339
|
+
{% for property in properties %}
|
|
340
|
+
<span class="property-label">
|
|
341
|
+
{{ property.title }}:
|
|
342
|
+
</span>
|
|
343
|
+
<div>
|
|
344
|
+
<select class="property form-select form-select-sm"
|
|
345
|
+
name="property_{{ property.property_group_id }}|{{ property.id }}">
|
|
346
|
+
{% for option in property.options %}
|
|
347
|
+
<option value="{{ option.id }}"
|
|
348
|
+
{% if option.selected %}selected="selected"{% endif %}>
|
|
349
|
+
{{ option.name }}
|
|
350
|
+
</option>
|
|
351
|
+
{% endfor %}
|
|
352
|
+
</select>
|
|
353
|
+
</div>
|
|
354
|
+
{% endfor %}
|
|
355
|
+
</div>
|
|
356
|
+
{% endif %}
|
|
357
|
+
</div>
|
|
358
|
+
{% endif %}
|
|
359
|
+
|
|
360
|
+
{# Quantity Field #}
|
|
361
|
+
{% if product.is_deliverable %}
|
|
362
|
+
<div class="d-flex justify-content-end align-items-center">
|
|
363
|
+
<div class="product-quantity">
|
|
364
|
+
{% if product.active_packing_unit %}
|
|
365
|
+
<div class="product-quantity packing-unit"
|
|
366
|
+
id="packing-url"
|
|
367
|
+
data="{% url 'lfs_calculate_packing' product.id %}">
|
|
368
|
+
<div class="input-group mt-5">
|
|
369
|
+
<input class="number form-control"
|
|
370
|
+
aria-label="{% trans 'Quantity' %}"
|
|
371
|
+
name="quantity"
|
|
372
|
+
size="3"
|
|
373
|
+
type="text"
|
|
374
|
+
{% if has_bulk_prices %}bulk_prices_update_url="{% url 'lfs_bulk_prices_update_prices' product.id %}"{% endif %}
|
|
375
|
+
value="{{ quantity }}"/>
|
|
376
|
+
{% if product.get_unit %}<span class="input-group-text bg-primary text-white">{{ product.get_unit }}</span>{% endif %}
|
|
377
|
+
</div>
|
|
378
|
+
</div>
|
|
379
|
+
{% else %}
|
|
380
|
+
<div class="input-group mt-5">
|
|
381
|
+
<input class="number form-control"
|
|
382
|
+
aria-label="{% trans 'Quantity' %}"
|
|
383
|
+
name="quantity"
|
|
384
|
+
size="3"
|
|
385
|
+
type="text"
|
|
386
|
+
{% if has_bulk_prices %}bulk_prices_update_url="{% url 'lfs_bulk_prices_update_prices' product.id %}"{% endif %}
|
|
387
|
+
value="{{ quantity }}"/>
|
|
388
|
+
{% if product.get_unit %}<span class="input-group-text bg-primary text-white">{{ product.get_unit }}</span>{% endif %}
|
|
389
|
+
</div>
|
|
390
|
+
{% endif %}
|
|
391
|
+
</div>
|
|
392
|
+
|
|
393
|
+
{# Add to Cart Button #}
|
|
394
|
+
<button class="button-cart btn btn-primary ms-2 mt-5" type="submit" name="action" value="add-to-cart">
|
|
395
|
+
<i class="pe-2 bi bi-cart-check-fill"></i>
|
|
396
|
+
{% trans 'Add to cart' %}
|
|
397
|
+
</button>
|
|
398
|
+
</div>
|
|
399
|
+
{% endif %}
|
|
400
|
+
|
|
401
|
+
{# Price Disclaimer #}
|
|
402
|
+
<div class="price-disclaimer text-end pt-4">
|
|
403
|
+
{% if price_includes_tax %}
|
|
404
|
+
{% trans '*inc. VAT' %}
|
|
405
|
+
{% else %}
|
|
406
|
+
{% trans '*exc. VAT' %}
|
|
407
|
+
{% endif %}
|
|
408
|
+
{% if product.get_for_sale %}
|
|
409
|
+
<div>{% trans '** price previously asked in the shop' %}</div>
|
|
410
|
+
{% endif %}
|
|
411
|
+
</div>
|
|
412
|
+
|
|
413
|
+
{# Price Weight #}
|
|
414
|
+
{% if product.get_weight %}
|
|
415
|
+
<div class="product-weight text-end">
|
|
416
|
+
{% trans 'Shipping weight' %}: {{ product.get_weight|decimal_l10n:1 }} kg
|
|
417
|
+
</div>
|
|
418
|
+
{% endif %}
|
|
419
|
+
</div>
|
|
420
|
+
</div>
|
|
421
|
+
|
|
422
|
+
{# Product Tabs #}
|
|
423
|
+
<ul class="nav nav-tabs product-tabs" id="product-tabs" role="tablist">
|
|
424
|
+
<li class="nav-item" role="presentation">
|
|
425
|
+
<button class="nav-link active" id="description-tab" data-bs-toggle="tab" data-bs-target="#description"
|
|
426
|
+
type="button"
|
|
427
|
+
role="tab" aria-controls="description" aria-selected="true">
|
|
428
|
+
{% trans "Description" %}
|
|
429
|
+
</button>
|
|
430
|
+
</li>
|
|
431
|
+
{% if product_accessories %}
|
|
432
|
+
<li class="nav-item" role="presentation">
|
|
433
|
+
<button class="nav-link" id="accessories-tab" data-bs-toggle="tab" data-bs-target="#accessories"
|
|
434
|
+
type="button"
|
|
435
|
+
role="tab" aria-controls="accessories" aria-selected="false">
|
|
436
|
+
{% trans "Accessories" %}
|
|
437
|
+
</button>
|
|
438
|
+
</li>
|
|
439
|
+
{% endif %}
|
|
440
|
+
<li class="nav-item" role="presentation">
|
|
441
|
+
<button class="nav-link" id="reviews-tab" data-bs-toggle="tab" data-bs-target="#reviews" type="button"
|
|
442
|
+
role="tab" aria-controls="reviews" aria-selected="false">
|
|
443
|
+
{% trans "Reviews" %}
|
|
444
|
+
</button>
|
|
445
|
+
</li>
|
|
446
|
+
{% if product.get_static_block %}
|
|
447
|
+
<li class="nav-item" role="presentation">
|
|
448
|
+
<button class="nav-link" id="block-tab" data-bs-toggle="tab" data-bs-target="#block" type="button"
|
|
449
|
+
role="tab" aria-controls="block" aria-selected="false">
|
|
450
|
+
{{ product.get_static_block.name }}
|
|
451
|
+
</button>
|
|
452
|
+
</li>
|
|
453
|
+
{% endif %}
|
|
454
|
+
{% if attachments %}
|
|
455
|
+
<li class="nav-item" role="presentation">
|
|
456
|
+
<button class="nav-link" id="attachments-tab" data-bs-toggle="tab" data-bs-target="#attachments"
|
|
457
|
+
type="button"
|
|
458
|
+
role="tab" aria-controls="attachments" aria-selected="false">
|
|
459
|
+
{% trans "Attachments" %}
|
|
460
|
+
</button>
|
|
461
|
+
</li>
|
|
462
|
+
{% endif %}
|
|
463
|
+
</ul>
|
|
464
|
+
|
|
465
|
+
<div class="tab-content" id="tab-content">
|
|
466
|
+
<div class="tab-pane active" id="description" role="tabpanel" aria-labelledby="description-tab">
|
|
467
|
+
<div class="description-tab">
|
|
468
|
+
{{ product.get_description|safe }}
|
|
469
|
+
</div>
|
|
470
|
+
</div>
|
|
471
|
+
{% if product_accessories %}
|
|
472
|
+
<div class="tab-pane" id="accessories" role="tabpanel" aria-labelledby="accessories-tab">
|
|
473
|
+
<div class="accessories-tab">
|
|
474
|
+
<h4 class="tab-content-title section">{% trans 'Accessories' %}</h4>
|
|
475
|
+
<div class="product-accessories lfs-default">
|
|
476
|
+
<div class="row product-accessories-labels">
|
|
477
|
+
<div class="col-6 col-sm-6">{% trans 'Name' %}</div>
|
|
478
|
+
<div class="col-2 number">{% trans 'Quantity' %}</div>
|
|
479
|
+
<div class="col-2 number">{% trans 'Price' %}</div>
|
|
480
|
+
<div class="col-2 number last">{% trans 'Total' %}</div>
|
|
481
|
+
</div>
|
|
482
|
+
{% for product_accessory in product_accessories %}
|
|
483
|
+
<div class="row {% if forloop.first %}first{% endif %}{% if forloop.last %}last{% endif %}">
|
|
484
|
+
<div class="col-12 col-sm-6">
|
|
485
|
+
<input type="checkbox"
|
|
486
|
+
name="accessory-{{ product_accessory.accessory.id }}"/>
|
|
487
|
+
<a class="product-accessory-name"
|
|
488
|
+
href="{{ product_accessory.accessory.get_absolute_url }}">
|
|
489
|
+
{{ product_accessory.accessory.get_name|truncatewords_html:5 }}
|
|
490
|
+
</a>
|
|
491
|
+
</div>
|
|
492
|
+
<div class="col-4 col-sm-2 number">
|
|
493
|
+
<div class="product-accessory-label">{% trans 'Quantity' %}</div>
|
|
494
|
+
<input type="hidden"
|
|
495
|
+
name="quantity-{{ product_accessory.accessory.id }}"
|
|
496
|
+
value="{{ product_accessory.quantity }}"/>
|
|
497
|
+
{{ product_accessory.quantity|quantity }}
|
|
498
|
+
</div>
|
|
499
|
+
<div class="col-4 col-sm-2 number"
|
|
500
|
+
nowrap="nowrap">
|
|
501
|
+
<div class="product-accessory-label">{% trans 'Price' %}</div>
|
|
502
|
+
{{ product_accessory.accessory|get_price:request|currency }}
|
|
503
|
+
</div>
|
|
504
|
+
<div class="col-4 col-sm-2 number"
|
|
505
|
+
nowrap="nowrap">
|
|
506
|
+
<div class="product-accessory-label">{% trans 'Total' %}</div>
|
|
507
|
+
{{ product_accessory|get_price:request|currency }}
|
|
508
|
+
</div>
|
|
509
|
+
{% if not forloop.last %}
|
|
510
|
+
<hr>
|
|
511
|
+
{% endif %}
|
|
512
|
+
</div>
|
|
513
|
+
{% endfor %}
|
|
514
|
+
</div>
|
|
515
|
+
</div>
|
|
516
|
+
</div>
|
|
517
|
+
{% endif %}
|
|
518
|
+
<div class="tab-pane " id="reviews" role="tabpanel" aria-labelledby="reviews-tab">
|
|
519
|
+
<div class="reviews-tab">
|
|
520
|
+
{% reviews_for_instance product %}
|
|
521
|
+
</div>
|
|
522
|
+
</div>
|
|
523
|
+
{% if product.get_static_block %}
|
|
524
|
+
<div class="tab-pane" id="block" role="tabpanel" aria-labelledby="block-tab">
|
|
525
|
+
<div class="block-tab">
|
|
526
|
+
{{ product.get_static_block.html|safe }}
|
|
527
|
+
|
|
528
|
+
{% if product.get_static_block.display_files %}
|
|
529
|
+
<h4 class="section">{% trans 'Downloads' %}</h4>
|
|
530
|
+
<ul>
|
|
531
|
+
{% for file in product.get_static_block.files.all %}
|
|
532
|
+
<li>
|
|
533
|
+
<a href="{{ file.get_absolute_url }}">
|
|
534
|
+
{{ file.title }}
|
|
535
|
+
</a>
|
|
536
|
+
</li>
|
|
537
|
+
{% endfor %}
|
|
538
|
+
</ul>
|
|
539
|
+
{% endif %}
|
|
540
|
+
</div>
|
|
541
|
+
</div>
|
|
542
|
+
{% endif %}
|
|
543
|
+
{% if attachments %}
|
|
544
|
+
<div class="tab-pane" id="attachments" role="tabpanel" aria-labelledby="attachments-tab">
|
|
545
|
+
<div class="attachments-tab">
|
|
546
|
+
<h4 class="section">{% trans 'Attachments' %}</h4>
|
|
547
|
+
{% for attachment in attachments %}
|
|
548
|
+
<div class="item">
|
|
549
|
+
<div class="title">
|
|
550
|
+
<a title="{{ attachment.title }}" href="{{ attachment.get_url }}">
|
|
551
|
+
{{ attachment.title }}
|
|
552
|
+
</a>
|
|
553
|
+
</div>
|
|
554
|
+
{% if attachment.description %}
|
|
555
|
+
<div class="description">
|
|
556
|
+
{{ attachment.description }}
|
|
557
|
+
</div>
|
|
558
|
+
{% endif %}
|
|
559
|
+
</div>
|
|
560
|
+
{% endfor %}
|
|
561
|
+
</div>
|
|
562
|
+
</div>
|
|
563
|
+
{% endif %}
|
|
564
|
+
</div>
|
|
565
|
+
</div>
|
|
566
|
+
</form>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{% load i18n %}
|
|
2
|
+
<div class="sorting my-4">
|
|
3
|
+
<form action="{% url 'lfs_catalog_set_sorting' %}"
|
|
4
|
+
method="post">
|
|
5
|
+
{% csrf_token %}
|
|
6
|
+
<select class="form-select" name="sorting"
|
|
7
|
+
onchange="this.form.submit()">
|
|
8
|
+
{% for item in sort_options %}
|
|
9
|
+
<option value="{{ item.default }}"
|
|
10
|
+
{% if item.default == current %}selected="selected"{% endif %}>{{ item.title }}</option>
|
|
11
|
+
{% endfor %}
|
|
12
|
+
</select>
|
|
13
|
+
<noscript>
|
|
14
|
+
<input type="submit" value="{% trans 'Go!' %}" />
|
|
15
|
+
</noscript>
|
|
16
|
+
</form>
|
|
17
|
+
</div>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{# A postal address in the checkout summary. #}
|
|
2
|
+
{% if address %}
|
|
3
|
+
<address>
|
|
4
|
+
{% if address.company_name %}{{ address.company_name }}<br>{% endif %}
|
|
5
|
+
{{ address.firstname }} {{ address.lastname }}<br>
|
|
6
|
+
{{ address.line1 }}<br>
|
|
7
|
+
{% if address.line2 %}{{ address.line2 }}<br>{% endif %}
|
|
8
|
+
{{ address.zip_code }} {{ address.city }}<br>
|
|
9
|
+
{{ address.country.name }}
|
|
10
|
+
</address>
|
|
11
|
+
{% endif %}
|