oswilno/server/assets/templates/marketplace/index.html

35 lines
1.2 KiB
HTML
Raw Normal View History

2022-07-15 16:00:00 +02:00
{% extends "../base.html" %}
{% block content %}
2022-07-18 16:23:07 +02:00
<marketplace-offers>
2022-07-19 22:05:54 +02:00
<h1>Rzeczy wystawione na sprzedaż</h1>
2022-07-18 16:23:07 +02:00
{% for offer in offers %}
2022-07-21 15:58:37 +02:00
<marketplace-offer
offer-id="{{offer.id}}"
description="{{offer.description}}"
picture-url="{{offer.picture_url}}"
{% match offer.price_range %}
{% when PriceRange::Free %}
price-range="free"
{% when PriceRange::Fixed with { value } %}
price-range="{{value}}"
{% when PriceRange::Range with { min, max } %}
price-range-min="{{min}}"
price-range-max="{{max}}"
{% endmatch %}
>
<contact-info-list slot="contacts">
{% for contact in offer.contacts %}
<contact-info
mode="icon"
contact-id="{{contact.id}}"
contact-type="{{contact.contact_type}}"
2022-07-22 13:05:13 +02:00
content="{{h.render_contact(contact.contact_type.as_str(), contact.content.as_str())}}"
2022-07-21 15:58:37 +02:00
></contact-info>
{% endfor %}
</contact-info-list>
</marketplace-offer>
2022-07-18 16:23:07 +02:00
{% endfor %}
</marketplace-offers>
2022-07-15 16:00:00 +02:00
{% endblock %}