24 lines
707 B
HTML
24 lines
707 B
HTML
{% extends "wagtailadmin/base.html" %}
|
|
{% load static i18n %}
|
|
|
|
{% block titletag %}
|
|
{% trans "Products" %}
|
|
{% endblock titletag %}
|
|
|
|
{% block content %}
|
|
{% include "wagtailadmin/shared/header.html" with title="Products" icon="tag" %}
|
|
<h1>{% trans "Purchasable Products" %}</h1>
|
|
<a href="{% url 'admin_purchase_add' %}" class="button button-primary">{% trans "Add product" %}</a>
|
|
<ul>
|
|
{% for p in products %}
|
|
<li>
|
|
<a href="{% url 'admin_purchase' p.id %}">
|
|
{{ p.name }} — {{ p.price_cents|floatformat:-2 }} {{ p.currency|upper }}
|
|
</a>
|
|
</li>
|
|
{% empty %}
|
|
<li>{% trans "No products found." %}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endblock content %}
|