{% extends "base.html" %} {% block main %}

Administration

Users

{% for user in users %} {% endfor %}
Username E-Mail (optional) Password Member Admin Logout after purchase Actions
{{ user.name }} {{ '✓' if user.email else '✗' }} •••••••• {{ '✓' if user.is_member else '✗' }} {{ '✓' if user.is_admin else '✗' }} {{ '✓' if user.logout_after_purchase else '✗' }}

Products

{% for product in products %} {% endfor %}
Name Barcodes Member price Non-member price Custom price Stockable Image Actions
CHF
CHF
{{ product.name }} {% set bcs = barcodes | selectattr('product_id', 'eq', product.id) | list %} {% if bcs | length > 0 %} {{ bcs[0].barcode }} {% if bcs | length > 1 %} +{{ bcs | length - 1 }} {% endif %} {% endif %} {{ product.price_member | chf }} {{ product.price_non_member | chf }} {{ '✓' if product.custom_price else '✗' }} {{ '✓' if product.stockable else '✗' }} Picture of {{ product.name }}

Default Images

Default user avatar
Default product image

{{ super() }} {% endblock %} {% block barcodewebsocket %} let bcinput = document.getElementById("admin-newproduct-barcode"); bcinput.value = e.data; bcinput.select(); bcinput.scrollIntoView(); {% endblock %}