2021-09-17 09:33:56 +00:00
|
|
|
{% extends "settings.html" %}
|
2021-09-08 08:37:27 +00:00
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
<title>Shop</title>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block pagetype %}message{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
{% if error %}
|
|
|
|
<div class="alert alert-danger alert-dismissible fade show my-3" role="alert">
|
|
|
|
<i class="fas fa-exclamation-circle my-auto"></i>
|
|
|
|
<span>
|
|
|
|
{{error}}
|
|
|
|
</span>
|
2021-09-26 09:04:49 +00:00
|
|
|
<button type="button" class="close" data-bs-dismiss="alert" aria-label="Close">
|
2021-09-08 08:37:27 +00:00
|
|
|
<span aria-hidden="true"><i class="far fa-times"></i></span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% if msg %}
|
|
|
|
<div class="alert alert-success alert-dismissible fade show my-3" role="alert">
|
|
|
|
<i class="fas fa-check-circle my-auto" aria-hidden="true"></i>
|
|
|
|
<span>
|
|
|
|
{{msg}}
|
|
|
|
</span>
|
2021-09-26 09:04:49 +00:00
|
|
|
<button type="button" class="close" data-bs-dismiss="alert" aria-label="Close">
|
2021-09-08 08:37:27 +00:00
|
|
|
<span aria-hidden="true"><i class="far fa-times"></i></span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<pre></pre>
|
|
|
|
<pre></pre>
|
2021-09-08 08:57:40 +00:00
|
|
|
<h5>Owned Awards</h5>
|
2021-09-08 08:53:57 +00:00
|
|
|
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead class="bg-primary text-white">
|
|
|
|
<tr>
|
|
|
|
<th scope="col">Icon</th>
|
|
|
|
<th scope="col">Title</th>
|
2021-09-08 08:57:40 +00:00
|
|
|
<th scope="col">Description</th>
|
|
|
|
<th scope="col">Owned</th>
|
2021-09-08 08:53:57 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2021-09-08 08:57:40 +00:00
|
|
|
{% for a in owned %}
|
2021-09-08 08:53:57 +00:00
|
|
|
<tr>
|
|
|
|
<td><i class="{{a['icon']}} {{a['color']}}" style="font-size: 30px"></i></td>
|
|
|
|
<td style="font-weight: bold">{{a['title']}}</td>
|
2021-09-08 08:57:40 +00:00
|
|
|
<td style="font-weight: bold">{{a['description']}}</td>
|
|
|
|
<td style="font-weight: bold">{{a['owned_num']}}</td>
|
2021-09-08 08:53:57 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<pre>
|
|
|
|
|
|
|
|
|
|
|
|
</pre>
|
|
|
|
|
2021-09-08 08:37:27 +00:00
|
|
|
<h5>Shop</h5>
|
|
|
|
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead class="bg-primary text-white">
|
|
|
|
<tr>
|
|
|
|
<th scope="col">Icon</th>
|
|
|
|
<th scope="col">Title</th>
|
2021-09-08 08:57:40 +00:00
|
|
|
<th scope="col">Description</th>
|
2021-09-08 08:37:27 +00:00
|
|
|
<th scope="col">Price</th>
|
2021-09-08 08:40:23 +00:00
|
|
|
<th scope="col">Buy</th>
|
2021-09-08 08:37:27 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for a in awards %}
|
|
|
|
<tr>
|
|
|
|
<td><i class="{{a['icon']}} {{a['color']}}" style="font-size: 30px"></i></td>
|
|
|
|
<td style="font-weight: bold">{{a['title']}}</td>
|
2021-09-08 08:57:40 +00:00
|
|
|
<td style="font-weight: bold">{{a['description']}}</td>
|
2021-09-08 08:37:27 +00:00
|
|
|
<td style="font-weight: bold">{{a['price']}}</td>
|
|
|
|
{% set kind = a['kind'] %}
|
2021-09-10 02:12:56 +00:00
|
|
|
<td style="font-weight: bold"><a class="btn btn-success" href="javascript:void(0)" onclick="post_toast('/buy/{{kind}}')">Buy</a></td>
|
2021-09-08 08:37:27 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
2021-09-08 09:02:28 +00:00
|
|
|
<pre>
|
2021-09-08 08:37:27 +00:00
|
|
|
|
2021-09-08 09:02:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2021-09-08 09:15:02 +00:00
|
|
|
|
2021-09-08 09:02:28 +00:00
|
|
|
</pre>
|
2021-09-08 08:37:27 +00:00
|
|
|
{% endblock %}
|