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

24 lines
812 B
HTML
Raw Normal View History

2022-07-29 16:08:59 +02:00
{% extends "../base.html" %}
{% block content %}
2022-07-29 19:29:15 +02:00
<marketplace-offers {{h.account_id_tag(account)}}>
2022-07-29 16:08:59 +02:00
<h2>Edycja oferty</h2>
<offer-form
state="{{offer.state.as_str()}}"
offer-id="{{offer.id}}"
description="{{offer.description}}"
picture-url="{{offer.picture_url}}"
{% match offer.price_range %}
{% when PriceRange::Free %}
price-range-min="0"
price-range-max="0"
{% when PriceRange::Fixed with { value } %}
price-range-min="{{value}}"
price-range-max="0"
{% when PriceRange::Range with { min, max } %}
price-range-min="{{min}}"
price-range-max="{{max}}"
{% endmatch %}
></offer-form>
</marketplace-offers>
{% endblock %}