oswilno/crates/server/assets/templates/marketplace/edit.html
2023-04-24 16:11:49 +02:00

26 lines
856 B
HTML

{% extends "../base.html" %}
{% block content %}
<article {{h.account_id_tag(account)}}>
<h2>Edycja oferty</h2>
<offer-form
{{h.account_id_tag(account)}}
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"
free="true"
{% 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>
</article>
{% endblock %}