forked from s3lph/matemat
39 lines
961 B
HTML
39 lines
961 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block header %}
|
|
<h1>Welcome, {{ authuser.name }}</h1>
|
|
|
|
{{ super() }}
|
|
|
|
{% endblock %}
|
|
|
|
{% block main %}
|
|
|
|
Your balance: {{ authuser.balance }}
|
|
<br/>
|
|
<a href="/deposit?n=100">Deposit CHF 1</a><br/>
|
|
<a href="/deposit?n=1000">Deposit CHF 10</a><br/>
|
|
|
|
{% for product in products %}
|
|
<div class="thumblist-item">
|
|
<a href="/buy?pid={{ product.id }}">
|
|
<span class="thumblist-title">{{ product.name }}</span>
|
|
<span class="thumblist-detail">Price:
|
|
{% if authuser.is_member %}
|
|
{{ product.price_member }}
|
|
{% else %}
|
|
{{ product.price_non_member }}
|
|
{% endif %}
|
|
; Stock: {{ product.stock }}</span><br/>
|
|
<div class="imgcontainer">
|
|
<img src="/img/thumbnails/products/{{ product.id }}.png" alt="Picture of {{ product.name }}" />
|
|
</div>
|
|
</a>
|
|
</div>
|
|
{% endfor %}
|
|
<br/>
|
|
<a href="/logout">Logout</a>
|
|
|
|
{{ super() }}
|
|
|
|
{% endblock %}
|