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

24 lines
812 B
HTML

{% extends "../base.html" %}
{% block content %}
<marketplace-offers {{h.account_id_tag(account)}}>
<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 %}