oswilno/assets/templates/offers/index.html

25 lines
834 B
HTML
Raw Normal View History

2022-07-18 16:23:07 +02:00
{% extends "../base.html" %}
{% block content %}
<marketplace-offers>
2022-07-20 16:03:23 +02:00
<h1>Sprzedaż niepotrzebnych rzeczy</h1>
2022-07-19 22:05:54 +02:00
2022-07-18 16:23:07 +02:00
<offer-form></offer-form>
{% for offer in offers %}
<marketplace-offer
offer-id="{{offer.id}}"
description="{{offer.description}}"
picture-url="{{offer.picture_url}}"
2022-07-20 16:03:23 +02:00
{% 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 %}
2022-07-18 16:23:07 +02:00
></marketplace-offer>
{% endfor %}
</marketplace-offers>
{% endblock %}